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

Summoner item script

tatara

New Member
Joined
Jan 1, 2023
Messages
36
Reaction score
3
GitHub
Tatara
Hi. Im working on 7.6 version server right now, and im wondering, maybe someone could help me. I need to make an items, which after using they will summon a creature.
Examle : You see 1 talon. After using this talon creature named Demon will be summoned. (Action : Right click item to summon 1x demon and item disappears ).
Thank you.
 
i got this script work, i had problems with monster files.
the problem with it now, is when you use it from ground, it can be used infinite times and when you use from inventory only 1 can be summoned.
how to make it single use even from floor ?
Lua:
function onUse(cid, item, frompos, item2, topos)
    doSummonCreature("Experience Bug", getPlayerPosition(cid))
    doRemoveItem(item.uid)
    return true
end
 
i got this script work, i had problems with monster files.
the problem with it now, is when you use it from ground, it can be used infinite times and when you use from inventory only 1 can be summoned.
how to make it single use even from floor ?
Try changing

Lua:
doPlayerRemoveItem(cid, 2349, 1)
To

Lua:
doRemoveItem(item.uid, 1)
 
Back
Top