Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
change gold
#1
Hello, I would like you to tell me, how do I make a change gold moon
in case it would have this as an example
say (('change gold% d'): format (itemcount ('gold coin'), 'gold coin'))

but would need to leave with whole numbers (1k), (2k) could you help me? because this moon exchanges all gold (1050) <- npc does not understand that it would be 1k
Reply

#2
Hello.

Well, that's about math!
100 gold coins = 1 platinum coin.
Just divide the value and round down the result.

local goldCount = itemcount('gold coin')
local platinumsCount = math.floor(goldCount / 100)

say('hi')
wait(800)
say('change gold')
wait(800)
say(platinumsCount)
wait(800)
say('yes')
wait(800)
say('bye')
wait(800)
Reply

#3
|Only Registered members can see download links. | Click here to buy subscription or here to register.
ty bro!!
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016