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

[9.1] Exp ground.

Burn

New Member
Joined
Dec 23, 2009
Messages
26
Reaction score
1
Hey ! I need ground ( id - 426 ) give exp ( 500-1000 ) on step in .
Sorry for bad english... you can help me ?
 
Lua:
function onStepIn(cid, item, position, fromPosition)
local useTeleport = true 
local position = {x=1000,y=1000,z=7} -- Teleport position if true
local message = "You have already stepped on this tile"
local storage = 1337


if getPlayerStorageValue(cid, storage) == 1 and useTeleport == true then 
doTeleportThing(cid, position)
doPlayerSendTextMessage(cid, 25, message)
elseif getPlayerStorageValue(cid, storage) == 1 and useTeleport == false then
doPlayerSendTextMessage(cid, 25, message)
end

if getPlayerStorageValue(cid, storage) == -1 then
local min = 500
local max = 1000
local r = math.random(min, max) 
doPlayerAddExperience(cid, r) 
setPlayerStorageValue(cid, storage, 1)
doPlayerSendTextMessage(cid,25,"Congratulations you have received ".. r .." experience!")
end
return true
end
 
Lua:
function onStepIn(cid, item, position, fromPosition)
local useTeleport = true 
local position = {x=1000,y=1000,z=7} -- Teleport position if true
local message = "You have already stepped on this tile"
local storage = 1337


if getPlayerStorageValue(cid, storage) == 1 and useTeleport == true then 
doTeleportThing(cid, position)
doPlayerSendTextMessage(cid, 25, message)
elseif getPlayerStorageValue(cid, storage) == 1 and useTeleport == false then
doPlayerSendTextMessage(cid, 25, message)
end

if getPlayerStorageValue(cid, storage) == -1 then
local min = 500
local max = 1000
local r = math.random(min, max) 
doPlayerAddExperience(cid, r) 
setPlayerStorageValue(cid, storage, 1)
doPlayerSendTextMessage(cid,25,"Congratulations you have received ".. r .." experience!")
end
return true
end
fuckthat.jpg

You so fast!
 
Back
Top