astamor
New Member
- Joined
- Jul 22, 2011
- Messages
- 42
- Reaction score
- 2
Hello
I've made this:
And in actions.xml
Maybe it's not perfect and needs some improvements but it works
And my question is: The blazier used in my code is empty, there is no fire in it, what do I need to add to the script to change the blazier to the one with fire ?
Blazier with fire has item id: 1484.
I've made this:
Code:
local position = {x=967, y=960, z=7}
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid, 65535) ~= 1 then
doPlayerSendTextMessage(cid, 22, "Guardian has been summoned.")
setPlayerStorageValue(cid, 65535, 1)
doSummonCreature('Rend the protector', position)
local effect = CONST_ME_MAGIC_RED
doSendMagicEffect(getCreaturePosition(cid), effect)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Blazier is out of energy.")
end
return true
end
And in actions.xml
Code:
<action uniqueid="65535" event="script" value="tools/blazier.lua"/>
Maybe it's not perfect and needs some improvements but it works
And my question is: The blazier used in my code is empty, there is no fire in it, what do I need to add to the script to change the blazier to the one with fire ?
Blazier with fire has item id: 1484.