Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sky = {
- pos = {x = 1009,y = 1025,z=7},{x = 1009,y = 1026,z=7},{x = 1009,y = 1027,z=7},
- level = 100,
- fight = true
- }
- function onUse(cid, item, frompos, item2, topos)
- level = getPlayerLevel(cid)
- if (sky.fight == true) and (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then
- doPlayerSendTextMessage(cid,22,"Você Precisa estar sem battle para usar o item.")
- return FALSE
- end
- if (level >sky.level) and (item.itemid == 2177) then
- doPlayerRemoveItem(cid, 2177,1)
- doPlayerSendTextMessage(cid, 25, "Foi sumonado um item no mapa, ache-o")
- doCreateItem(2160, 1,sky.pos[math.random(1, #sky.pos)])
- else
- doPlayerSendTextMessage(cid, 25, "Level insuficiente")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment