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

Leveling by walking

Landera

Veteran OT User
Joined
Nov 24, 2011
Messages
905
Solutions
1
Reaction score
318
Hello I'd like too request this.

when I'm walking on this special island you are getting 50 exp every step but you walk very slow.
island start from
x: 1005
y: 1012
z:7
too
x:1047
y:1034
z:7

hope some people could help me out im using
the forgotten server 0.3.6

Greetings
 
Last edited:
Make it so when you get to the island you set there speed to a certain level. Then every time they walk you doAddExp or w.e the function is until they leave the island... Its little unclear on what you want.
 
Well you get sendend there the idea is that when you are on that island that you are very heavy and each step you do is extaly making you stonger but when u leave this islans everything is normal again
 
Last edited:
since im not a scripter i dont have a clue what too do but thank you for posting this maybe somebody knows how and he/she could help me :)
 
Last edited:
there is no a function on sources for check that, you have to add the function what cbrm said and you will be helped fast
 
Well somebody made a script and sended it too me and now it.works almost perfect every step i do i get exp on the place that i want now just need the slow walking part and everything os fine with the script :p
 
okay so a bump again this is what i have its almost done

Lua:
function onStepIn(cid, item, position, fromPosition)
local exp = 50
local from,to = {x=462, y=216, z=3},{x=563, y=282, z=3}
 
	if isInRange(getThingPos(cid), from, to) then
	doPlayerAddExp(cid, exp)
	doAddCondition(cid, paralyzed)
	end
	return true
end


but every step i do doesnt make me paralyze but it makes me drunk
 
Lua:
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(condition, -0.9, 40, -0.9, 0)
function onStepIn(cid, item, position, fromPosition)
local exp = 50
local from,to = {x=462, y=216, z=3},{x=563, y=282, z=3}
 
	if isInRange(getThingPos(cid), from, to) then
	doPlayerAddExp(cid, exp)
	doAddCondition(cid, condition)
	end
	return true
end

this will work as i think rep++ me if it worked
 
it works perfect can you add one more thing?
that you cant cast spells in that area next update you get your rep++ for helping me out :D
 
kk adding it bro :p

- - - Updated - - -

anything.lua
Lua:
function onCast(cid, target)
local from,to = {x=462, y=216, z=3},{x=563, y=282, z=3}
	if isPlayer(cid) and isInRange(getThingPos(cid), from, to) then
	doPlayerSendCancel(cid,"You Can't Cast Spells Here")
        doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
	return FALSE
	end
	end
creaturescript.lua
Lua:
<event type="cast" name="antispell" event="script" value="anything.lua"/>
in login.lua
Lua:
registerCreatureEvent(cid, "antispell"

Done. test it and tell me if it work
 
Last edited:

Similar threads

  • Question
RevScripts step on x/y/z
Replies
0
Views
101
Back
Top