Jump to content
  • 0

check party if they all have the specific item


caspa

Question


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

This is emistry's script and it works perfectly fine.....

however if possible i would like to change the script on the part where it displays user who dont have the tcg card 1 by 1...  to display all the user who does not have the item at the same time....


like for ex..


party(boom)
members:

"pppp1" has 1 TCG
"pppp2"  has 1 TCG
"pppp3" no TCG
"pppp4" no TCG

script would say 

-pppp3 has no tcg
 
then after if pppp3 acquire 1 tcg

script would say

-pppp4 has no tcg......


i want to script to direcly list of all the people who does not have a TCG card

-pppp3 has no tcg
-pppp4 has no tcg

something like this.....
 
.@itemid = 512;
.amound = 10;
.@aid = getcharid(3);

getpartymember getcharid(1),0;
getpartymember getcharid(1),2;

while( .@i < $@partymembercount ){
    if( attachrid( $@partymemberaid[ .@i ] ) )
        if( countitem( .@itemid ) < .@amount ){
            attachrid( .@rid );
            mes Your member "+$@partymembername$[.@i]+" didnt have "+.@amount+" "+getitemname( .@itemid )+".";
            close;
        }
    .@i++;
}
attachrid( .@rid );
mes "All got items.";
close;
Edited by caspa
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

while attaching, record his Account ID to .@ type variable and after back to executor then you will have variable to let you use.

 

EDIT:

 

or record a variable when someone don't have item and move close to out of loop,

 

so loop will keep doing and add one if to do close if variable is true

Edited by goddameit
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...