arturhaddad
Member
- Joined
- Aug 14, 2010
- Messages
- 217
- Reaction score
- 8
I'm trying to do Blue Legs quest
In this quest, you kill "Koshei the Deathless" and uses an amulet on his body so he won't reborn, but I'm having trouble making him reborn
I've made this script:
koshei_the_deathless.lua
It should summon koshei again if storage is > 1, 'cause when u use the amulet on him it should set storage to 1...
But it isn't working
login.lua
creaturescripts.xml
No errors on console but nothing happens, I've tried to debug the script and when I kill koshei with bugged script it reports on console, what I mean is that the script is running when I kill the monster, 'cause if it didn't, it would give no errors
Thanks!
In this quest, you kill "Koshei the Deathless" and uses an amulet on his body so he won't reborn, but I'm having trouble making him reborn
I've made this script:
koshei_the_deathless.lua
Lua:
function onDeath(cid, corpse, killer)
if getCreatureName(cid) == 'Koshei The Deathless' then
doCreatureSay(cid,"Quickly, use koshei's amulet on his body before he reborns!",TALKTYPE_ORANGE_1)
addEvent(summonKoshei, (1000*5))
end
function summonKoshei()
if getPlayerStorageValue(cid, 20560) > 1 then
doSummonCreature("Koshei The Deathless", {x=33271, y=32408, z=12})
doSummonCreature("Bonebeast", {x=33272, y=32408, z=12})
return TRUE
end
end
end
It should summon koshei again if storage is > 1, 'cause when u use the amulet on him it should set storage to 1...
But it isn't working
login.lua
Lua:
registerCreatureEvent(cid, "koshei")
creaturescripts.xml
Lua:
<event type="death" name="koshei" script="koshei_the_deathless.lua"/>
No errors on console but nothing happens, I've tried to debug the script and when I kill koshei with bugged script it reports on console, what I mean is that the script is running when I kill the monster, 'cause if it didn't, it would give no errors
Thanks!