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

simple onLogin request rep+

lalovega

New Member
Joined
Nov 4, 2008
Messages
85
Reaction score
1
hi guys i know this is no hard to make but i cant :blink: well , i just need a starter movement speed for players onLogin
why do i need that? cuz i will use just speed spells for archer, interesant right :p

plz rep++++++++++++
 
I wont write it for you just give advice.
1) make a script with onLogin event
-- doChangeSpeed(cid, delta)
2) open creatureevents.xml and add this event
3) open login.lua and put line there to register event.
 
Yes..... That's the idea....

onLogin doesn't need to be registered...

Cause if it needs to be registered, where do you register login.lua? xDDDD

onLogin creaturescripts dont need registration in login.lua
 
add this on login lua i dont know if it will work:

Code:
local PlayerSpeed = 550

if isPlayer(cid) then
doChangeSpeed(cid, PlayerSpeed)
end
 
Yes..... That's the idea....

onLogin doesn't need to be registered...

Cause if it needs to be registered, where do you register login.lua? xDDDD

onLogin creaturescripts dont need registration in login.lua

You register all creaturescripts in Login.lua?
Elseway it won't run the script when the player logs in.
 
Back
Top