Jump to content
  • 0

Party Recall


RAWRs

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   1
  • Joined:  11/17/11
  • Last Seen:  

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.

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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;
}

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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;
}
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

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  ?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

An item with this option already exist

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   1
  • Joined:  11/17/11
  • Last Seen:  

Thank you,never notice about this.

Edited by RAWRs
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   1
  • Joined:  11/17/11
  • Last Seen:  

Then i should change to this?

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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   1
  • Joined:  11/17/11
  • Last Seen:  

Thank you again. :)

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