Jump to content
  • 0

Pls Help for Pvppoints Shop


Brahms

Question


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.02
  • Content Count:  149
  • Reputation:   3
  • Joined:  07/29/16
  • Last Seen:  

Good day rathena.. just want to ask for help on how to modify this npc shop using the #PVPPOINTS..??

 

Here's the script of my cash npc shop.. i just want to purchase item in this NPC using #PVPPOINTS instead of #CASHPOINTS.. thank you so much for the help..

 


 

-	cashshop	CashShop_HourPoints	-1,7227:2,14545:2,12210:2,12214:2,12260:5,13540:10,13539:10,13538:10,13543:10,13544:10,13545:10,13546:10,14517:2,14518:2,14519:2,14520:2,13718:10,14536:2,12913:15,12914:15,12918:15,12916:20,12915:15,12215:2,12216:2,12220:2,12218:5,12217:2,12219:5,14074:15,12708:3,13804:8,13806:8,13807:8,14262:10,14263:10,14264:10,14265:10,14266:10,14267:10

aretnorp,253,245,4	script	Hourlypoints Changer	899,{

	mes "[^ff0000Devi^000000]";
	mes "How's your day ^990099 "+strcharinfo(0)+"!^000000";
	mes "I can sell you rare items using your Cash Points.";
	mes "You currently have: ^ff0000"+ #CASHPOINTS +".^000000";
	close2;
	callshop "CashShop_HourPoints",0;
	end;


OnInit:
set .@delay, 1000; // in ms
	setarray .@m$[0], // message list
		"Exchange Your",
		"Hourly Points Here.";
	set .@s, getarraysize(.@m$);
	while(1) {
		for(set .@i,0; .@i<.@s; set .@i,.@i+1) {
			waitingroom .@m$[.@i],0;
			sleep .@delay;
			delwaitingroom;
		}
	}
	end;
}

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   344
  • Joined:  10/17/12
  • Last Seen:  

Replace the cash shop with a pointshop

 

 -%TAB%pointshop%TAB%<NPC Name>%TAB%<sprite id>,<costvariable>{:<discount>},<itemid>:<price>{,<itemid>:<price>...}


 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.02
  • Content Count:  149
  • Reputation:   3
  • Joined:  07/29/16
  • Last Seen:  

Thank you sir Stolao. ill test it later.

Link to comment
Share on other sites

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...