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

Script for exhausted for "MOVING"

Zonkill

Banned User
Joined
Oct 10, 2010
Messages
102
Reaction score
1
Hi,
One guy is bugging my server by moving so fastly. I want to make script that will EXHAUST making Move. (ctrl + right/left/up/down). ANyoneeE?
 
Heh, i have my own server and i want to make that other players will not have bug when someone will move so fast ;] It is bug.
 
@Elaney:
LoL, it's not related to server specifications.

@ONT:
It's because person who does dance like that (using ElfBot probably) has good internet connection and all other (lower) connections get debugs, you can put exhaustion in game class, playerTurn function.

@CyberM:
What about return false under cancel message?
 
Last edited:
I know :p I was testing..This one works
Lua:
local exhaust = {
    storage = 2152,
    seconds = 5
}

function onDirection(cid, old, current)
    if isPlayer(cid) then 
        if current ~= old and exhaustion.check(cid, exhaust.storage) then
            doPlayerSendCancel(cid, 'Don\'t saturate the server making flood.')
            return false
        else
            exhaustion.set(cid, exhaust.storage, exhaust.seconds)
        end
    end
    return true
end
 
I know :p I was testing..This one works
Lua:
local exhaust = {
    storage = 2152,
    seconds = 5
}

function onDirection(cid, old, current)
    if isPlayer(cid) then 
        if current ~= old and exhaustion.check(cid, exhaust.storage) then
            doPlayerSendCancel(cid, 'Don\'t saturate the server making flood.')
            return false
        else
            exhaustion.set(cid, exhaust.storage, exhaust.seconds)
        end
    end
    return true
end

Yo,
How to change that will make exhausted if you try dance like ~2-5 times, not when you try to dance 1-2 times. Because it makes you exhausted so fastly, and it would be nice to little change :) Ty.
 
Code:
local exhaust = {
    storage = 2152,
    seconds = 5
}
 
function onDirection(cid, old, current)
    if isPlayer(cid) then 
        if current ~= old and exhaustion.check(cid, exhaust.storage) then
            doPlayerSendCancel(cid, 'Don\'t saturate the server making flood.')
            return false
        else
            exhaustion.set(cid, exhaust.storage, exhaust.seconds)
        end
    end
    return true
end
what is event type?? move??
Code:
	<event type="move" name="antydance" event="script" value="antydance.lua"/>
?? its good??
 
Back
Top