Hi! I need help. I want to exchange the top 20 PVP players's skull in my server to cashpoints. I found a script, I just want some help on 1. Detecting the top 20 player's skull in our server to exchange to cashpoints. 2.If he WAS on the top 20 his skull cant be traded to cashpoints. Thank You!
//Original Script : RevelationRO Custom Script by Zeshan.
//Edited by Rakuzas
prontera,147,157,0 script Kafra points 861,{
mes .NPC$;
mes "Do you want to exchange your " + getitemname(.ID) + " into Cashpoints?";
mes "The conversion rate is " + .NP + " Cashpoint for each " + getitemname(.ID) + ".";
next;
if (select("Yes:No") - 1) close;
mes .NPC$;
mes "How many " + getitemname(.ID) + " do you have?";
next;
input .@amount;
if (.@amount == 0) {
mes .NPC$;
mes "Umm, please enter your amount!";
close;
}
.@amount2 = (.@amount * .ID);
if (.@amount > .@amount2) {
mes .NPC$;
mes "You dont' have enough coins!!!";
close;
}
if (.@amount2 == 0){
mes .NPC$;
mes "You don't have coins!!";
close;
}
mes .NPC$;
mes "Here you go!";
set #CASHPOINTS,#CASHPOINTS += .@amount2;
delitem .ID,.@amount;
dispbottom "You got "+.@amount+" Cashpoints!";
close;
OnInit:
set .NPC$,"[ " +strnpcinfo(1)+ " ]"; // NPC Name
set .ID,671; // Item to take
set .NP,1; // Amount of Cashpoints to give
end;
}
Question
cross10hunter
Hi! I need help. I want to exchange the top 20 PVP players's skull in my server to cashpoints. I found a script, I just want some help on 1. Detecting the top 20 player's skull in our server to exchange to cashpoints. 2.If he WAS on the top 20 his skull cant be traded to cashpoints. Thank You!
//Original Script : RevelationRO Custom Script by Zeshan. //Edited by Rakuzas prontera,147,157,0 script Kafra points 861,{ mes .NPC$; mes "Do you want to exchange your " + getitemname(.ID) + " into Cashpoints?"; mes "The conversion rate is " + .NP + " Cashpoint for each " + getitemname(.ID) + "."; next; if (select("Yes:No") - 1) close; mes .NPC$; mes "How many " + getitemname(.ID) + " do you have?"; next; input .@amount; if (.@amount == 0) { mes .NPC$; mes "Umm, please enter your amount!"; close; } .@amount2 = (.@amount * .ID); if (.@amount > .@amount2) { mes .NPC$; mes "You dont' have enough coins!!!"; close; } if (.@amount2 == 0){ mes .NPC$; mes "You don't have coins!!"; close; } mes .NPC$; mes "Here you go!"; set #CASHPOINTS,#CASHPOINTS += .@amount2; delitem .ID,.@amount; dispbottom "You got "+.@amount+" Cashpoints!"; close; OnInit: set .NPC$,"[ " +strnpcinfo(1)+ " ]"; // NPC Name set .ID,671; // Item to take set .NP,1; // Amount of Cashpoints to give end; }
Link to comment
Share on other sites
1 answer 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.