Jump to content
  • 0

Convert cashshop NPC script from Herc to rAthena


norightinfo

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   1
  • Joined:  07/15/20
  • Last Seen:  

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 by norightinfo
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...