Jump to content
  • 0

skull points shop


caspa

Question


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

can i request for an npc that exchange skull into skull points then i can use the skull points into a skull shop but not just a skull shop npc its a skull shop that has the same function as a dynamic npc which gives you the option of letting you "try" on the headgear or view the headgear.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

For the shop

trunk/npc/custom/quests/quest_shop.txt

or

http://rathena.org/board/files/file/2504-multi-currency-shop/

 

 

About the exchange skull -> skull points

prontera,155,167,5	script	sdfghj	56,{
	.@char_id = getcharid(0);
	.@count = countitem( 7420 ) - countitem2( 7420, 1,0,0, 254, 0, .@char_id, 0 );	// can't exchange his own skull

	mes "You have "+ .@count +" skull.";
	if ( .@count == 0 ) close;
	mes "Exchange your pvp skulls ?";
	next;
	if ( select( "~ Yes", "~ No" ) -1 ) end;
	.@count = countitem( 7420 ) - countitem2( 7420, 1,0,0, 254, 0, .@char_id, 0 );
	getinventorylist;
	while( .@i < @inventorylist_count && .@j < .@count ) {
		if ( @inventorylist_id[.@i] == 7420 && @inventorylist_card3[.@i] != .@char_id ) {
			delitem2 7420, @inventorylist_amount[.@i],1,0,0, @inventorylist_card1[.@i], 0, @inventorylist_card3[.@i], 0;
			.@j++;
		}
		.@i++;
	}
	#skull_points = #skull_points + .@count;
	mes "You got "+ .@count +" Skull points. Total: "+ #skull_points +" Skull points.";
	close;
}

 

  • Like 1
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...