Jump to content
  • 0
Sign in to follow this  
deviruzy

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

Question

 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.

 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

lol actually I'm just playing with your topic title :P

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

Share this post


Link to post
Share on other sites
  • 0

Oh thank god :). 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  :D.

Edited by deviruzy

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.