• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua After blazier is used, change it to diffrent item.

astamor

New Member
Joined
Jul 22, 2011
Messages
42
Reaction score
2
Hello :)

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 :p

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.
 
Back
Top