Jump to content
  • 0

Party Recall


Question

Posted

There is any party recall script? I want us it on item.If we click the item,it will warp all party members near the leader,and only can be use by leader.

9 answers to this question

Recommended Posts

Posted

There is any party recall script? I want us it on item.If we click the item,it will warp all party members near the leader,and only can be use by leader.

Sorry I misread your post /shy

12212,Giant_Fly_Wing,Giant Fly Wing,2,2,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_CashPartyCall"; },{},{}

is like a fly wing but warp all member in party and you ask a script that do something like partyrecall...

Here for you

function    script    F_PartyReCall    {
   if(getpartyleader(getcharid(1),2) == getcharid(0)) {
       set .@leader, getcharid(3);
       getmapxy .@mapl$, .@xl, .@yl, 0;
       getpartymember getcharid(1),2;
       set .@partymembercount, $@partymembercount;
       copyarray .@partymemberaid[0], $@partymemberaid[0], .@partymembercount;
       for(set .@i, 0; .@i < .@partymembercount; set .@i, .@i + 1) {
           if(attachrid(.@partymemberaid[.@i])) {
               if(HP > 0 && getcharid(3) != .@leader) {
                   warp .@mapl$, .@xl, .@yl;
               }
           }
       }
   }
   return;
}

  • 0
Posted
On 1/19/2013 at 7:08 AM, Capuche said:

Sorry I misread your post /shy

 


12212,Giant_Fly_Wing,Giant Fly Wing,2,2,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_CashPartyCall"; },{},{}
 

 

is like a fly wing but warp all member in party and you ask a script that do something like partyrecall...

Here for you

 


function    script    F_PartyReCall    {
   if(getpartyleader(getcharid(1),2) == getcharid(0)) {
       set .@leader, getcharid(3);
       getmapxy .@mapl$, .@xl, .@yl, 0;
       getpartymember getcharid(1),2;
       set .@partymembercount, $@partymembercount;
       copyarray .@partymemberaid[0], $@partymemberaid[0], .@partymembercount;
       for(set .@i, 0; .@i < .@partymembercount; set .@i, .@i + 1) {
           if(attachrid(.@partymemberaid[.@i])) {
               if(HP > 0 && getcharid(3) != .@leader) {
                   warp .@mapl$, .@xl, .@yl;
               }
           }
       }
   }
   return;
}
 

 

@Capuche hi i found  bug 
When one char in the party login with another char. and the char is not included in the party, remain teleport, but char is not in 1 party only 1 account

how to fix it?

  • 0
Posted
function	script	F_PartyReCall	{
	if (getcharid(1) > 0 && getpartyleader(getcharid(1),2) == getcharid(0))
		warpparty "Leader",0,0,getcharid(1),strcharinfo(3),2,2;
	return;
}
  • 0
Posted
1 hour ago, Capuche said:

function	script	F_PartyReCall	{
	if (getcharid(1) > 0 && getpartyleader(getcharid(1),2) == getcharid(0))
		warpparty "Leader",0,0,getcharid(1),strcharinfo(3),2,2;
	return;
}

i try this but not working
and i try to solve by myself its working but  i dont know is the right way or not haha

 

function	script	F_PartyReCall	{
	if(getpartyleader(getcharid(1),2) == getcharid(0)) {
       set .@leader, getcharid(3);
       getmapxy .@mapl$, .@xl, .@yl, 0;
       getpartymember getcharid(1),2;
       set .@partymembercount, $@partymembercount;
       copyarray .@partymemberaid[0], $@partymemberaid[0], .@partymembercount;
       for(set .@i, 0; .@i < .@partymembercount; set .@i, .@i + 1) {
           if(attachrid(.@partymemberaid[.@i])) {
               if(HP > 0 && getcharid(3) != .@leader) {
                   warpparty "izlude_a", .@xl, .@yl,getcharid(1), strcharinfo(3), 3, 3;
               }
           }
       }
   }
   return;
}	

thx u for your help  ?

Posted

Then i should change to this?

12212,Giant_Fly_Wing,Giant Fly Wing,2,2,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_PartyReCall"; },{},{}

Yes ! Also you can put callfunc "F_PartyReCall"; on another item script

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...