Very simple Woe script: One castle, No guardian, No kafra, No mobs.

deviruzy

New member
Messages
67
Points
0
 Good Day.

 Not like official woe script I wanted a very simple one. One castle, No guardian, No kafra, No mobs. No reward. I just need an empelium gvg. While searching, I found something that could work. This is an Agit_Event scipt I found. It looked simple but since I didn't know what to put I couldn't go on from here.



- script Agit_Event -1,{
 end;


OnClock2100: //start time for Tues(2), Thurs(4), sat(6)
OnClock2200: //end time for Tues(2), Thurs(4), sat(6)

OnAgitInit:
// starting time checks
if((gettime(4)==2) && (gettime(3)>=21 && gettime(3)<22) ||
(gettime(4)==4) && (gettime(3)>=21 && gettime(3)<22) ||
(gettime(4)==6) && (gettime(3)>=21 && gettime(3)<22)) {

if (!agitcheck()) {
gvgon strnpcinfo(2);
announce "woe begin.",8;

agitstart;
callsub S_DisplayOwners;
}
end;
}

// end time checks
if ((gettime(4)==2) && (gettime(3)==22) ||
(gettime(4)==4) && (gettime(3)==22) ||
(gettime(4)==6) && (gettime(3)==22)) {
if (agitcheck()) {
gvgoff strnpcinfo(2);
announce "woe end.",8;
agitend;
callsub S_DisplayOwners;
}
end;
}
end;

S_DisplayOwners:
setarray .@maps$[0],"prtg_cas03";
for( set .@i, 0; .@i <= 0; set .@i, .@i+1 ) {
if (getcastledata(.@maps$[.@i],1)) {
announce "[" + getcastlename(.@maps$[.@i]) + "] current owner. [" + getguildname(getcastledata(.@maps$[.@i],1)) + "]",bc_all;
}
else {

announce "[" + getcastlename(.@maps$[.@i]) + "] guild castle.",bc_all;
}
}
end;
}


 Would you be kind and teach me how to

1. Spawn an empelium when woe begins?  prtg_cas03,16,220

2. Respawn an empelium when empelium breaks? prtg_cas03,16,220

3. When the owner of the empelium is changed warp everyone else except members of the new guild back to the savepoint?

[EX: Guild A (Owner) -> Guild B (becomes new owner by breaking guild A's empelium) -> Guild A is teleported back to savepoint. -> Guild B stays]

4. When woe is over, naturally set empelium to how it is supposed to be after woe. Is it disabling it or just let it stand there?

 This is part of my flag NPC


 
This is the only castle I want to use for woe, prtg_cas03, and I kind of sensed that everything related to this castle has to be set to .@GID or else it won't work with one another. If so would you also teach me where or how I should modify  Agit_Event to .@GID   ?

Thank you.

 
Oh, Thanks AnnieRuru. I'll work with it for now. Pardon me if I'm wrong but I hope you're not upset or mad. I just tried to put everything in the subject. I didn't mean to come off as a big attitude.

 
lol actually I'm just playing with your topic title
default_tongue.png


of course you couldn't find this topic because its hidden inside eathena forum

if you still can't figure it out, just post your edited script here

 
Oh thank god
default_smile.png
. I hate conflict, haha. Thanks to you and your woe script in eathena forum I was able to understand a little more about woe scripts. I disabled Kafra, Guardian, Dungeon, Upgrading Defense part from Hercules official woe script made by Akaru and holyAngel, which is exactly what I wanted. Thank you so much AnnieRuru 
default_biggrin.png
.

 
Last edited by a moderator:
Back
Top