Jump to content
  • 0

edit random woe (using BrianL script)


shadow.sk

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  11/28/11
  • Last Seen:  

Hello

I am using this script:

http://localhost-ro....ller_random.txt

but I want to change the castle ownership.

Example:

Say prtg_cas01 is open and GuildA takes it. Then next woe gefg_cas04 is open, the castle ownership will move to gefg_cas04 and prtg_cas01 will be unoccupied.

any help will be appreciated, thanks!

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Sorry about that. I fixed the error, tested, and the script works now.

agit_controller_random.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Will you only have 1 castle open at a time? or more than one?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  11/28/11
  • Last Seen:  

2 castle open at a time, thanks for any help

Edited by shadow.sk
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Done, I added a setting to the script.

Here you go: agit_controller_random.txt

To open 2 castles and enable "transfer ownership", set the config like this:

 set .@num_castles_open, 2; // the number of castles open each WoE
set .@transfer_ownership, 1; // transfer ownership to the next (random) castle?

I think it might be buggy with castle_id 0 (aldeg_cas01), since a variable set to 0 is the same as an unset variable..

I'll update this post if I edit anything. Edit: fixed, let me know if you have any issues!

Edited by Brian
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  11/28/11
  • Last Seen:  

thank you very much.

I haven't tested it yet, but I will let you know if it is working

Edited by shadow.sk
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  11/28/11
  • Last Seen:  

when the woe is going to start, map server says:

[Error]: run_script: infinity loop !

[Debug]: Source (NPC): Agit_Event (invisible/not on a map)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  11/28/11
  • Last Seen:  

transfer ownership is not working.

On a fresh rathena:

1) I made 2 character and 2 guild.

2) The first woe in the new server was in Holy shadow Casttle and Mersetzdeitz Castle.

3) conquered each castle with each character

4) I waited 2 hours until the war of emperium has ended.

5) @mapexit

6) I changed the date in my pc

7) server UP

8) Woe has begun in Sacred Altar and Swanhild

9) transfer ownership was not move to Sacred Altar and Swanhild

screeneathena004m.jpg

screeneathena005f.jpg

10) I have used @refresh to refresh my view

my script conf:

OnAgitInit:

set .@num_castles_open, 2; // the number of castles open each WoE

set .@transfer_ownership, 1; // transfer ownership to the next (random) castle?

Thanks for any help Brian and sorry for my poor english

Edited by shadow.sk
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  11/28/11
  • Last Seen:  

bump please

Bump please

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