Jump to content
  • 0

H> Skull to Cashpoints. PVP.


cross10hunter

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   0
  • Joined:  10/13/17
  • Last Seen:  

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

  • 0

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

Well for that, you'll have to tell us how you do know which player is in the top. Is there a table on database? Some server variables?

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