![]() |
[Help] Npcs Auto Attacking & Item Disappear, How?
Hi all,
Well.. some day i searched about this but today i searched again and found nothing -.-" My questions are: [Solved, Ty alysia] 1- How make city (citizen) Npc's attack the players with a skill if the players attack it? [Changed, Not Solved] 2- How to make drops go directly to player inventory? I am using C4 Retail =) Thats all, sorry for the incovinience =P Ty all ^^ |
1) You can add in the citizen AI a small attack code but be careful you have to test it because some AI must be change after it (for example the Bingo chest from the Clan Level 4 quest)
this is for the citizen AI There is a random value because I think that sometime it can be also a mistake that a player attack a NPC so there is only a 30% chance that the NPC cast the skill (just change it) Code:
handler 1 28 // ATTACKEDto the second thing I can't help you because I have also no idea about this, I think this must be coded but you must also obey that when a player dies he can be really mad when his weapon/armor disapear after 60seconds on the ground :D |
Tanks, well.. not my problem, its a pvp server i dont care if the weapon disappear, they only die for other players and i dont think others players will let the weapon on the ground =D~~
|
There is no such option. Unless you rewrite server exe.. :)
|
So, you know if thats on the Exe or it is in AI?
|
don't think it is AI because the NPC-Server doesn't care for items on the ground (and he can't see them)
maybe you teach the npc-server (hex :D) and create for the AI a new handler called "See_new_item" but that are all dreams :) just forget it |
npc can see item while it's beeing droped on ground, but it can't see items which were on ground already.
|
Ok, great, Then its possible to make the itens that mobs drop go directly to players inventory?
That would be much better =) Once again ty for the support =P |
You wanting an auto-loot feature, only way I know of to do this would be to use a hook on l2server.exe and custom write it. GL with that.
|
Quote:
|
yes, you just have to write it in AI and make a logic for party drops... or you could check if it's a party and make it drop the item instead of giving it to inventory.
|
Well.. i found this but i dont really know if it can help me, cause i dont have any idea in how to use it:
Code:
EventHandler SEE_ITEM(item)Any help with this will be greatfully apreciated, tanks all. |
| All times are GMT. The time now is 15:49. |