Cid Kagenou Posted November 28, 2015 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 107 Reputation: 5 Joined: 07/01/14 Last Seen: March 28 Share Posted November 28, 2015 (edited) Hello rAthena , ill get to the point of this thread , i wana merg this party warping script with the official warper in npc/custom/warper.txt to be under Last Warp Option, i've tried many times but it gives me many errors this is the two scripts i wana merg : prontera,150,180,4 script Test 100,{ deletearray .@aid[0],128; deletearray @aid[0],128; set @j,0; set @select$,""; getpartymember getcharid(1),2; set .@num,$@partymembercount; copyarray .@aid[0],$@partymemberaid[0],.@num; set .@num,getarraysize(.@aid); for(set .@i,0;.@i<.@num;set .@i,.@i+1) if(isloggedin(.@aid[.@i])) { set @aid[@j],.@aid[.@i]; set @j,@j+1; set @select$,@select$+":"+rid2name(.@aid[.@i]); } set @menu,select(@select$)-2; if(isloggedin(@aid[@menu])) { getmapxy(@m$,@x,@y,0,rid2name(@aid[@menu])); if( getmapflag(@m$,mf_pvp) || @m$ == "mapname" || @m$ == "mapname" ) { mes "You cant warp to his map now."; } else { warp @m$,@x,@y; } close; } } and the official one : https://github.com/rathena/rathena/blob/master/npc/custom/warper.txt Edited December 4, 2015 by Skorm Edited for code brackets. Quote Link to comment Share on other sites More sharing options...
0 Skorm Posted December 4, 2015 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted December 4, 2015 Hello rAthena , ill get to the point of this thread , i wana merg this party warping script with the official warper in npc/custom/warper.txt to be under Last Warp Option, i've tried many times but it gives me many errors Assuming the above script works well. menu "Last Warp ^777777["+lastwarp$+"]^000000",-, getcharid(1)?"Party Warp ^CCCCCC["+getpartyname(getcharid(1))+"]^000000":"",Party, " ~ Towns",Towns, " ~ Fields",Fields, " ~ Dungeons",Dungeons, " ~ Guild Castles",Castles, " ~ Guild Dungeons",Guild_Dungeons, " ~ Instances",Instances, " ~ Special Areas",Special; if (lastwarp$ == "") message strcharinfo(0),"You haven't warped anywhere yet."; else warp lastwarp$,lastwarpx,lastwarpy; end; Party: deletearray .@aid[0],128; deletearray @aid[0],128; set @j,0; set @select$,""; getpartymember getcharid(1),2; set .@num,$@partymembercount; copyarray .@aid[0],$@partymemberaid[0],.@num; set .@num,getarraysize(.@aid); for(set .@i,0;.@i<.@num;set .@i,.@i+1) if(isloggedin(.@aid[.@i])) { set @aid[@j],.@aid[.@i]; set @j,@j+1; set @select$,@select$+":"+rid2name(.@aid[.@i]); } set @menu,select(@select$)-2; if(isloggedin(@aid[@menu])) { getmapxy(@m$,@x,@y,0,rid2name(@aid[@menu])); if( getmapflag(@m$,mf_pvp) || @m$ == "mapname" || @m$ == "mapname" ) { mes "You cant warp to his map now."; close; } else { warp @m$,@x,@y; } } end; P.S: Please use code brackets next time, tyvm! 1 Quote Link to comment Share on other sites More sharing options...
0 Cid Kagenou Posted December 4, 2015 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 107 Reputation: 5 Joined: 07/01/14 Last Seen: March 28 Author Share Posted December 4, 2015 Tyvm <33333333 Quote Link to comment Share on other sites More sharing options...
Question
Cid Kagenou
Hello rAthena ,
ill get to the point of this thread ,
i wana merg this party warping script with the official warper in npc/custom/warper.txt
to be under Last Warp Option,
i've tried many times but it gives me many errors
this is the two scripts i wana merg :
Edited for code brackets.
Link to comment
Share on other sites
2 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.