Jump to content
  • 0

R> Credits to Super Credits


DairyPresto

Question


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  145
  • Reputation:   1
  • Joined:  04/03/17
  • Last Seen:  

i have here my credits exxchanger but can i request additional category

Credits to Super Credits

100 Credit > 1 Super Credit

Here is my script

https://pastebin.com/qfWJtQCc

 

Thanks in advance

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  342
  • Reputation:   169
  • Joined:  02/25/12
  • Last Seen:  

-   script  Credit Exchanger#2  903,{
    mes "[Credit Exchanger]";
    mes "What do you want?";
switch(select("[Credits to Super Credits]","[Credits to Zeny]","[Zeny to Credits]")){
	case 1:
        if(!countitem(20234)){
            mes "You don't have any credit";
            close;
        }
        mes "How many you want to exchange?";
        input @u;
        if(countitem(20234)<@u || @u < 100){
            mes "You don't have enough credit.";
            close;
        }
		set @realu, @u / 100; //report to nearest 100 multiplier
        mes "Ok~!";
        delitem 20234,@realu * 100;
        getitem "supercoinid", @realu;
        close;
    case 2:
        if(!countitem(20234)){
            mes "You don't have any credit";
            close;
        }
        mes "How many you want to exchange?";
        input @u;
        if(countitem(20234)<@u){
            mes "You don't have enough credit.";
            close;
        }
        mes "Ok~!";
        delitem 20234,@u;
        set Zeny,Zeny+10000000*@u;
        set @u,0;
        close;
    case 3:
        if(zeny<10000000){
            mes "You don't have enough Zeny.";
            close;
        }
        mes "How many you want to exchange?";
        input @u;
        if(10000000*@u>Zeny){
            mes "You don't have enough Zeny.";
            close;
        }
        set ztc_player,gettimetick(2);
        mes "Ok~!";
        getitem 20234,@u;
        set Zeny,Zeny-10000000*@u;
        close;
}
OnInit:
waitingroom "Credit Exchanger",0;
end;
}
prontera,164,168,5  duplicate(Credit Exchanger#2)   Credit Exchanger#3  903
geffen,116,62,5 duplicate(Credit Exchanger#2)   Credit Exchanger#4  903
turbo_room,93,117,5 duplicate(Credit Exchanger#2)   Credit Exchanger#3  903

You just have to replace the "supercoinid" by the real id.

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  145
  • Reputation:   1
  • Joined:  04/03/17
  • Last Seen:  

Thanks man, btw i got an error, npc can't click

is there a posibility to put in on pastebin ?:)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  145
  • Reputation:   1
  • Joined:  04/03/17
  • Last Seen:  

21 hours ago, AdrianoGC said:

Thank you i'll try 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...