• 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 needed some functions lua

Faraonekkk

New Member
Joined
Feb 15, 2010
Messages
686
Reaction score
4
how can i write in one line to give player 1 mlvl, or 10% speed more?

what is the function?

please help!! :P

doplayeradd...
 
thanks alot, doChangeSpeed(cid, delta) i need10% more so it'll be cid, 110?


doPlayerAddSkill(cid, skill[, amount = 1[, round = false]])

what is round?


Can i have storage id's for every addon? Thanks. :)
 
doChangeSpeed(cid, delta), I think it just changes your base speed.
If this is the case, then you'll need to do some math. You will need to get their base speed (getCreatureBaseSpeed(cid)), then get 10% of that.
Then add that to their base speed. Then use that number into the function.

As for round, I have no idea, but you don't have to use it.
 
[12/04/2012 15:16:10] [Error - LuaScriptInterface::loadFile] data/npc/scripts/julia.lua:22: unexpected symbol near '['
[12/04/2012 15:16:10] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/julia.lua
[12/04/2012 15:16:10] data/npc/scripts/julia.lua:22: unexpected symbol near '['

about

doPlayerAddSkill(cid, skill[, amount = 1[, round = false]])
 
Lol... you can't just add it in like that.

doPlayerAddSkill(cid, magic, 1)

or

doPlayerAddSkill(cid, 7, 1)
 
Back
Top