• 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!

Solved Npc wont take new coin

Thorn

Spriting since 2013
Joined
Sep 24, 2012
Messages
2,203
Solutions
1
Reaction score
923
Location
Chile
OTX Server Version: (2.52 - 1557)



Hello guys, i have really tried to fix this but i cant find the problem :(
i created a new coin, Ultimate coin.
This coin transforms succefully into Blood coin (100BC=1UC)
but when i try to buy things with ultimate coin nothing happens, like i have no money, this is everything i have regarding this coin, plz guys help :(

actions.xml
OFPQTRE.png


Items.xml
RG2mbTu.png


000-constant.lua
e7RxHOM.png


Changegold.lua
Cv_vKM9.png







perhaps i'm forgetting something?? :C
plz guys help me here :c

and if you have any time plz check my other help threads:
https://otland.net/threads/npc-problem-dont-open-npc-window.246890/
https://otland.net/threads/rebirth-npc-changes.246892/
 
OTX Server Version: (2.52 - 1557)



Hello guys, i have really tried to fix this but i cant find the problem :(
i created a new coin, Ultimate coin.
This coin transforms succefully into Blood coin (100BC=1UC)
but when i try to buy things with ultimate coin nothing happens, like i have no money, this is everything i have regarding this coin, plz guys help :(

actions.xml
OFPQTRE.png


Items.xml
RG2mbTu.png


000-constant.lua
e7RxHOM.png


Changegold.lua
Cv_vKM9.png







perhaps i'm forgetting something?? :C
plz guys help me here :c

and if you have any time plz check my other help threads:
https://otland.net/threads/npc-problem-dont-open-npc-window.246890/
https://otland.net/threads/rebirth-npc-changes.246892/
because npcs use a function called doPlayerRemoveMoney when you buy things, this uses gold,platinum,and crystal coins
it also checks with getPlayerMoney which uses the same 3 coins
if you want to add more coins you have to source edit
 
because npcs use a function called doPlayerRemoveMoney when you buy things, this uses gold,platinum,and crystal coins
it also checks with getPlayerMoney which uses the same 3 coins
if you want to add more coins you have to source edit
this.
not to mention deposit/withdraw functions.
 
because npcs use a function called doPlayerRemoveMoney when you buy things, this uses gold,platinum,and crystal coins
it also checks with getPlayerMoney which uses the same 3 coins
if you want to add more coins you have to source edit

but it works with the Blood coin, npc are taking blood coins, so i dont think that's the problem :(
 
are you using trade window or just using keywords to remove item from player
trade window, but my trade window is currently not working, so i'm testing the coin in a slotmachine, it takes all coins, gold, platinum, crystal, blood coin, but not Ultimte coin :(
 
trade window, but my trade window is currently not working, so i'm testing the coin in a slotmachine, it takes all coins, gold, platinum, crystal, blood coin, but not Ultimte coin :(
slot machine?
from where lol
show the script
 
slot machine?
from where lol
show the script
OMG i didnt even thought about looking the slotmachine, yeaaah the problem was there, i had to add the new coin, and the coin is probably working with npcs too, thanks man! (do'h!)
 
Back
Top