RAWRs Posted January 18, 2013 Posted January 18, 2013 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. Quote
Capuche Posted January 19, 2013 Posted January 19, 2013 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 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; } Quote
0 LearningRO Posted April 30, 2018 Posted April 30, 2018 On 1/19/2013 at 7:08 AM, Capuche said: Sorry I misread your post 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? Quote
0 Capuche Posted April 30, 2018 Posted April 30, 2018 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; } Quote
0 LearningRO Posted April 30, 2018 Posted April 30, 2018 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 Quote
Capuche Posted January 18, 2013 Posted January 18, 2013 An item with this option already exist 12212,Giant_Fly_Wing,Giant Fly Wing,2,2,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_CashPartyCall"; },{},{} Quote
RAWRs Posted January 18, 2013 Author Posted January 18, 2013 (edited) Thank you,never notice about this. Edited January 18, 2013 by RAWRs Quote
RAWRs Posted January 19, 2013 Author Posted January 19, 2013 Then i should change to this? 12212,Giant_Fly_Wing,Giant Fly Wing,2,2,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "F_PartyReCall"; },{},{} Quote
Capuche Posted January 19, 2013 Posted January 19, 2013 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 Quote
Question
RAWRs
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.