Jump to content

Recommended Posts

Posted

This small patch allows to easily add creatures such as Defias Prisoner that i.e. must be hostile at one map and friendly at another. Or that must have different looks/stats/etc. on different maps but must have same template ID.

Patch version 3: do not use new event type, extend existing EVENT_T_SPAWNED instead with its own conditions.

Patch: http://pastebin.ca/1428824

SQL: http://pastebin.ca/1428821

The condition codes for EVENT_T_SPAWNED are stored in parameter 1. Codes are:

0: works always

1: works on map in parameter2

2: works on zone in parameter2

3: works on area in parameter2

Tested on [7859]

Posted

Why not use existing already EVENT_T_SPAWNED, avoid duplicate event and instead create condition for event? We already use enum ConditionType in code, no reason to not use this in my opinion.

if EVENT_T_SPAWNED && CONDITION_ZONEID==your zoneId

->

ACTION_T_SET_FACTION

Posted

Okay, I will rewrite this and also move condition code to separate function. The patch will be available today (if nothing else happens).

Thanks.

Posted

Obsoleted by [7852].

I do not know how to check zone in SPAWNED type event using this condition code verification style, sorry. We have no player object in EVENT_T_SPAWNED.

I will post third version of the patch soon that will extend SPAWNED with a map/zone check in another way.

Posted

I will fix but note:

1) absent loading check for proper values

2) useless have zone/area different values. From area ids point this same check, just need get both value by single function call...

[adeed]In [7863] with described changes.. Thank you :)

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use