• 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!

item in object, which creates a monster.

thefrancis

New Member
Joined
Apr 16, 2010
Messages
22
Reaction score
1
I need a script where an item, used in another object ... create x monster in x position.

hy1H3wn.png


Thanks ! :)
 
wrote everything from memory.
Sorry if it don't work, but the groundwork is there if it doesn't.
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if itemEx.aid == 45001 then
        doRemoveItem(item.uid, 1)
        doCreateMonster("Demon", {x = 1000, y = 1000, z = 7})
    end
    return true
end

- edit
Put ActionID on the coal basin
put itemid in actions.xml
 
Last edited:
Back
Top