priezm / ro-rail

Automatically exported from code.google.com/p/ro-rail
0 stars 0 forks source link

ActorOptions ByID - Not working #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Add actor options for a specific monster (in this case Permeter) and set it 
the skills and attack allowed option to false
rail_state["ActorOptions"]["ByID"][1314] = {}
rail_state["ActorOptions"]["ByID"][1314]["SkillsAllowed"] = false
rail_state["ActorOptions"]["ByID"][1314]["AttackAllowed"] = false

2. Set the ActorOptions(Default) skills and attack allowed option to true
rail_state["ActorOptions"]["Default"]["MaxCastsAgainst"] = -1
rail_state["ActorOptions"]["Default"]["FreeForAll"] = false
rail_state["ActorOptions"]["Default"]["TicksBetweenSkills"] = 0
rail_state["ActorOptions"]["Default"]["SkillsAllowed"] = true
rail_state["ActorOptions"]["Default"]["DefendOnly"] = false
rail_state["ActorOptions"]["Default"]["MinSkillLevel"] = 1
rail_state["ActorOptions"]["Default"]["Name"] = "unknown"
rail_state["ActorOptions"]["Default"]["DefaultIgnoreTicks"] = 10000
rail_state["ActorOptions"]["Default"]["AttackAllowed"] = true
rail_state["ActorOptions"]["Default"]["Priority"] = 0
rail_state["ActorOptions"]["Default"]["MaxSkillLevel"] = 5
rail_state["ActorOptions"]["Default"]["IgnoreAfterChaseFail"] = 5000

3.Set aggre mode to true
rail_state["Aggressive"] = true

What is the expected outcome? What do you see instead?
ByID is supposed to override the Default and ByType, in this case, my homun 
(Vanil 99) is not supposed to attack Permeter(1314 ID) because SkillsAllowed 
and AttackAllowed are both false. Yet it still does. 

What revision of the product are you using?
rail_state["Information"]["RAILVersion"] = "$Id: Version.lua 171 2010-06-19 
10:12:41Z faithful613 $"

What type of homunculus/mercenary are you using?
Homun = Vanilmirth
Mercenary = NA

Please provide any additional information below.
I don't know if i missed out something in the RAIL_State.homu.lua. I'll 
attached the RAIL_State.homu.lua. I already removed the 
rail_state["Information"] part. 

Also, i'd like to clarify somethings.
1. I'm not supposed to edit/modify what's in the USER_AI such as actor, 
actoropts etc... (except for the config file).

2. If i'm going to change my homun settings, i only need to modify 
RAIL_State.homu.lua in RO Folder (which i already did /heh). 

And, thanks for this AI! really smooth. 

Original issue reported on code.google.com by jerome.j...@gmail.com on 6 Sep 2010 at 2:39

Attachments:

GoogleCodeExporter commented 8 years ago
I apologize if the distinction is not clear. You should be using ByType for 
this--not ByID. ByType specifies the *type* of monster or player, while ByID 
specifies a singular actor's server *ID*. Some databases use the confusing term 
"Mob ID#", but this actually refers to the actor type. 

ByID is aimed mostly at PVP and WoE settings, because player IDs are unique. No 
two characters will ever share the same ID. ByType is not unique, and all 
alchemists will have a type of "18".

Here is an example of what TraceAI might show:
(40h) Actor class generated for Actor #123456789 [Loc:(166,138), Type:1025, 
Name:Boa].

In this example, the Boa's ID is 123456789, but its type is 1025.

Your clarifications are correct. The only file you should modify in USER_AI is 
Config.lua. Most settings will be in RAIL_State.homu.lua in your RO folder.

If you have other problems, please don't hesitate to open another issue report. 
Thanks!

Original comment by faithful...@gmail.com on 6 Sep 2010 at 5:27

GoogleCodeExporter commented 8 years ago
I get it now.. Thanks so much.

Original comment by jerome.j...@gmail.com on 6 Sep 2010 at 5:56

GoogleCodeExporter commented 8 years ago
Don't actually know if the ID system in Aegis is the same as in Athena, but if 
players' ID is in 2XXXXXX format, then it is the ID of his account, not the 
character itself. All characters of this account will have the same ID.

Original comment by mihhail....@gmail.com on 7 Sep 2010 at 1:59