norightinfo Posted February 6, 2021 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 24 Reputation: 1 Joined: 07/15/20 Last Seen: January 11 Share Posted February 6, 2021 (edited) Hi Guys, I am new here, I need help with my simple cash npc script, I am looking for ways to convert this from Herc to rAthena, can anybody help me? Cash Shop NPC: // Cash Shop NPC prontera,103,79,5 trader Cash Shop 4_F_BRZ_WOMAN,{ OnInit: tradertype(NST_CASH); sellitem 5362; sellitem 5305; sellitem 5767; end; OnCountFunds: setcurrency(#CASHPOINTS); end; OnPayFunds: if(#CASHPOINTS < @points) end; #HOURPOINTS -= @points; purchaseok(); } Custom Hourly Shop NPC: // Hourly Shop NPC prontera,103,77,5 trader Hourly Shop 4_M_ZONDAOYAJI,{ OnInit: tradertype(NST_CUSTOM); sellitem 5362; sellitem 5305; sellitem 5767; end; OnCountFunds: setcurrency(#HOURPOINTS); end; OnPayFunds: if(#HOURPOINTS < @points) end; #HOURPOINTS -= @points; purchaseok(); } I made progress by able to display the NPC with the items to sell, however I can't seem to find anyways to have the setcurrency function. Edited February 6, 2021 by norightinfo Quote Link to comment Share on other sites More sharing options...
Question
norightinfo
Hi Guys,
I am new here, I need help with my simple cash npc script, I am looking for ways to convert this from Herc to rAthena, can anybody help me?
Cash Shop NPC:
// Cash Shop NPC prontera,103,79,5 trader Cash Shop 4_F_BRZ_WOMAN,{ OnInit: tradertype(NST_CASH); sellitem 5362; sellitem 5305; sellitem 5767; end; OnCountFunds: setcurrency(#CASHPOINTS); end; OnPayFunds: if(#CASHPOINTS < @points) end; #HOURPOINTS -= @points; purchaseok(); }
Custom Hourly Shop NPC:
// Hourly Shop NPC prontera,103,77,5 trader Hourly Shop 4_M_ZONDAOYAJI,{ OnInit: tradertype(NST_CUSTOM); sellitem 5362; sellitem 5305; sellitem 5767; end; OnCountFunds: setcurrency(#HOURPOINTS); end; OnPayFunds: if(#HOURPOINTS < @points) end; #HOURPOINTS -= @points; purchaseok(); }
I made progress by able to display the NPC with the items to sell, however I can't seem to find anyways to have the setcurrency function.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.