Jump to content
  • 0

Point(s) to Item(s).


Question

Posted
prontera,149,175,5 script Time Points Trader 88,{
mes "[Trader]";
mes "You currently have: "+#Time+"";
mes "Would you want to proceed?";
menu "15 Time Points for 1 Mission Points.",-;
 
next;
if( #Time < 15 ){
mes "[Trader]";
mes "You will need at least 15 Time Points to proceed.";
close;
}
else{
.@amount = ( #Time / 15 );
#Time = #Time - ( .@amount * 15 );
#Mission_Points += .@amount;
message strcharinfo(0),"You converted "+( .@amount * 15 )+" Time Points to "+.@amount+" Mission Points.";
}
end;
}

 

 

 

How to make this like per #Mission_Points = item 7227?

 

Conversion is: 1 Mission Point = 1 TCG card.

 

7 answers to this question

Recommended Posts

Posted
getitem 7227,#Mission_Points;
#Mission_Points = 0;

 

where should i put or replace this with?

If your asking to be able to convert Mission_Points to 7227 heres a example:

http://pastebin.com/U1qCZ7da

 

I need like per points = per cards.

 

so dependin how many points they input, that will be how much 7227 they will get.

Posted

The script dont have a mission x cards option, just time x mission.

You can add a menu like:

prontera,149,175,5 script Time Points Trader 88,{
mes "[Trader]";
mes "Hello, what do you need?";
mes "You currently have: "+#Time+"";
next;
switch(select("Time Points x Mission Points:Mission Points x TCG Card")) {
mes "Would you want to proceed?";
 
case 1:
if( #Time < 15 ){
mes "[Trader]";
mes "You will need at least 15 Time Points to proceed.";
close;
}
else{
.@amount = ( #Time / 15 );
#Time = #Time - ( .@amount * 15 );
#Mission_Points += .@amount;
message strcharinfo(0),"You converted "+( .@amount * 15 )+" Time Points to "+.@amount+" Mission Points.";
}
case 2:
mes "[Trader]";
mes "How many Points you want to change?";
input @cant$;
if(#Mission_Points < @cant$) {
mes "Sorry, you dont have this Mission Points.";
close;
}
else {
getitem 7227,#Mission_Points;
#Mission_Points = 0;
mes "Thank You! Bye!";
}
}
end;
}

I dont test it yet, if you have any error let me know.

Posted
prt_fild08,97,308,4 script Time Points Trader 88,{
mes "[Trader]";
mes "Hello, what do you need?";
mes "You currently have: "+#Time+"";
next;
mes "Would you want to proceed?";
switch(select("Mission Points x TCG Card")) {
 
 
case 1:
mes "[Trader]";
mes "How many Points you want to change?";
input @cant$;
if(#Mission_Points < @cant$) {
mes "Sorry, you dont have this Mission Points.";
close;
}
else {
getitem 7227,#Mission_Points;
#Mission_Points = 0;
mes "Thank You! Bye!";
}
}
end;
}

 

 

After input of the mission points want to trade, nothing happens then..

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