Synergy
New Member
- Joined
- Nov 24, 2011
- Messages
- 334
- Reaction score
- 0
My script:
It works fine BUT you can ONLY press on the item if your LVL 8, not 1 not 100, ONLY LVL 8
How can I make it for 8++
function onUse(cid, item, fromPosition, itemEx, toPosition)
local location = {
{x = 1036, y = 1042, z = 8}, -- location 1
{x = 1002, y = 1067, z = 7}, -- location 2
{x = 986, y = 1048, z = 6}, -- location 3
{x = 991, y = 1010, z = 8}, -- location 4
{x = 1016, y = 1029, z = 7}, -- location 5
{x = 967, y = 1049, z = 7} -- location 6
}
if isPlayer(cid) and getPlayerLevel(cid) == 8 then
doTeleportThing(cid,location[math.random(#location)])
doSendMagicEffect(getPlayerPosition(cid),66)
else
doCreatureSay(cid, "Not strong enough..", TALKTYPE_ORANGE_1)
end
return true
end
It works fine BUT you can ONLY press on the item if your LVL 8, not 1 not 100, ONLY LVL 8
How can I make it for 8++