Jump to content
  • 0

Need Help with Fixing [GM]Xeon]'s WoE Setter v3 SQL


ngek202

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

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 by ngek202
Link to comment
Share on other sites

Recommended Posts


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   7
  • Joined:  12/29/11
  • Last Seen:  

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~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

that would be nice Vali

Thanks in advance I really liked this WoE Setter it has a lot of good Features.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   7
  • Joined:  12/29/11
  • Last Seen:  

Hi,

I modified the code and seems work. Tomorrow I will upload it.

Vali~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

wow great, Thanks a lot Vali.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   7
  • Joined:  12/29/11
  • Last Seen:  

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 by Vali
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

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.

screenrAthena012.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   7
  • Joined:  12/29/11
  • Last Seen:  

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~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

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 by ngek202
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   7
  • Joined:  12/29/11
  • Last Seen:  

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~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   0
  • Joined:  01/04/12
  • Last Seen:  

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? :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

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 by ngek202
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   7
  • Joined:  12/29/11
  • Last Seen:  

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~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

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 by ngek202
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   0
  • Joined:  01/04/12
  • Last Seen:  

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? :D

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!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

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 by ngek202
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   7
  • Joined:  12/29/11
  • Last Seen:  

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 by Vali
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

the script is working fine for me now! however the Vablainn castle emblem still dont show in the flag! hehehe!

any update?

Edited by Arcenciel
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   7
  • Joined:  12/29/11
  • Last Seen:  

Gepard explained me how to make it work. I will change it during the next weekend.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

now please! haha.......... joke but thank you!

btw can u help me w/ this?

http://rathena.org/board/topic/60267-error-unmagnified-items/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

Hi Vali any update?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

Hellow! any update?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   7
  • Joined:  12/29/11
  • Last Seen:  

I had problems with my server the last weekend and was not able to change the script. This weekend I will modify it.

Vali~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   0
  • Joined:  01/04/12
  • Last Seen:  

vali any updates yet? :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

wetwew!

Is this the UPDATED 1?

http://rathena.org/b...337-woe-setter/

its been a week?!

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