Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prontera,147,157,0 script Mission points 861,{
- mes .NPC$;
- mes "Do you want to exchange your Mission points to " + getitemname(.ID) + "?";
- mes "The conversion rate is " + .NP + " for 1 " + getitemname(.ID) + ".";
- next;
- if (select("Yes:No") - 1) close;
- mes .NPC$;
- mes "How many " + getitemname(.ID) + " do you want?";
- next;
- input .@amount;
- if (.@amount == 0) {
- mes .NPC$;
- mes "Umm, you want 0" + getitemname(.ID) + "?...";
- close;
- }
- .@amount2 = (.@amount * .NP);
- .@points = (#Mission_Points);
- if (.@amount2 > .@points) {
- mes .NPC$;
- mes "You do not have enough points!";
- close;
- }
- if (#Mission_Points == 0) {
- mes .NPC$;
- mes "You have 0 mission points!";
- close;
- }
- mes .NPC$;
- mes "Here you go!";
- set #Mission_Points,#Mission_Points - .@amount2;
- getitem .ID,.@amount;
- close;
- OnInit:
- set .NPC$,"[ " +strnpcinfo(1)+ " ]"; // NPC Name
- set .ID,7227; // Item to give
- set .NP,50; // Amount of points needed for one of the item
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement