bachir 0 Posted November 6, 2015 Hi guys i want a script block kagerou & Oboro Class from Woe maps please Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted November 6, 2015 (edited) which map ? btw if it is prontera castle change prt_gld,240,124,0 warp prtg-2_prtg-2 1,1,prtg_cas02,43,229into function script block_kagerou_oboro { if ( Class == Job_Kagerou || Class == Job_Oboro ) { mes "you can't join woe"; close; } warp getarg(0), getarg(1), getarg(2); end;}prt_gld,240,124,0 script prtg-2_prtg-2 WARPNPC,1,1,{ callfunc "block_kagerou_oboro", "prtg_cas02",43,229; }so if you used 30 castles, you have to add this callfunc 30+ timesas there are some geffen castles has 2 or more entrance Edited November 6, 2015 by AnnieRuru Quote Share this post Link to post Share on other sites
0 Garr 117 Posted November 7, 2015 (edited) As large as of a strain it is on server, I'd advice to use loadmapevent better here, just to avoid recall thing. If you don't care for recall Annie's suggestion is way better. - script deter_kagero_oboro -1,{end;OnInit: setarray .@WoEmaps[0],"prtg_cas01","aldeg_cas01"; .comp = ";" + implode(.@WoEmaps,";") + ";";end;OnPCLoadMapEvent: if( !compare(.comp,";" + strcharinfo(PC_MAP) + ";") ) end; if( Class == Job_Kagerou || Class == Job_Oboro ) { dispbottom "You can't join woe on Kagerou/Oboro."; warp "SavePoint",0,0; close; } end;} Edited November 8, 2015 by Garr 1 AnnieRuru reacted to this Quote Share this post Link to post Share on other sites
0 Emistry 145 Posted November 7, 2015 OnPCLoadMapEvent is better if you want to block it from woe since they can recall the guild member using skill which bypass the woe portal. @@Garr your script will caused error when loaded since no char is attached to call the strcharinfo() script command. beside it need loadevent mapflag to make it work. 1 Garr reacted to this Quote Share this post Link to post Share on other sites
0 Garr 117 Posted November 8, 2015 Right, forgot to end after OnInit >.< And yeah, loadevent mapflag. I won't add it inside script, since I don't really know what maps OP wants, but thanks for mentioning Quote Share this post Link to post Share on other sites
Hi guys i want a script block kagerou & Oboro Class from Woe maps please
Share this post
Link to post
Share on other sites