• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Help]quest

elking

Swev-v2.sytes.net Comming Soon !<>!
Joined
Aug 20, 2012
Messages
445
Reaction score
28
Location
Egypt
hello Guys !

I need to make script which can help you to creat anymonster or anyNPC by items (ID) can help ??
 
Is this what you want?

Code:
local config = {
    summonName = "Troll",
    isNPC = false
}
   
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if isNPC then
        doCreateNpc(config.summonName, getCreaturePosition(cid))
    elseif getTilePzInfo(getCreaturePosition(cid)) == 0 then
        local summon = doSummonCreature(cid, config.summonName, getCreaturePosition(cid))
        doConvinceCreature(cid, summon)
    else
        doSendMagicEffect(cid, CONST_ME_POFF)
        doPlayerSendCancel(cid, "Sorry, you can not use this item in a protection zone.")
    end
    return TRUE
end
 
Back
Top