![]() |
AI - Raid Boss in arena
Hello,
i would like to write an AI able to do something if NPC like RaidBoss is in an arena, in effect some players aggros RB in order he follows them to the nearest arena, in that way they can kill him without taking any risk to loose xp. then i can controle myself.start_x/y/z with the 4 coordinates of the arena and do something if: (x1<x<x2) && (x3<x<x4) && (y4<y<y1) && (y3<y<y2) using that way i have to declare 8 integers by area: int x1 = int y1 = int x2 = int y2 = etc... but is it possible to use arrays/strings to declare those areas with NASC, because i would like to restrict more than 1 area in same AI, like: MyAreas = {{{x11,y11};{x12,y12};{x13;y13};{x14;y14}};{{x21,y 21};{x22,y22};{x23;y23};{x24;y24}}} If anybody know what are availables functions :roll: Btw i found those functions: SetVariableList, CTerritory but i have no idea how to use them. Regards |
i see there is the following handler:
OUT_OF_TERRITORY() anybody knows if it can solve my problem ? anw here what i wrote in order the mob turn back to his initial spawn location if someone try to kill him in Coliseum Area: Code:
int RA_x11 = 146923; |
hum, i just tested the last code i posted and it doesnt work :?
any help ? Ty |
maybe like that it will be better:
Code:
(RA_x11<FloatToInt(myself.sm.x)) && (FloatToInt(myself.sm.x)<RA_x12) && |
no, doesnt work :?
any idea ? |
If I right understand what you want, try this:
Code:
// x1 x2 |
| All times are GMT. The time now is 15:26. |