Jump to content
  • 0

R> Inflation Item Price with NPC


Question

Posted

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

2 answers to this question

Recommended Posts

  • 0
Posted
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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...