Scorpvm 101
Active Member
Hello guys of otland!
I want one scroll when one guy use this scroll are summon one demon..
I have this scripts buy dont function :S.
I want one scroll when one guy use this scroll are summon one demon..
I have this scripts buy dont function :S.
Code:
function onUse(cid, item, frompos, item2, topos)
pos = getPlayerPosition(cid)
if getTilePzInfo(topos) == 0 then
if getTilePzInfo(pos) == 0 then
if item.itemid == 2140 then
doTransformItem(item.uid,2016)
doSummonCreature("VIP", pos)
doSendMagicEffect(topos,12)
doPlayerSay(cid,"Sale Vip",1)
doRemoveItem(item.uid,item.type)
else
doPlayerSendCancel(cid,"You cannot use that.")
end
else
doPlayerSendCancel(cid,"You can't use this scroll in pz zone.")
end
else
doPlayerSendCancel(cid,"You can't use this scroll in pz zone.")
end
return 1
end