• 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 npc accepting different currency

darkmu

Well-Known Member
Joined
Aug 26, 2007
Messages
278
Solutions
1
Reaction score
50
Location
Paraná,Brazil
someone could help me create some function so that only one npc only accepts a different currency?

if I would like it to only accept x currency and coins not crystal and others.

thankss
 
More specific, what do you mean?
he wants npcs to accept another item other than coins

there is a line in ACTION_REMOVEMONEY and ACTION_ADDMONEY in npc.cpp thats something like g_game.addMoney and g_game.removeMoney, pretty sure you change this to remove/add item instead of money but idk what the function is
 
Back
Top