I have this working Pvp script. But its char bound atm. How can i make it a whole account bound. Like all characters that kill in the pvp room share the PK points?
Thanks in advance!
Quote
- shop custom_seller2 1,4399:4000
firstcity,208,74,5 script PK Points Dealer 856,{
mes "[PK Points Dealer]";
mes "I will sell you items for PK points.";
mes "Each time you kill a player in the ^ff0000PVP room^000000 you'll get ^0000ff1 PK point^000000 to spend here!";
next;
mes "[PK Points Dealer]";
mes "You currently have [^0000ff"+pk_points+"^000000] PK points to spend.";
callshop "custom_seller2",1;
npcshopattach "custom_seller2";
end;
OnBuyItem:
for(set .@i,0; .@i<getarraysize(.customs); set .@i,.@i+1) {
for(set .@d,0; .@d<getarraysize(@bought_nameid); set .@d,.@d+1) {
if(@bought_nameid[.@d]==.customs[.@i]) {
if(checkweight(@bought_nameid[.@d],@bought_quantity[.@d])) {
if(pk_points >= .Price[.@i]*@bought_quantity[.@d]) {
set pk_points, pk_points - .Price[.@i]*@bought_quantity[.@d];
getitem @bought_nameid[.@d],@bought_quantity[.@d];
} else dispbottom "You don't have enough PK points to purchase that item.";
} else dispbottom "Purchasing these items will put you over the weight limit!";
}
}
}
deletearray @bought_quantity, getarraysize(@bought_quantity);
deletearray @bought_nameid, getarraysize(@bought_nameid);
close;
Question
aferny
Hi guys.
I have this working Pvp script. But its char bound atm. How can i make it a whole account bound. Like all characters that kill in the pvp room share the PK points?
Thanks in advance!
Link to comment
Share on other sites
3 answers 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.