Jump to content
  • 0

Need Help with My Script


SlashGeeGee

Question


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

Hello rA :)

i need support with my script . the script works fine it's just that the rate is 1 : 1 i want it 200 : 5 where do i change the rates ? then i they input 500 they will get 10 . /pat

Here's the Script :


royal_room3,102,120,3 script Skull Exchanger 795,{
mes "[ ^336699Skull Exchanger^000000 ]";
mes "Hi  ^ff8000"+strcharinfo(0)+"^000000,";
mes "tired from collecting skulls eh ? well don't worry because your hardwork all paid off this time because you can exchange Skulls to iRO Cash Tokens.";
next;
mes "[ ^336699Skull Exchanger^000000 ]";
mes "You have "+countitem(7420)+" Skulls!";
mes "Just Remeber that 250 Skulls is equivalent to 5 iRO Cash Token.";
next;

L_MEN:
mes "[ ^336699Skull Exchanger^000000 ]";
mes "Do you want to exchange your Skulls for iRO Cash Tokens ?";
next;
menu "Yes, I'd Be Glad To",-,"What can i Buy with iRO Cash Token?",L_INF,"No, Not Right Now.",L_OUT;
mes "[ ^336699Skull Exchanger^000000 ]";
mes "The Exchange Rate is 200 Skulls = ^0000FF5 iRO Cash Tokens^000000.";
mes "How many Skulls do you want to exchange? Input 0 to cancel.";
next;
input @coinschange;
if(@coinschange == 0) goto L_OUT;

// If you want to change the item ID of the Gold Coin, edit here
if(countitem(7420) < @coinschange) goto L_NOTENOUGH;
delitem 7420,@coinschange;
// If you want to change the echange rate, edit here
// If you DO change the rate, don't forget to change the dialogue too!
set @getitem,@coinschange * 5;
getitem 20001,@coinschange;  //input here your custom pods!!!

mes "[ ^336699Skull Exchanger^000000 ]";
mes "The Exchange was sucessfull. You can now purchase items at the Cash Shop.";
close;

L_INF:
mes "[ ^336699Skull Exchanger^000000 ]";
mes "iRO Cash Tokens is to be clicked then you get 10 Cash Points.";
mes "If you want to check what items are available, talk to the Cash Shop.";
next;
goto L_MEN;

L_NOTENOUGH:
mes "[ ^336699Skull Exchanger^000000 ]";
mes "You do not have enough Skulls.";
close;

L_OUT:
mes "[ ^336699Skull Exchanger^000000 ]";
mes "Come Back when you already have Skulls to Exchange.";
close;

}

Thanks /no1

SlashGeeGee

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  01/25/12
  • Last Seen:  

change

getitem 20001,@coinschange; //input here your custom pods!!!

to

getitem 20001,@getitem; //input here your custom pods!!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  398
  • Reputation:   140
  • Joined:  01/04/12
  • Last Seen:  

It's said in your script already... Just edit it.

// If you want to change the echange rate, edit here
// If you DO change the rate, don't forget to change the dialogue too!
set @getitem,@coinschange * 5;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

change

getitem 20001,@coinschange; //input here your custom pods!!!

to

getitem 20001,@getitem; //input here your custom pods!!!

It's said in your script already... Just edit it.

// If you want to change the echange rate, edit here
// If you DO change the rate, don't forget to change the dialogue too!
set @getitem,@coinschange * 5;

@deathscythe13

i tried it but it's still 1 is to 1, i want it 250 : 5

@Flaid

same thing 1:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

Did you realize one thing:

// If you want to change the item ID of the Gold Coin, edit here
if(countitem(7420) < @coinschange) goto L_NOTENOUGH;
delitem 7420,@coinschange;
// If you want to change the echange rate, edit here
// If you DO change the rate, don't forget to change the dialogue too!
set @getitem,@coinschange * 5;
getitem 20001,@coinschange;  //input here your custom pods

For me this part looks like you can put in,that you want to exchange 1 skull and then the NPC checks if there is 1 skull in the inventory of the Player,and if that's the truth,then the NPC exchanges the skull for the pods? Or did I get something wrong?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

Did you realize one thing:

// If you want to change the item ID of the Gold Coin, edit here
if(countitem(7420) < @coinschange) goto L_NOTENOUGH;
delitem 7420,@coinschange;
// If you want to change the echange rate, edit here
// If you DO change the rate, don't forget to change the dialogue too!
set @getitem,@coinschange * 5;
getitem 20001,@coinschange;  //input here your custom pods

For me this part looks like you can put in,that you want to exchange 1 skull and then the NPC checks if there is 1 skull in the inventory of the Player,and if that's the truth,then the NPC exchanges the skull for the pods? Or did I get something wrong?

yeah your right about that mate , can you make it to if the player inputs 250 below not enough then 250 up exchanges iRO Cash Token .

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

I made one really fast,where the Players can choose if they want to exchange 250 Skulls,500 Skulls,750 Skulls or 1000 Skulls for Tokens.

royal_room3,102,120,3<tab>script<tab>Skull Exchanger<tab>795,{
set .@n$,"[ ^336699Skull Exchanger^000000 ]";
mes .@n$;
mes "Hi  ^ff8000"+strcharinfo(0)+"^000000,";
mes "tired from collecting skulls eh ? well don't worry because your hardwork all paid off this time because you can exchange Skulls to iRO Cash Tokens.";
next;
mes .@n$;
mes "You have "+countitem(7420)+" Skulls!";
mes "Just Remeber that 250 Skulls is equivalent to 5 iRO Cash Token.";
mes "500 Skulls is equivalent to 10 iRO Cash Tokens!";
mes "750 Skulls is equivalent to 15 iRO Cash Tokens!";
mes "1000 Skulls is equivalent to 20 iRO Cash Tokens!";
next;
OnStartexchange:
mes .@n$;
mes "Do you want to exchange your Skulls for iRO Cash Tokens ?";
next;
switch(select("Yes,I'd be glad to:What can I buy with iRO Cash Tokens?:No,not right now")) {
case 1:
mes .@n$;
mes "The Exchange Rate is 250 Skulls = ^0000FF5 iRO Cash Tokens^000000.";
mes "Now you can choose if you want to exchange 250,500,750 or 1000 Skulls for tokens!";
next;
switch(select("Exchange 250 Skulls:Exchange 500 Skulls:Exchange 750 Skulls:Exchange 1000 Skulls")) {
case 1:
if(countitem(7420) < 250) {
mes .@n$;
mes "Sorry but you don't have enough Skulls!";
close;
}
mes .@n$;
mes "Okay let me exchange your skulls.";
next;
mes .@n$;
mes "...";
delitem 7420,250;
getitem 20001,5;
next;
mes .@n$;
mes "The Exchange was sucessfull. You can now purchase items at the Cash Shop.";
close;
case 2:
if(countitem(7420) < 500) {
mes .@n$;
mes "Sorry but you don't have enough Skulls!";
close;
}
mes .@n$;
mes "Okay let me exchange your skulls.";
next;
mes .@n$;
mes "...";
delitem 7420,500;
getitem 20001,10;
next;
mes .@n$;
mes "The Exchange was sucessfull. You can now purchase items at the Cash Shop.";
close;
case 3:
if(countitem(7420) < 750) {
mes .@n$;
mes "Sorry but you don't have enough Skulls!";
close;
}
mes .@n$;
mes "Okay let me exchange your skulls.";
next;
mes .@n$;
mes "...";
delitem 7420,750;
getitem 20001,15;
next;
mes .@n$;
mes "The Exchange was sucessfull. You can now purchase items at the Cash Shop.";
close;
case 4:
if(countitem(7420) < 1000) {
mes .@n$;
mes "Sorry but you don't have enough Skulls!";
close;
}
mes .@n$;
mes "Okay let me exchange your skulls.";
next;
mes .@n$;
mes "...";
delitem 7420,1000;
getitem 20001,20;
next;
mes .@n$;
mes "The Exchange was sucessfull. You can now purchase items at the Cash Shop.";
close;
}
case 2:
mes .@n$;
mes "iRO Cash Tokens is to be clicked then you get 10 Cash Points.";
mes "If you want to check what items are available, talk to the Cash Shop.";
next;
goto OnStartexchange;
case 3:
mes .@n$;
mes "Okay goodbye!";
close;
}
}

Have fun,I hope you like it.

Edited by Rikimaru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

I made one really fast,where the Players can choose if they want to exchange 250 Skulls,500 Skulls,750 Skulls or 1000 Skulls for Tokens.

royal_room3,102,120,3<tab>script<tab>Skull Exchanger<tab>795,{
set .@n$,"[ ^336699Skull Exchanger^000000 ]";
mes .@n$;
mes "Hi  ^ff8000"+strcharinfo(0)+"^000000,";
mes "tired from collecting skulls eh ? well don't worry because your hardwork all paid off this time because you can exchange Skulls to iRO Cash Tokens.";
next;
mes .@n$;
mes "You have "+countitem(7420)+" Skulls!";
mes "Just Remeber that 250 Skulls is equivalent to 5 iRO Cash Token.";
mes "500 Skulls is equivalent to 10 iRO Cash Tokens!";
mes "750 Skulls is equivalent to 15 iRO Cash Tokens!";
mes "1000 Skulls is equivalent to 20 iRO Cash Tokens!";
next;
OnStartexchange:
mes .@n$;
mes "Do you want to exchange your Skulls for iRO Cash Tokens ?";
next;
switch(select("Yes,I'd be glad to:What can I buy with iRO Cash Tokens?:No,not right now")) {
case 1:
mes .@n$;
mes "The Exchange Rate is 250 Skulls = ^0000FF5 iRO Cash Tokens^000000.";
mes "Now you can choose if you want to exchange 250,500,750 or 1000 Skulls for tokens!";
next;
switch(select("Exchange 250 Skulls:Exchange 500 Skulls:Exchange 750 Skulls:Exchange 1000 Skulls")) {
case 1:
if(countitem(7420) < 250) {
mes .@n$;
mes "Sorry but you don't have enough Skulls!";
close;
}
mes .@n$;
mes "Okay let me exchange your skulls.";
next;
mes .@n$;
mes "...";
delitem 7420,250;
getitem 20001,5;
next;
mes .@n$;
mes "The Exchange was sucessfull. You can now purchase items at the Cash Shop.";
close;
case 2:
if(countitem(7420) < 500) {
mes .@n$;
mes "Sorry but you don't have enough Skulls!";
close;
}
mes .@n$;
mes "Okay let me exchange your skulls.";
next;
mes .@n$;
mes "...";
delitem 7420,500;
getitem 20001,10;
next;
mes .@n$;
mes "The Exchange was sucessfull. You can now purchase items at the Cash Shop.";
close;
case 3:
if(countitem(7420) < 750) {
mes .@n$;
mes "Sorry but you don't have enough Skulls!";
close;
}
mes .@n$;
mes "Okay let me exchange your skulls.";
next;
mes .@n$;
mes "...";
delitem 7420,750;
getitem 20001,15;
next;
mes .@n$;
mes "The Exchange was sucessfull. You can now purchase items at the Cash Shop.";
close;
case 4:
if(countitem(7420) < 1000) {
mes .@n$;
mes "Sorry but you don't have enough Skulls!";
close;
}
mes .@n$;
mes "Okay let me exchange your skulls.";
next;
mes .@n$;
mes "...";
delitem 7420,1000;
getitem 20001,20;
next;
mes .@n$;
mes "The Exchange was sucessfull. You can now purchase items at the Cash Shop.";
close;
}
case 2:
mes .@n$;
mes "iRO Cash Tokens is to be clicked then you get 10 Cash Points.";
mes "If you want to check what items are available, talk to the Cash Shop.";
next;
goto OnStartexchange;
case 3:
mes .@n$;
mes "Okay goodbye!";
close;
}
}

Have fun,I hope you like it.

Thanks Mate :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

No Problem.

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