Jesper_Kladden
Donator
This time I made a LUA script that when you say "!speed" it will check what speed you have.
I'm just puking out scripts ATM, I know. But that's for learning.
"This time I learned how to concatenate strings with variables"¨¨
^ AUEHAUEAE
Call this one "getspeed.lua"
and this should be in TalkActions.XML
Ps. TFS.
Just delete it if you don't want it here ! I don't mind.
I'm just puking out scripts ATM, I know. But that's for learning.
"This time I learned how to concatenate strings with variables"¨¨
^ AUEHAUEAE
Call this one "getspeed.lua"
PHP:
function onSay(cid, word)
doPlayerSendTextMessage(cid, 22, "Your current speed is " ..getCreatureSpeed(cid))
end
and this should be in TalkActions.XML
PHP:
<talkaction words="!speed" script="getspeed.lua"/>
Ps. TFS.
Just delete it if you don't want it here ! I don't mind.
Last edited: