• 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 Kill player get under your head experience gained

Saint Spear

Veteran OT User
Joined
Jun 22, 2016
Messages
1,547
Solutions
18
Reaction score
378
Allright, so can anyone help me to find or even script for me a script which works like
example : there is mark and John
Mark killed john and he get example 31241234 exp..
but i want to that be shown in Yellow colour and in front of your head.. here is image :)
http://prntscr.com/e76wrv
 
Replace "exp" with the actual amount.
LUA:
local exp = 100
player:sendTextMessage(MESSAGE_EXPERIENCE, string.format("You gained %s experience.", exp), player:getPosition(), exp, TEXTCOLOR_YELLOW)
The text part is shown in the Server Log and a yellow "100" at your position.

Please always provide your TFS version, it's very hard to help when we don't know which server you're using. The above function works on TFS 1.0 and up.
 
0.3.6 here :p

And what I have told you before? Read the rules, it's the least you can do when you get free help :p
https://otland.net/threads/rules-for-the-support-board.217087/

So in the future remember to write what TFS ver you are using and to make the best answer when the problem is solved.
LUA:
local exp = 100
doPlayerSendTextMessage(cid, MESSAGE_EXPERIENCE, string.format("You gained %s experience.", exp), getPlayerPosition(cid), exp, TEXTCOLOR_YELLOW)
 
Back
Top