• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Fast east talkaction

beliar34

Member
Joined
Feb 28, 2012
Messages
307
Solutions
7
Reaction score
11
I need talkaction thats print in deafult chat message:

"You'r absorb level is : (Shielding skill/5)-2"

with max 1 number after ","
Easy peasy you can do it guys :)
 
Solution
Code:
function onSay(cid, words, param)
new_skill = getPlayerSkill(cid,5)
formula = (((new_skill * 5)-2)/100)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your absorb in % is " .. formula  .. ".")
    return TRUE
end

Thread to close
Code:
function onSay(cid, words, param)
new_skill = getPlayerSkill(cid,5)
formula = (((new_skill * 5)-2)/100)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your absorb in % is " .. formula  .. ".")
    return TRUE
end

Thread to close
 
Solution
Back
Top