Witam , mam problem otóż:
Próbowałem zrobić skrypt w creaturescripts.Na to że jak player profesja (Druid) padnie to zamiast jego deda będą Bohy,a jak padnie player o profesji (Sorcerer) to zamiast jego deda będzie Wand of Inferno.Chciałem zrobić na zasadzie:
ale ded znika a bohów nie ma (podałem przykładowe itd.)
Co zrobiłem źle?:<
Próbowałem zrobić skrypt w creaturescripts.Na to że jak player profesja (Druid) padnie to zamiast jego deda będą Bohy,a jak padnie player o profesji (Sorcerer) to zamiast jego deda będzie Wand of Inferno.Chciałem zrobić na zasadzie:
Code:
function onDeath(cid, corpse, killer)
local corpse = corpse
local id_boh = 99978
if isDruid(cid) then
doTransformItem(corpse, id_boh)
end
end
Code:
[04/03/2010 16:54:06] [Error - CreatureScript Interface]
[04/03/2010 16:54:06] data/creaturescripts/scripts/playerdeath.lua:onDeath
[04/03/2010 16:54:06] Description:
[04/03/2010 16:54:06] (luaDoTransformItem) Item not found
[04/03/2010 16:54:06] Druid Sample has logged out.
Co zrobiłem źle?:<
Last edited: