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

Lua doPlayerAddInFightTicks

Stellow

C++/C#/PHP/LUA
Joined
Oct 23, 2008
Messages
1,112
Reaction score
221
Location
Germany
GitHub
eubrunomiguel
I am trying to implement a function on my server to add battle to the player onlogin, because without it, they can spam login and logout and freeze server.
Anyway,
I have added this function on creaturescripts

Code:
function onLogin(cid)
doPlayerAddInFightTicks(cid,1000)
return true
end

The definition of the function is:
doPlayerAddInFightTicks(cid, ticks, <optional: default: 0> pzLock)


the problem is, no matter what number I use there, the battle does not goes off!

ideas?


Edit: The first time player log on his character, takes forever to get out, but after gets out and he relogs, works fine. Weird?
 
Last edited:
Back
Top