Stellow
C++/C#/PHP/LUA
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
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?
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: