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

TalkAction Speed Checker

Jesper_Kladden

Donator
Joined
May 16, 2008
Messages
458
Reaction score
1
Location
Sweden
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"

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:
It's not just an int inside a string... I guess you meant "This time I learned how to concatenate strings with variables"
 
I have to believe that you are not jesper kladden from tpforums if you don't even know the difference between variable and int.

Why claim to be someone else?

And to be honest, I don't think you should release codes containing only a function... Especially not if they are useless.
 
Yeah but consider what I said. Atleast use some maths or so to make it worth releasing...

E.g. converting the speed to sqm/hour or w/e xD
 
Back
Top