• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction [7.92]/speed

Master-m

Need help? Just ask!
Senator
Joined
May 28, 2007
Messages
4,338
Reaction score
16
Location
The Netherlands
First of all I want to thank Talaturen for helping me with some problems :)
This is a script wich can change you speed to fast and change it back to normal

First you say /speed to gain maximim speed.
If you say it for the second time you gain your normal speed back.

Ok now open talkactions.xml and put this in the buttom but above </talkactions>

Code:
<talkaction words="/speed" script="speeding.lua" />

Now you have got that goto the scripts folder, copy one file and change the name to speeding.lua.
Open speeding.lua and delete everything inside and paste this in it.
Code:
function getSpeed(level)
    return (220 + (2 * (level - 1)))
end
function onSay(cid,words,param)
---Speed command made by Dop---
---Thanks Talaturen for helping me---
            if getPlayerGroupId(cid) >= 4 and param == "" and getPlayerStorageValue(cid, 1337) == -1 then
                doPlayerSendTextMessage(cid,25,'Your speed has been changed to maximum.')
                doChangeSpeed(cid, (2000 - getSpeed(getPlayerLevel(cid))))
                setPlayerStorageValue(cid, 1337, 1)
            elseif getPlayerStorageValue(cid, 1337) ~= -1 then
                doPlayerSendTextMessage(cid,25,'Your speed has been changed back to normal.')
                doChangeSpeed(cid, -(2000 - getSpeed(getPlayerLevel(cid))))
                setPlayerStorageValue(cid, 1337, -1)
            elseif getPlayerGroupId(cid) < 4 then
                doPlayerSendTextMessage(cid,21,"You cannot gain speed!")
end
end

Now press save and test it out!
Post any suggestions/bugs in this thread :)
 
RE: [Talkaction][7.92]/speed

Very nice u posted but it doesen;t work i got evolutions 7.8
 
RE: [Talkaction][7.92]/speed

Henkieman said:
Very nice u posted but it doesen;t work i got evolutions 7.8

yes because evolutions sucks ;D Use forgotten server, MUCH BETTER
or if you dont want it for a stupid reason.
Change getPlayerGroupId(cid) to getPlayerAccess(cid)
 
RE: [Talkaction][7.92]/speed

master-m said:
Henkieman said:
is forgotten xml?
no, because xml = for noobs and forgotten isnt a noob server and evolutions IS...;D

hahah that was mean :p

I used Evo~
Now im using Forgotten :)

master-m you are here now and posting codes XD

Yours, Codemaster
 
RE: [Talkaction][7.92]/speed

@TOPIC

For me sometimes when i back to the normal speed, it change for a one very very slow speed
And not sure but when change to the max speed not is realy realy fast, maybe need make it more fast, cause is possible give more speed.
 
RE: [Talkaction][7.92]/speed

This is good, might be a good option for those who want an addition in their quests.
But I think that the 'normal' speed, is really low, not the real one (that it was before).

What you need to do, is improve your script doing some maths which relates:
Player Level - Player Speed.

e.g.
Level 100 - Speed 1000.
Level 90 - Speed 900.
 
RE: [Talkaction][7.92]/speed

Yes it works good until you logout when u have /speed enabled. There is still some bug in it I think :eek:
 
23:47 Your speed has been changed back to normal.
each time that i put /speed only says this, and when i use i only get slowest!
 
Last edited:
Humm very usefull, better than use hur all time
Good Job ^^
But master have little sugestion: actually my mind is working many xD

Lets go: Is possible to make or active this command when Player GM login on server?
I mean when 1 Group id 4+ log on server automatically he will gain speed or enable command without write command :O and when logout disable this action. Maybe nice eh?
 
Back
Top