• 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 Add exhausted to script

Status
Not open for further replies.

PuzzeL

www.XERIA.pl Come! :D
Joined
Feb 7, 2010
Messages
62
Reaction score
3
Location
//Poland
Welcome honorable Otland community.
I apologize in advance for my English, I used a translator, it's better than nothing ..
At last I am a Pole xd.
He needs someone gave me this script (below) exhausted ..
Thanks in advance, best regards.

Code:
function onStepIn(cid, item, pos)
	doCreatureSay(cid, "jestem noobem uswiadom to sobie", TALKTYPE_YELL)
	doSendMagicEffect(pos, CONST_ME_NONE)
	return true
end

--W wersji polskiej--
Potrzebuje, kogoś zdolnego z talnentem, żeby mi dodał exhausted do tego skrypciocha.
Pozdrawiam kurwa.
 
The script does not work at all.

- - - Updated - - -

I would add that the console does not pop up any errors
 
Lua:
function onStepIn(cid, item, pos)
local storage = 100
local time = 10 -- time in seconds

    if exhaustion.check(cid, storage) then        
        return doPlayerSendCancel(cid, "You are exhausted")
    end

	doCreatureSay(cid, "jestem noobem uswiadom to sobie", TALKTYPE_YELL)
	doSendMagicEffect(pos, CONST_ME_NONE)
	exhaustion.set(cid, storage, time)
	return true
end

Don't test it with a god char (they don't have exhaustion) and if it doesn't work, tell me what kind of server and client version you use.
 
Last edited:
Status
Not open for further replies.
Back
Top