You are not logged in.

Applications: [GameMaster: OPEN] | [Volunteer Testers: OPEN]


This forum will be permanently shut down on Friday 13.07.2018
Please copy or save all important information from old forum before they will be deactivated
We have moved to new board. https://forum.runesofmagic.gameforge.com/Come join us.

1

Tuesday, July 1st 2014, 4:47am

Siege active function

Is there a function anywhere that can be used to check if siege is active? Something like a check to see if siege button is still highlighted (able to click it and enter siege).

I have been through some of the listed functions but there are a heap that I simply can't get value returned so I can't tell.

Also when you hit the enter siege button and you are in a zone that doesn't allow you to enter siege, it comes up with a popup saying so, is there a function that can determine if you are in a zone that won't allow you to enter siege? Could make a list of zone ID's but that's painful >.<
Cammo (82 M/82 W/82 R) 116,147 unbuffed Matk :D (95k pa - r/m)
Livia (82 P/77 K/75 S) wisdom O.o wtf is that...
~~ retired - Thanks to gameforge for that. ~~

This post has been edited 1 times, last edit by "CammoXD" (Jul 1st 2014, 4:53am)


Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

2

Tuesday, July 1st 2014, 11:23am

Can't remember what I used to do to check for Siege, but try/check out the following:

IsBattleGroundZone
No description on RoM wiki so not sure if parameters are needed, but chances are it won't need any. This may return a true or false value to indicate if current zone is a Siege zone. Again, I'm not sure of this one, so may or may not work, or could be for something else.

GetZoneID
This returns the ID of your current zone. Siege has a specific zone ID so even if the above doesn't work, you can use this and compare it to Siege's zone ID.


Check other functions in the Battle in the name. Unfortunately, most don't have a description on RoM Wiki.


As for detecting if you can enter Siege from your current location, I have no idea. You would need to see if you can find how the game does it.


Sorry I can't be of more help here.
2013... The year from hell....

3

Tuesday, July 1st 2014, 2:55pm

From what I have found all the 'Battle' related functions are to do with arena's etc.

The 'GuildWar' functions seem to be more related to siege.

The function GetGuildWarInfo for example, only most of them I can't get values from. I guess i'll test some more of them the next time I siege.
Cammo (82 M/82 W/82 R) 116,147 unbuffed Matk :D (95k pa - r/m)
Livia (82 P/77 K/75 S) wisdom O.o wtf is that...
~~ retired - Thanks to gameforge for that. ~~

4

Thursday, July 3rd 2014, 11:37am

Found them :D Just doing some more testing currently but the functions below return information about siege itself.

Source code

1
2
3
4
5
6
7
8
GuildHousesWar_CancelRegister
GuildHousesWar_EnterWar
GuildHousesWar_GetInfo
GuildHousesWar_GetRegisterCount
GuildHousesWar_GetRegisterInfo
GuildHousesWar_IsInBattleGround
GuildHousesWar_LeaveWar
GuildHousesWar_Register


GetInfo seems to be what i'm after, so far on 2 different server's with 2 different siege times, 1 is returning Fight - Fight and the other None - Disabled. So im guessing that the first value returned is what stage siege is at while the 2nd value is the situtation your personal guild is in at the time. Going to test them some more.

Edit ~~ GuildHousesWar_GetInfo tests:

Start stage and guild in siege - Fight Fight
Start stage and guild won - Fight FightEnd_Win
Start stage and guild not registered - Fight Disable
End Stage - None with second value same as Start stage
Registration Stage and not registered - Appointment Disable
Registration Stage and registered - Appointment Appointment
Preperation Stage and registered - Prepare Prepare
Preperation Stage and not registered - Prepare Disable
Preperation Stage and didn't get matched against another guild - Prepare Failed
Cammo (82 M/82 W/82 R) 116,147 unbuffed Matk :D (95k pa - r/m)
Livia (82 P/77 K/75 S) wisdom O.o wtf is that...
~~ retired - Thanks to gameforge for that. ~~

This post has been edited 3 times, last edit by "CammoXD" (Jul 4th 2014, 5:27am)