![]() |
ClanHall Buffer with option for summons
I made ch buffer with special function summon buff:
http://img266.imageshack.us/img266/9...008ahw0.th.jpg http://img266.imageshack.us/img266/2...0003jk2.th.jpg http://img160.imageshack.us/img160/6...0007eq1.th.jpg Every ch buffer with new ai will get new button Summon Buffs, the list of buffs will be same as list of buffs for normal players (depends of ch's grade). There is custodian ai (in custodian_ai.txt) to change in ai.obj, and htmls for server side. Special thx for HF for his ai guide & FidoW for good examples. edit: Added check if player got a summon (if hasnt got a summon, there will be a new message in box). Вложения из исходного сообщения (сами файлы в копии отсутствуют): html.rar — 6706 байт custodian_ai.rar — 8909 байт |
thx, good job
|
Umm,, i make more easy, if player have a pet or summon summoned... CH manager will target the summon, even you will need a check distance, if not... buffer will run behind the summon in case is too far... :P
I didnt check your code a lot, but trying to decompile with SauDecompiler... never finished, and that always happen when you have some mistake... especially with jumps.. EDIT: I just checked... extrange way of coding AI :P maybe is valid, but SauDecomp dont want to do the job since the jump is to a line behind :P |
Code is similar to ncsoft code ;P working in the same way (compare it to normal custodian ai and u will see that this code is almost same :P ).
Most important part of code: Code:
push_event |
yah yah! im talking about jumps :P
And you forgot about steward AI ... |
Steward ai ;P everyone can change his ai if he wish, my point was to show how to do that.
|
OK, look, my custodiam AI, the part related to that... replace "..." with the original code...
You can set in params if ON or OFF, you can choose range to buff... etc, if you have the pet summoned... buffer will target your pet, if you want to buff yourself, send far the summon or dont have it summoned...is easy. Code:
class 1 custodian : citizenQuote:
Anyway, your method is good too, a new option in the list... but im thinking what happen with your code if you try to buff a summon far away... or if it doesnt exist... |
i see, but if u want quick buff your summon in ch (pvp or smth ch is small and it would be a problem to send summon somewhere) :P better idea is another button (like Summon Buff etc). I forgot to put code to check if summon exists but ... i was to lazy to do that ;D (just checked if server wont crash if i try to buff my summon when i got no summon- it didnt ).
Edit: If summon is far away npc just wont buff a summon ;P. |
Simply amazing
|
| All times are GMT. The time now is 15:26. |