ngek202 Posted March 6, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Share Posted March 6, 2012 (edited) Need Help with Fixing [GM]Xeon]'s WoE Setter v3 SQL, to make it work on the recent SVN Changes from r15657 and r15658 seems GetCastleData changed it's parameter. Error return from Map Server: [Error]: Loading NPC file: npc/guild/agit_template.txt script error on npc/guild/agit_template.txt line 54 parse_line: need ';' 49 : { 50 : end; 51 : 52 : // Load (or reload) specific information for a castle. 53 : OnInterIfInitOnce: * 54 : if (strnpcinfo(2) == "aldeg_cas01") { GetCastleData "aldeg_cas01 ",0','strnpcinfo(0)+"::OnRecvCastle"; } 55 : else if (strnpcinfo(2) == "aldeg_cas02") { GetCastleData "aldeg_ cas02",0,strnpcinfo(0)+"::OnRecvCastle"; } 56 : else if (strnpcinfo(2) == "aldeg_cas03") { GetCastleData "aldeg_ cas03",0,strnpcinfo(0)+"::OnRecvCastle"; } 57 : else if (strnpcinfo(2) == "aldeg_cas04") { GetCastleData "aldeg_ cas04",0,strnpcinfo(0)+"::OnRecvCastle"; } 58 : else if (strnpcinfo(2) == "aldeg_cas05") { GetCastleData "aldeg_ cas05",0,strnpcinfo(0)+"::OnRecvCastle"; } 59 : else if (strnpcinfo(2) == "gefg_cas01") { GetCastleData "gefg_ca s01",0,strnpcinfo(0)+"::OnRecvCastle"; } [Error]: Loading NPC file: npc/custom/woe/plugins/woes3_pl-changeownership.txt script error on npc/custom/woe/plugins/woes3_pl-changeownership.txt line 45 parse_line: need ';' 40 : if (.@tcode>=.@tcurrent) { 41 : set .@temp$, ""; set .@ccode, getarg(1); set .@c current, 16; 42 : for (set .@i, 5; .@i>0; set .@i,.@i-1) { 43 : if (.@ccode>=.@ccurrent) { 44 : setcastledata(getd("$woe_cas"+.@ i_+"_3$["+.@i+"]"),1,.@ownerid); set .@temp$, .@temp$+getd("$woe_cas"+.@i_+"_1$[ "+.@i+"]")+((.@ccode>.@ccurrent)?", ":" "); * 45 : if (.@i_<5) { disablenpc "Kafra Staff#"+getd("$woe_cas"+.@i_+"_3$["+.@i+"]"); GetCastleData getd("$woe_cas"+.@i_ +"_3$["+.@i+"]"),0','"::OnRecvCastle"; } //Some OnRecvCastle label in a guild sc ript is spitting out 'Map "" not found' debugs =( 46 : if (.@i_>5) { disablenpc "Kafra Employee#"+((.@i==6)?"sch":"aru")+"0"+.@i; GetCastleData getd("$woe_cas"+.@i_+"_ 3$["+.@i+"]"),0,"::OnRecvCastle"+((.@i==6)?"sc":"Ar")+"0"+.@i; } 47 : for( set .@n, 4; .@n <= 9; set . @n, .@n+1 ) { 48 : SetCastleData getd("$woe _cas"+.@i_+"_3$["+.@i+"]"), .@n, 0; 49 : } 50 : set .@ccode, .@ccode-.@ccurrent; anyone can check and correct the issues. WoE_Setter_3.4.3.rar Edited March 5, 2012 by ngek202 Quote Link to comment Share on other sites More sharing options...
Vali Posted March 6, 2012 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 128 Reputation: 7 Joined: 12/29/11 Last Seen: July 2, 2013 Share Posted March 6, 2012 I'm interested in this too. I will try during next days to adapt it, but I'm not sure if I will success. Vali~ Quote Link to comment Share on other sites More sharing options...
ngek202 Posted March 6, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Author Share Posted March 6, 2012 that would be nice Vali Thanks in advance I really liked this WoE Setter it has a lot of good Features. Quote Link to comment Share on other sites More sharing options...
Vali Posted March 6, 2012 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 128 Reputation: 7 Joined: 12/29/11 Last Seen: July 2, 2013 Share Posted March 6, 2012 Hi, I modified the code and seems work. Tomorrow I will upload it. Vali~ Quote Link to comment Share on other sites More sharing options...
ngek202 Posted March 7, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Author Share Posted March 7, 2012 wow great, Thanks a lot Vali. Quote Link to comment Share on other sites More sharing options...
Vali Posted March 7, 2012 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 128 Reputation: 7 Joined: 12/29/11 Last Seen: July 2, 2013 Share Posted March 7, 2012 (edited) Here is. It seems work well. I tested it and no problems. Adapted to work with rAthena r15658 and greater. Vali~ File deleted until new advise, temporal woe setter more down! \/\/\/\/ Edited March 9, 2012 by Vali 1 Quote Link to comment Share on other sites More sharing options...
ngek202 Posted March 7, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Author Share Posted March 7, 2012 Thanks Vali good thing someone is also using this old WoE Setter appreciate what you did Sir Vali I think there's still a problem with the Flags Emblem when I Restart the Server the Flags Emblem disappears., but when you view on Castle Ownership it is Still owned by a Guild here's a Screenshot to make it clear. Quote Link to comment Share on other sites More sharing options...
Vali Posted March 7, 2012 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 128 Reputation: 7 Joined: 12/29/11 Last Seen: July 2, 2013 Share Posted March 7, 2012 I did not touch that flags. Try going out the range and come in again. If this do not work, delete the content in your emblem folder and launch the game again. Vali~ Quote Link to comment Share on other sites More sharing options...
ngek202 Posted March 7, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Author Share Posted March 7, 2012 (edited) tried it but still nothing appears., I still have a backup of r15656 with a WoE Setter on it and it doesn't have any problem with the Flags not until upgraded to r15657 to 58.. I think it's not on the flags but with the agit_template.txt still probably still on this line: // Load (or reload) specific information for a castle. OnInterIfInitOnce: if (strnpcinfo(2) == "aldeg_cas01") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "aldeg_cas02") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "aldeg_cas03") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "aldeg_cas04") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "aldeg_cas05") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "gefg_cas01") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "gefg_cas02") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "gefg_cas03") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "gefg_cas04") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "gefg_cas05") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "payg_cas01") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "payg_cas02") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "payg_cas03") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "payg_cas04") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "payg_cas05") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "prtg_cas01") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "prtg_cas02") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "prtg_cas03") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "prtg_cas04") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "prtg_cas05") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } // Add custom Guild Castles here. else { end; } end; Edited March 7, 2012 by ngek202 Quote Link to comment Share on other sites More sharing options...
Vali Posted March 7, 2012 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 128 Reputation: 7 Joined: 12/29/11 Last Seen: July 2, 2013 Share Posted March 7, 2012 I checked and its working well. That fine do not control the emblem in the flags. The one that control the emblems are aldeg_cas01.txt, aldeg_cas02.txt, etc. Vali~ Quote Link to comment Share on other sites More sharing options...
ngek202 Posted March 8, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Author Share Posted March 8, 2012 I see but still, doesn't show I restarted the Server tried @reloadscript at first, the Flags Emblem shows when you get an Agit during WoE, but after that when the Server Restarts the Flags don't show the Emblems anymore but when you check castle ownership it is still owned by a Guild. Quote Link to comment Share on other sites More sharing options...
frotek Posted March 8, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 60 Reputation: 0 Joined: 01/04/12 Last Seen: June 8, 2020 Share Posted March 8, 2012 it works without any error in server side but the problems are: 1. flags are unclickable. 2. emblems dont show up in flags. can someone repair this? Quote Link to comment Share on other sites More sharing options...
ngek202 Posted March 8, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Author Share Posted March 8, 2012 (edited) maybe I'll just skip that update dunno if it's that important though.. yeah like I said the Flag Emblem only shows when you get an Agit during WoE but after that, when the Server Restart it's gone but still the Agit is occupied by the Guild, just that Emblem doesn't show on the Flag.. I'm not sure if Toasty's version would work with the recent changes Edited March 8, 2012 by ngek202 Quote Link to comment Share on other sites More sharing options...
Vali Posted March 8, 2012 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 128 Reputation: 7 Joined: 12/29/11 Last Seen: July 2, 2013 Share Posted March 8, 2012 it works without any error in server side but the problems are: 1. flags are unclickable. 2. emblems dont show up in flags. can someone repair this? I will try to fix that problems, but as I said I do not know if I will success. For me is important because I use this script too. Vali~ Quote Link to comment Share on other sites More sharing options...
ngek202 Posted March 9, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Author Share Posted March 9, 2012 (edited) yeah it's a very nice WoE setter lots of good features. I hope Sir Gepard would spare some time on this Script and help us., since he's the one who applied updates for 15657 and 15658.. Edited March 9, 2012 by ngek202 Quote Link to comment Share on other sites More sharing options...
frotek Posted March 9, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 60 Reputation: 0 Joined: 01/04/12 Last Seen: June 8, 2020 Share Posted March 9, 2012 it works without any error in server side but the problems are: 1. flags are unclickable. 2. emblems dont show up in flags. can someone repair this? I will try to fix that problems, but as I said I do not know if I will success. For me is important because I use this script too. Vali~ God Bless you Vali! Quote Link to comment Share on other sites More sharing options...
ngek202 Posted March 9, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Author Share Posted March 9, 2012 (edited) can you test this agit_template.txt I've tried it seems ok but I'm not sure with other features I tried to remove the lines : // Load (or reload) specific information for a castle. OnInterIfInitOnce: if (strnpcinfo(2) == "aldeg_cas01") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "aldeg_cas02") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "aldeg_cas03") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "aldeg_cas04") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "aldeg_cas05") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "gefg_cas01") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "gefg_cas02") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "gefg_cas03") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "gefg_cas04") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "gefg_cas05") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "payg_cas01") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "payg_cas02") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "payg_cas03") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "payg_cas04") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "payg_cas05") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "prtg_cas01") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "prtg_cas02") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "prtg_cas03") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "prtg_cas04") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } else if (strnpcinfo(2) == "prtg_cas05") { donpcevent strnpcinfo(0)+"::OnRecvCastle"; } // Add custom Guild Castles here. else { end; } end; because I noticed on line 294 to line 314 there is a similar code almost exact: // Otherwise place the guild emblem on flags. if (strnpcinfo(2) == "aldeg_cas01") { donpcevent "::OnRecvCastleA01"; } else if (strnpcinfo(2) == "aldeg_cas02") { donpcevent "::OnRecvCastleA02"; } else if (strnpcinfo(2) == "aldeg_cas03") { donpcevent "::OnRecvCastleA03"; } else if (strnpcinfo(2) == "aldeg_cas04") { donpcevent "::OnRecvCastleA04"; } else if (strnpcinfo(2) == "aldeg_cas05") { donpcevent "::OnRecvCastleA05"; } else if (strnpcinfo(2) == "gefg_cas01") { donpcevent "::OnRecvCastleG01"; } else if (strnpcinfo(2) == "gefg_cas02") { donpcevent "::OnRecvCastleG02"; } else if (strnpcinfo(2) == "gefg_cas03") { donpcevent "::OnRecvCastleG03"; } else if (strnpcinfo(2) == "gefg_cas04") { donpcevent "::OnRecvCastleG04"; } else if (strnpcinfo(2) == "gefg_cas05") { donpcevent "::OnRecvCastleG05"; } else if (strnpcinfo(2) == "payg_cas01") { donpcevent "::OnRecvCastlePy01"; } else if (strnpcinfo(2) == "payg_cas02") { donpcevent "::OnRecvCastlePy02"; } else if (strnpcinfo(2) == "payg_cas03") { donpcevent "::OnRecvCastlePy03"; } else if (strnpcinfo(2) == "payg_cas04") { donpcevent "::OnRecvCastlePy04"; } else if (strnpcinfo(2) == "payg_cas05") { donpcevent "::OnRecvCastlePy05"; } else if (strnpcinfo(2) == "prtg_cas01") { donpcevent "::OnRecvCastlePt01"; } else if (strnpcinfo(2) == "prtg_cas02") { donpcevent "::OnRecvCastlePt02"; } else if (strnpcinfo(2) == "prtg_cas03") { donpcevent "::OnRecvCastlePt03"; } else if (strnpcinfo(2) == "prtg_cas04") { donpcevent "::OnRecvCastlePt04"; } else if (strnpcinfo(2) == "prtg_cas05") { donpcevent "::OnRecvCastlePt05"; } // Add custom Guild Castles here. else { end; } agit_template.txt Edited March 9, 2012 by ngek202 Quote Link to comment Share on other sites More sharing options...
Vali Posted March 9, 2012 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 128 Reputation: 7 Joined: 12/29/11 Last Seen: July 2, 2013 Share Posted March 9, 2012 (edited) Ok. I found the problem: In http://sourceforge.n...changeset/15657 the source changed to request the information of the guilds before the scripts are loaded. This will cause that if you use GetCastleData(strnpcinfo(2),1); with OnInterIfInitOnce: or OnInterIfInit: will not get that information correctly because the map server do not has it. The TEMPORAL patch until this is fixed is do a sleep after OnInterIfInitOnce or OnInterIfInit to wait until that info is loaded. I already reported it: http://rathena.org/b...e-data-loading/ With this patch the flags and the castles will be ready 30 second after the server is launched. I will upload the correct code when this bug is fixed. Vali~ WoE_Setter_3.4.4.rar Edited March 9, 2012 by Vali Quote Link to comment Share on other sites More sharing options...
karazu Posted March 13, 2012 Group: Members Topic Count: 57 Topics Per Day: 0.01 Content Count: 374 Reputation: 5 Joined: 03/09/12 Last Seen: June 19, 2018 Share Posted March 13, 2012 (edited) the script is working fine for me now! however the Vablainn castle emblem still dont show in the flag! hehehe! any update? Edited March 14, 2012 by Arcenciel Quote Link to comment Share on other sites More sharing options...
Vali Posted March 13, 2012 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 128 Reputation: 7 Joined: 12/29/11 Last Seen: July 2, 2013 Share Posted March 13, 2012 Gepard explained me how to make it work. I will change it during the next weekend. Quote Link to comment Share on other sites More sharing options...
karazu Posted March 15, 2012 Group: Members Topic Count: 57 Topics Per Day: 0.01 Content Count: 374 Reputation: 5 Joined: 03/09/12 Last Seen: June 19, 2018 Share Posted March 15, 2012 now please! haha.......... joke but thank you! btw can u help me w/ this? http://rathena.org/board/topic/60267-error-unmagnified-items/ Quote Link to comment Share on other sites More sharing options...
ngek202 Posted March 18, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Author Share Posted March 18, 2012 Hi Vali any update? Quote Link to comment Share on other sites More sharing options...
karazu Posted March 21, 2012 Group: Members Topic Count: 57 Topics Per Day: 0.01 Content Count: 374 Reputation: 5 Joined: 03/09/12 Last Seen: June 19, 2018 Share Posted March 21, 2012 Hellow! any update? Quote Link to comment Share on other sites More sharing options...
Vali Posted March 21, 2012 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 128 Reputation: 7 Joined: 12/29/11 Last Seen: July 2, 2013 Share Posted March 21, 2012 I had problems with my server the last weekend and was not able to change the script. This weekend I will modify it. Vali~ Quote Link to comment Share on other sites More sharing options...
frotek Posted March 27, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 60 Reputation: 0 Joined: 01/04/12 Last Seen: June 8, 2020 Share Posted March 27, 2012 vali any updates yet? Quote Link to comment Share on other sites More sharing options...
karazu Posted April 25, 2012 Group: Members Topic Count: 57 Topics Per Day: 0.01 Content Count: 374 Reputation: 5 Joined: 03/09/12 Last Seen: June 19, 2018 Share Posted April 25, 2012 wetwew! Is this the UPDATED 1? http://rathena.org/b...337-woe-setter/ its been a week?! Quote Link to comment Share on other sites More sharing options...
Question
ngek202
Need Help with Fixing [GM]Xeon]'s WoE Setter v3 SQL, to make it work on the recent SVN Changes from r15657 and r15658
seems GetCastleData changed it's parameter.
Error return from Map Server:
anyone can check and correct the issues.
WoE_Setter_3.4.3.rar
Edited by ngek202Link to comment
Share on other sites
26 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.