Jump to content
  • 0

R> Inflation Item Price with NPC


Psyche

Question


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   6
  • Joined:  03/12/13
  • Last Seen:  

Hello !

I'm requiesting for NPC (NOT npcshop) that sell an item (for example jellopy). and if a player buy this jellopy, in first deal, player will charges 1,000zeny , second deal, player will charges 2,000zeny, etc..

Please help me, thank you:D

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   4
  • Joined:  11/15/11
  • Last Seen:  

prontera,156,181,4	script	Inflation NPC 	528,{
set .@npcn$,"INFLATION NPC";
set .@price,1000;
set .@items,6498;
/////////////////
if (howmanytimesbought<1){set howmanytimesbought,1;}
set .@pricenow,howmanytimesbought*.@price;
mes .@npcn$;
mes "Buy my "+getitemname(.@items)+"I increase price everytime you buy";
mes "Price now is "+.@pricenow+"";
next;
switch(select("I wanna buy","I hate you")){
	case 1:
	set Zeny, Zeny -.@pricenow;
	getitem 909,1;
	set howmanytimesbought,howmanytimesbought+1;
	next;
	close;
	break;
	case 2:
	close;
	break;

}
end;

}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   6
  • Joined:  03/12/13
  • Last Seen:  

wow thanks! i'll testing that

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