Psyche Posted August 1, 2017 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 123 Reputation: 6 Joined: 03/12/13 Last Seen: June 7, 2023 Share Posted August 1, 2017 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 Quote Link to comment Share on other sites More sharing options...
0 randell1993 Posted August 1, 2017 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 76 Reputation: 4 Joined: 11/15/11 Last Seen: January 2 Share Posted August 1, 2017 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; } 1 Quote Link to comment Share on other sites More sharing options...
0 Psyche Posted August 1, 2017 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 123 Reputation: 6 Joined: 03/12/13 Last Seen: June 7, 2023 Author Share Posted August 1, 2017 wow thanks! i'll testing that Quote Link to comment Share on other sites More sharing options...
Question
Psyche
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
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.