Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[problem] Fryzury


Rekomendowane odpowiedzi

Opublikowano

Witam. Posiadam serwer na plikach by terenzo oraz jego gotowce do clienta.

Jak wiadomo jest w tym system kostiumów oraz fryzur więc moje pytanie brzmi jak ustawić type i subtype aby fryzura była zakładana jak standardowe a nie zakładana do sys kostiumów . Obecnie mam 18 - 10 , gdy ustawiam 25 - 0 fryzura znika i i nic się nie zmiania a po rlg/tp ucina mi pół głowy .

Może to też wina questu więc udostępniam wam też quest i proszę o przerobienie go albo podpowiedź co zrobić/poprawić w nim .

 

 

------------------------------------------------
-- Autor: Terenzo. (http://terenzo.tk)
-- Zakaz publikowania i sprzedawania!
------------------------------------------------
quest hair begin
state start begin
when letter begin
send_letter("{Zdejmij fryzurę}")
end
when button or info begin
pc.give_item2(pc.getqf("hairid"))
pc.setqf("hairid", 0)
cmdchat("CosHair 0")
pc.set_part(PART_HAIR, 0)
setskin(NOWINDOW)
clear_letter()
end
when 73001.use or 73002.use or 73003.use or 73004.use or 73005.use or 73006.use or 73007.use or 73008.use or 73009.use or
73010.use or 73011.use or 73012.use or 73251.use or 73252.use or 73253.use or 73254.use or 73255.use or 73256.use or
73257.use or 73258.use or 73259.use or 73260.use or 73261.use or 73262.use or 73501.use or 73502.use or 73503.use or
73504.use or 73505.use or 73506.use or 73507.use or 73508.use or 73509.use or 73510.use or 73511.use or 73512.use or
73751.use or 73752.use or 73753.use or 73754.use or 73755.use or 73756.use or 73757.use or 73758.use or 73759.use or
73760.use or 73761.use or 73762.use or 74001.use or 74002.use or 74003.use or 74004.use or 74005.use or 74006.use or
74007.use or 74008.use or 74009.use or 74010.use or 74011.use or 74012.use or 74013.use or 74014.use or 74015.use or
74016.use or 74017.use or 74018.use or 74019.use or 74020.use or 74251.use or 74252.use or 74253.use or 74254.use or
74255.use or 74256.use or 74257.use or 74258.use or 74259.use or 74260.use or 74261.use or 74262.use or 74263.use or
74264.use or 74265.use or 74266.use or 74267.use or 74268.use or 74269.use or 74270.use or 74501.use or 74502.use or
74503.use or 74504.use or 74505.use or 74506.use or 74507.use or 74508.use or 74509.use or 74510.use or 74511.use or
74512.use or 74513.use or 74514.use or 74515.use or 74516.use or 74517.use or 74518.use or 74519.use or 74520.use or
74751.use or 74752.use or 74753.use or 74754.use or 74755.use or 74756.use or 74757.use or 74758.use or 74759.use or
74760.use or 74761.use or 74762.use or 74763.use or 74764.use or 74765.use or 74766.use or 74767.use or 74768.use or
74769.use or 74770.use or 75001.use or 75002.use or 75003.use or 75004.use or 75005.use or 75006.use or 75007.use or
75008.use or 75009.use or 75010.use or 75011.use or 75012.use or 75013.use or 75014.use or 75015.use or 75016.use or
75017.use or 75018.use or 75019.use or 75020.use or 75201.use or 75202.use or 75203.use or 75204.use or 75205.use or
75206.use or 75207.use or 75208.use or 75209.use or 75210.use or 75211.use or 75212.use or 75213.use or 75214.use or
75215.use or 75216.use or 75217.use or 75218.use or 75219.use or 75220.use or 75401.use or 75402.use or 75403.use or
75404.use or 75405.use or 75406.use or 75407.use or 75408.use or 75409.use or 75410.use or 75411.use or 75412.use or
75413.use or 75414.use or 75415.use or 75416.use or 75417.use or 75418.use or 75419.use or 75420.use or 75601.use or
75602.use or 75603.use or 75604.use or 75605.use or 75606.use or 75607.use or 75608.use or 75609.use or 75610.use or
75611.use or 75612.use or 75613.use or 75614.use or 75615.use or 75616.use or 75617.use or 75618.use or 75619.use or
75620.use or 45003.use or 45004.use or 45005.use or 45006.use or 45007.use or 45008.use or 45009.use or 45010.use or
45011.use or 45012.use or 45013.use or 45014.use or 45015.use or 45016.use or 45017.use or 45018.use or 45019.use or
45020.use or 45021.use or 45022.use or 45023.use or 45024.use or 45025.use or 45026.use or 45027.use or 45028.use or
45029.use or 45030.use or 45031.use or 45032.use or 45033.use or 45034.use or 45035.use or 45036.use or 45037.use or
45038.use or 45039.use or 45040.use or 45041.use or 45042.use or 45043.use or 45044.use or 45045.use or 45046.use or
45047.use or 45048.use or 45049.use or 45050.use or 45053.use or 45054.use or 45055.use or 45056.use or 45057.use or
45058.use or 45061.use or 45062.use or 45065.use or 45066.use or 45067.use or 45068.use or 45069.use or 45070.use or
45073.use or 45074.use begin
local vnum = item.get_vnum()
local hairid = tonumber(pc.getqf("hairid"))
affect.remove_hair()
if hairid == 0 then
cmdchat("CosHair ".. vnum)
if 74001 <= vnum and vnum <= 75620 then
pc.set_part(PART_HAIR, hair.race_bonus(vnum, 1))
affect.add_hair(hair.race_bonus(vnum, 2), hair.race_bonus(vnum, 3) , hair.race_bonus(vnum, 4))
pc.setqf("limit_time", get_time() + hair.race_bonus(vnum, 4))
else
pc.set_part(PART_HAIR, hair.race(vnum))
end
hairid = vnum
send_letter("{Zdejmij fryzurę}")
item.remove()
elseif vnum != hairid then
cmdchat("CosHair ".. vnum)
if 74001 <= vnum and vnum <= 75620 then
pc.set_part(PART_HAIR, hair.race_bonus(vnum, 1))
affect.add_hair(hair.race_bonus(vnum, 2), hair.race_bonus(vnum, 3) , hair.race_bonus(vnum, 4))
pc.setqf("limit_time", get_time() + hair.race_bonus(vnum, 4))
else
pc.set_part(PART_HAIR, hair.race(vnum))
end
send_letter("{Zdejmij fryzurę}")
pc.give_item2(hairid)
item.remove()
hairid = vnum
else
pc.give_item2(hairid)
cmdchat("CosHair 0")
pc.set_part(PART_HAIR, 0)
hairid = 0
clear_letter()
end
pc.setqf("hairid", hairid)
end
when login begin
local hairid = tonumber(pc.getqf("hairid"))
cmdchat("CosHair ".. hairid)
end
function race_bonus(vnum, index)
hair_list={
[74001] = {1001, apply.DEF_GRADE_BONUS, 10, 2592000},
[74002] = {1002, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[74003] = {1003, apply.ATTBONUS_SURA, 10, 2592000},
[74004] = {1004, apply.ATTBONUS_SHAMAN, 10, 2592000},
[74005] = {1005, apply.ATTBONUS_WARRIOR, 10, 2592000},
[74006] = {1006, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[74007] = {1007, apply.ATTBONUS_SURA, 10, 2592000},
[74008] = {1008, apply.ATTBONUS_SHAMAN, 10, 2592000},
[74009] = {1009, apply.ATTBONUS_WARRIOR, 10, 2592000},
[74010] = {1010, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[74011] = {1011, apply.ATTBONUS_SURA, 10, 2592000},
[74012] = {1012, apply.ATTBONUS_SHAMAN, 10, 2592000},
[74013] = {1013, apply.CURSE_PCT, 10, 2592000},
[74014] = {1013, apply.CURSE_PCT, 10, 2592000},
[74015] = {1014, apply.CURSE_PCT, 10, 2592000},
[74016] = {1014, apply.CURSE_PCT, 10, 2592000},
[74017] = {1015, apply.CURSE_PCT, 10, 2592000},
[74018] = {1016, apply.CURSE_PCT, 10, 2592000},
[74019] = {1017, apply.CURSE_PCT, 10, 2592000},
[74020] = {1018, apply.CURSE_PCT, 10, 2592000},
[74251] = {2001, apply.ATTBONUS_WARRIOR, 10, 2592000},
[74252] = {2002, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[74253] = {2003, apply.ATTBONUS_SURA, 10, 2592000},
[74254] = {2004, apply.ATTBONUS_SHAMAN, 10, 2592000},
[74255] = {2005, apply.ATTBONUS_WARRIOR, 10, 2592000},
[74256] = {2006, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[74257] = {2007, apply.ATTBONUS_SURA, 10, 2592000},
[74258] = {2008, apply.ATTBONUS_SHAMAN, 10, 2592000},
[74259] = {2009, apply.ATTBONUS_WARRIOR, 10, 2592000},
[74260] = {2010, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[74261] = {2011, apply.ATTBONUS_SURA, 10, 2592000},
[74262] = {2012, apply.ATTBONUS_SHAMAN, 10, 2592000},
[74263] = {2013, apply.CURSE_PCT, 10, 2592000},
[74264] = {2013, apply.CURSE_PCT, 10, 2592000},
[74265] = {2014, apply.CURSE_PCT, 10, 2592000},
[74266] = {2014, apply.CURSE_PCT, 10, 2592000},
[74267] = {2015, apply.CURSE_PCT, 10, 2592000},
[74268] = {2016, apply.CURSE_PCT, 10, 2592000},
[74269] = {2017, apply.CURSE_PCT, 10, 2592000},
[74270] = {2018, apply.CURSE_PCT, 10, 2592000},
[74501] = {3001, apply.ATTBONUS_WARRIOR, 10, 2592000},
[74502] = {3002, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[74503] = {3003, apply.ATTBONUS_SURA, 10, 2592000},
[74504] = {3004, apply.ATTBONUS_SHAMAN, 10, 2592000},
[74505] = {3005, apply.ATTBONUS_WARRIOR, 10, 2592000},
[74506] = {3006, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[74507] = {3007, apply.ATTBONUS_SURA, 10, 2592000},
[74508] = {3008, apply.ATTBONUS_SHAMAN, 10, 2592000},
[74509] = {3009, apply.ATTBONUS_WARRIOR, 10, 2592000},
[74510] = {3010, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[74511] = {3011, apply.ATTBONUS_SURA, 10, 2592000},
[74512] = {3012, apply.ATTBONUS_SHAMAN, 10, 2592000},
[74513] = {3013, apply.CURSE_PCT, 10, 2592000},
[74514] = {3013, apply.CURSE_PCT, 10, 2592000},
[74515] = {3014, apply.CURSE_PCT, 10, 2592000},
[74516] = {3014, apply.CURSE_PCT, 10, 2592000},
[74517] = {3015, apply.CURSE_PCT, 10, 2592000},
[74518] = {3016, apply.CURSE_PCT, 10, 2592000},
[74519] = {3017, apply.CURSE_PCT, 10, 2592000},
[74520] = {3018, apply.CURSE_PCT, 10, 2592000},
[74751] = {4001, apply.ATTBONUS_WARRIOR, 10, 2592000},
[74752] = {4002, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[74753] = {4003, apply.ATTBONUS_SURA, 10, 2592000},
[74754] = {4004, apply.ATTBONUS_SHAMAN, 10, 2592000},
[74755] = {4005, apply.ATTBONUS_WARRIOR, 10, 2592000},
[74756] = {4006, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[74757] = {4007, apply.ATTBONUS_SURA, 10, 2592000},
[74758] = {4008, apply.ATTBONUS_SHAMAN, 10, 2592000},
[74759] = {4009, apply.ATTBONUS_WARRIOR, 10, 2592000},
[74760] = {4010, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[74761] = {4011, apply.ATTBONUS_SURA, 10, 2592000},
[74762] = {4012, apply.ATTBONUS_SHAMAN, 10, 2592000},
[74763] = {4013, apply.CURSE_PCT, 10, 2592000},
[74764] = {4013, apply.CURSE_PCT, 10, 2592000},
[74765] = {4014, apply.CURSE_PCT, 10, 2592000},
[74766] = {4014, apply.CURSE_PCT, 10, 2592000},
[74767] = {4015, apply.CURSE_PCT, 10, 2592000},
[74768] = {4016, apply.CURSE_PCT, 10, 2592000},
[74769] = {4017, apply.CURSE_PCT, 10, 2592000},
[74770] = {4018, apply.CURSE_PCT, 10, 2592000},
[75001] = {1001, apply.ATTBONUS_WARRIOR, 10, 2592000},
[75002] = {1002, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[75003] = {1003, apply.ATTBONUS_SURA, 10, 2592000},
[75004] = {1004, apply.ATTBONUS_SHAMAN, 10, 2592000},
[75005] = {1005, apply.ATTBONUS_WARRIOR, 10, 2592000},
[75006] = {1006, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[75007] = {1007, apply.ATTBONUS_SURA, 10, 2592000},
[75008] = {1008, apply.ATTBONUS_SHAMAN, 10, 2592000},
[75009] = {1009, apply.ATTBONUS_WARRIOR, 10, 2592000},
[75010] = {1010, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[75011] = {1011, apply.ATTBONUS_SURA, 10, 2592000},
[75012] = {1012, apply.ATTBONUS_SHAMAN, 10, 2592000},
[75013] = {1013, apply.CURSE_PCT, 10, 2592000},
[75014] = {1013, apply.CURSE_PCT, 10, 2592000},
[75015] = {1014, apply.CURSE_PCT, 10, 2592000},
[75016] = {1014, apply.CURSE_PCT, 10, 2592000},
[75017] = {1015, apply.CURSE_PCT, 10, 2592000},
[75018] = {1016, apply.CURSE_PCT, 10, 2592000},
[75019] = {1017, apply.CURSE_PCT, 10, 2592000},
[75020] = {1018, apply.CURSE_PCT, 10, 2592000},
[75201] = {2001, apply.ATTBONUS_WARRIOR, 10, 2592000},
[75202] = {2002, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[75203] = {2003, apply.ATTBONUS_SURA, 10, 2592000},
[75204] = {2004, apply.ATTBONUS_SHAMAN, 10, 2592000},
[75205] = {2005, apply.ATTBONUS_WARRIOR, 10, 2592000},
[75206] = {2006, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[75207] = {2007, apply.ATTBONUS_SURA, 10, 2592000},
[75208] = {2008, apply.ATTBONUS_SHAMAN, 10, 2592000},
[75209] = {2009, apply.ATTBONUS_WARRIOR, 10, 2592000},
[75210] = {2010, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[75211] = {2011, apply.ATTBONUS_SURA, 10, 2592000},
[75212] = {2012, apply.ATTBONUS_SHAMAN, 10, 2592000},
[75213] = {2013, apply.CURSE_PCT, 10, 2592000},
[75214] = {2013, apply.CURSE_PCT, 10, 2592000},
[75215] = {2014, apply.CURSE_PCT, 10, 2592000},
[75216] = {2014, apply.CURSE_PCT, 10, 2592000},
[75217] = {2015, apply.CURSE_PCT, 10, 2592000},
[75218] = {2016, apply.CURSE_PCT, 10, 2592000},
[75219] = {2017, apply.CURSE_PCT, 10, 2592000},
[75220] = {2018, apply.CURSE_PCT, 10, 2592000},
[75401] = {3001, apply.ATTBONUS_WARRIOR, 10, 2592000},
[75402] = {3002, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[75403] = {3003, apply.ATTBONUS_SURA, 10, 2592000},
[75404] = {3004, apply.ATTBONUS_SHAMAN, 10, 2592000},
[75405] = {3005, apply.ATTBONUS_WARRIOR, 10, 2592000},
[75406] = {3006, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[75407] = {3007, apply.ATTBONUS_SURA, 10, 2592000},
[75408] = {3008, apply.ATTBONUS_SHAMAN, 10, 2592000},
[75409] = {3009, apply.ATTBONUS_WARRIOR, 10, 2592000},
[75410] = {3010, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[75411] = {3011, apply.ATTBONUS_SURA, 10, 2592000},
[75412] = {3012, apply.ATTBONUS_SHAMAN, 10, 2592000},
[75413] = {3013, apply.CURSE_PCT, 10, 2592000},
[75414] = {3013, apply.CURSE_PCT, 10, 2592000},
[75415] = {3014, apply.CURSE_PCT, 10, 2592000},
[75416] = {3014, apply.CURSE_PCT, 10, 2592000},
[75417] = {3015, apply.CURSE_PCT, 10, 2592000},
[75418] = {3016, apply.CURSE_PCT, 10, 2592000},
[75419] = {3017, apply.CURSE_PCT, 10, 2592000},
[75420] = {3018, apply.CURSE_PCT, 10, 2592000},
[75601] = {4001, apply.ATTBONUS_WARRIOR, 10, 2592000},
[75602] = {4002, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[75603] = {4003, apply.ATTBONUS_SURA, 10, 2592000},
[75604] = {4004, apply.ATTBONUS_SHAMAN, 10, 2592000},
[75605] = {4005, apply.ATTBONUS_WARRIOR, 10, 2592000},
[75606] = {4006, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[75607] = {4007, apply.ATTBONUS_SURA, 10, 2592000},
[75608] = {4008, apply.ATTBONUS_SHAMAN, 10, 2592000},
[75609] = {4009, apply.ATTBONUS_WARRIOR, 10, 2592000},
[75610] = {4010, apply.ATTBONUS_ASSASSIN, 10, 2592000},
[75611] = {4011, apply.ATTBONUS_SURA, 10, 2592000},
[75612] = {4012, apply.ATTBONUS_SHAMAN, 10, 2592000},
[75613] = {4013, apply.CURSE_PCT, 10, 2592000},
[75614] = {4013, apply.CURSE_PCT, 10, 2592000},
[75615] = {4014, apply.CURSE_PCT, 10, 2592000},
[75616] = {4014, apply.CURSE_PCT, 10, 2592000},
[75617] = {4015, apply.CURSE_PCT, 10, 2592000},
[75618] = {4016, apply.CURSE_PCT, 10, 2592000},
[75619] = {4017, apply.CURSE_PCT, 10, 2592000},
[75620] = {4018, apply.CURSE_PCT, 10, 2592000}
}
return hair_list[vnum][index]
end
function race(vnum)
hair_list={
[45003] = 5002, [45004] = 5002, [45005] = 5003, [45006] = 5003, [45007] = 5004, [45008] = 5004,
[45009] = 5005, [45010] = 5005, [45011] = 5002, [45012] = 5002, [45013] = 5003, [45014] = 5003,
[45015] = 5004, [45016] = 5004, [45017] = 5005, [45018] = 5005, [45019] = 5006, [45020] = 5007,
[45021] = 5008, [45022] = 5009, [45023] = 5010, [45024] = 5011, [45025] = 5012, [45026] = 5013,
[45027] = 5014, [45028] = 5015, [45029] = 5016, [45030] = 5017, [45031] = 5018, [45032] = 5019,
[45033] = 5020, [45034] = 5021, [45035] = 5006, [45036] = 5007, [45037] = 5008, [45038] = 5009,
[45039] = 5010, [45040] = 5011, [45041] = 5012, [45042] = 5013, [45043] = 5014, [45044] = 5015,
[45045] = 5016, [45046] = 5017, [45047] = 5018, [45048] = 5019, [45049] = 5020, [45050] = 5021,
[45053] = 5023, [45054] = 5023, [45055] = 5024, [45056] = 5024, [45057] = 5025, [45058] = 5025,
[45069] = 5025, [45070] = 5025, [45073] = 5027, [45074] = 5027, [73001] = 1001, [73002] = 1002,
[73003] = 1003, [73004] = 1004, [73005] = 1005, [73006] = 1006, [73007] = 1007, [73008] = 1008,
[73009] = 1009, [73010] = 1010, [73011] = 1011, [73012] = 1012, [73251] = 2001, [73252] = 2002,
[73253] = 2003, [73254] = 2004, [73255] = 2005, [73256] = 2006, [73257] = 2007, [73258] = 2008,
[73503] = 3003, [73504] = 3004, [73505] = 3005, [73506] = 3006, [73507] = 3007, [73508] = 3008,
[73509] = 3009, [73510] = 3010, [73511] = 3011, [73512] = 3012, [73751] = 4001, [73752] = 4002,
[73753] = 4003, [73754] = 4004, [73755] = 4005, [73756] = 4006, [73757] = 4007, [73758] = 4008,
[73759] = 4009, [73760] = 4010, [73761] = 4011, [73762] = 4012
}
return hair_list[vnum]
end
end
end

 

 

Z góry dzięki i pozdrawiam, Patryk

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...