I attempted to optimize the WoE script by duplicating
the guild flags for OmniAthena but the map server
crashes after I put the script in:
Below is the script I entered into aldeg_cas01.txt and I
registered the file in map_athena:
- script Neuschwanstein::aldegCasFlag01
722,{
set @GIDa1,GetCastleData
("aldeg_cas01.gat",1);
if (@GIDa1 != 0) goto LStartg;
mes "[ Edict of the divine kingdom of
Rune-Midgard ]";
mes " ";
mes "1. As Law of Al De Baran";
mes " this guild base isn't taken
by";
mes " any guild yet.";
mes " ";
mes "2. In order to take this guild
base,";
mes " you must defeat all the
guardians";
mes " that's protecting guild base
and";
mes " eliminate the emperium to";
mes " take over the guild base.";
close;
LStartg:
mes "[ Edict of the divine kingdom of
Rune-Midgard ]";
mes " ";
mes "1. As law of Al De Baran this
base is now";
mes " ^ff0000" + GetGuildName
(@GIDa1) + "^000000 guild's guild";
mes " base.";
mes " ";
mes "2. ^ff0000" + GetGuildName
(@GIDa1) + "^000000 Guild master is";
mes " ^ff0000" + GetGuildMaster
(@GIDa1) + "^000000, and if any of you";
mes " have a beef, raise your
sword to";
mes " honor yourself.";
close;
OnRecvCastleA01:
FlagEmblem getcastledata
("aldeg_cas01.gat",1);
end;
}
alde_gld.gat,61,87,6 duplicate(aldegCasFlag01)
Neuschwanstein#a1-1 722
alde_gld.gat,61,79,6 duplicate(aldegCasFlag01)
Neuschwanstein#a1-2 722
alde_gld.gat,45,87,8 duplicate(aldegCasFlag01)
Neuschwanstein#a1-3 722
Upon running, the server suddenly crashes.
I have attached the mapserver log file and the map-
server.exe.stackdump file.
Pls check it out.
Logged In: YES
user_id=1029419
this bug is confirmed.
the thing making it crashing is the "-"
- script Neuschwanstein::aldegCasFlag01 722,{
replace it like :
alde_gld.gat,61,87,6 script
Neuschwanstein::aldegCasFlag01 722,{
and it'll work.
the bug is still there (1014), i have no idea for resolving it...
Logged In: NO
DKangel:
Its not a problem ??
Duplicate works if you know what you are doing!