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

An EASY question, Please anyone.

Synergy

New Member
Joined
Nov 24, 2011
Messages
334
Reaction score
0
My script:



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++
 


Thank you Evan, I rep since you helped me alot today, you rock!!


Do you also know how to erase the level req and text from items like:

02:05 You see a zaoan armor (Arm:13, speed +10).
It can only be wielded properly by paladins and knights of level 50 or higher.
It weighs 95.50 oz.


To make it look like:
02:05 You see a zaoan armor (Arm:13, speed +10).
It weighs 95.50 oz.
 
Back
Top