![]() |
[Sharing] Npc buffer ai
This is for the newbie guide, u need to insert this in his ai.
i used ask 2 reply 2 to start the check/buff. u may change to whatever u want :P If someone know how to do this in a shoter way feel free to share it xD. little explanation: check level and category > start timer. timer fired > load talker id from i_ai2 (since talker doenst exist in that handler) > counter increase each time skill is casted and timer is set again making a loop until the last skills is casted. there is a 1.5seg delay between skills. It could have bugs, i only tested fighters buff b4 i changed all the L70xx stuff Code:
|
good work sauron ;)
pd: add a [Sharing] to the title ^^ |
Awesome! :D
|
nice work dude :)
|
Tnx for sharing man
|
Again awsome work Sauron ;) I already did my buffers selling buffpotions lol but now i can make it work like the OFF.
|
GOOD JOB Sauron ;)
|
i put in ai what i need now to see the npc ??? and share for that?
|
npc already exist hxxp://www.lineage2.com/images/news/chronicle3_16_clip_image001.jpg
i forgot to say there are 2 htms, nobuff.htm is for those players without the level and wait.htm is use when npc is casting a skill lto someone else. Edit flakka: Sorry, just noticed the L2 link to official. (Just replace xx with tt) |
can u share that htmls? i think i dont have :D
|
woot! :D
really nice work... hmm however donatin is kinda useless. u got 2 much cash XD |
I have problem here O.o
is a code from another post ? Thank for you share. |
hehe can u make newbie tutorial on more easy (not complex) stuff?
like simply npc that cast 1 buff - no matter on class.. simply player click on html link and cast buff.. I see how it work on coliseum buffer.. but dont understand where to start clone the code (where code start and end.. code about casting another buff..) and how to find what numbers to write to a href link in html :( |
i found some minor errors in my code, so far this part is working. Mage part is missing.
Dont forget to edit htms like guide_human_cnacelot001.htm and add "<a action="bypass -h menu_select?ask=2&reply=2">buff me :P</a>" etc.. so here is the fighter part working injected in the newbie_guide ai. Code:
class newbie_guide : citizen |
maybe this helps to understand
Code:
class dsadsadsa |
hmm with that ai script error in l2server :/
|
if u dont show me the error i cant help u
|
any solution for the healing cubic buff?
|
Since when does the Healing Cubic have anything to do with this npc script? Did I miss something? :?
Deathor: Make sure you copy and paste Sauron's script and overwrite any duplicate entries in your ai.obj file. And make sure there's only one entry. :) |
A healing cubic is actually included in Newbie buffs in official. I just wonder how can I do that too
|
hmm work ok now ty :D
|
Levels 10-24 - Wind Walk
Levels 11-23 - Shield Levels 12-22 - Bless the Body (Fighter), Bless the Soul (Mystic) Levels 13-21 - Vampiric Rage (Fighter), Acumen (Mystic) Levels 14-20 - Regeneration (Fighter), Concentration (Mystic) Levels 15-19 - Haste (Fighter), Empower (Mystic) Levels 16-19 - Life Cubic this is from the official site ;) |
Quote:
Anyway... Thanks for the list, top-gear! That should come in handy when making the htm files. :D One strange thing I noticed though. I started getting buffs at level 7 and it stopped at level 20. I got a total of six buffs on me - so that's why I'm assuming you were asking about the Life Cubic. :P Code:
L7085 |
nice ;) Ill work on it tonight if I have time. I need to complete skill acquire tonight first :)
|
nice nice
|
I can't understan AI code :( I was trying to make it buff the mages also but server crashes. any help pls?
|
good work, but mage buffs is not working :(
|
My appreciation to Sauron. Here full version of newbie buffer, including mage buffs. Still Vampiric Rage and Summon Life Cubic works wrong, but it's skilldata problem.
I use label numbers for my ai.obj, you can change it to whatever you like Code:
|
Hi lich :) - is nobuff.htm and wait.htm shuld be empty?
|
you can write anything you want in those htms
this is my htms Wait.htm <html><head><body>newbie buffer: Wait a little</a></body></html> nobuff.htm <html><head><body>newbie buffer: Wrong level - you can obtain buffs from level 10 till level 24</a></body></html> |
It's wrong
Wait.htm <html><head><body>newbie buffer: Wait a little </a> </body></html> nobuff.htm <html><head><body>newbie buffer: Wrong level - you can obtain buffs from level 10 till level 24 </a> </body></html> |
%) LOL - where did you seen "<a href" or something similar?
It`s no need in </a> All htm files for newbie buffers including nobuff.htm and wait.htm |
Heh.... Vampiric Rage kill newbie..... Incorrect skill in skilldata... :(
|
I said that it's works wrong. Change it to something like that
Code:
skill_begin skill_name = [s_vampiric_rage_for_novice] /* [c3 skill] */ skill_id = 4325 level = 1 operate_type = A2 magic_level = 7 effect = {{p_damage_shield;10}} operate_cond = {} is_magic = 1 mp_consume2 = 0 cast_range = 400 effective_range = 600 skill_hit_time = 0 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 0 activate_rate = -1 lv_bonus_rate = 0 basic_property = none abnormal_time = 3600 abnormal_lv = 1 abnormal_type = pa_up_special attribute = attr_none effect_point = 100 target_type = target affect_scope = single next_action = none skill_end |
GJ lich and sauron!
this new class newbie_guide : citizen given in both ur codes... is to replace the existing class newbie_guide : citizen ... right ? |
how to make enchacne without lvl test?
|
there a problem... for example, with a player level 20, click on "buff me"... and run... the guide run behind you... you can move the newbie guide to any part of the world... and he don't return, how to fix this? in my server newbies go with the newbie guide too far...
(maybe in npcpos ? i don't know... is a newbie question..., maybe with WayPoints? or... similar to orfen ai ? he return...) can help me ? sorry my english, im spanish. |
this is not olny problem , main problem is they can bugg the target.
When you are low lvl and you ask buff, another player (a high lvl one that shouldnt get buffs) talks to the NPC and gets the noob buffs instead of first player. Besides this 2 things code is great. |
Quote:
one player say me ... he click a los of times in a few time in Buff me... and Guide give to him all buffs (fighters and mystics), is posible ? or is a joke ? |
Quote:
sorry im a russian :roll: |
| All times are GMT. The time now is 16:27. |