Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 10.12.2005, 23:02   #1
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default [HELP]With Abnormal types

I want to understand a bit more the meaning of abnormal_type in skilldata. I know that this is used for the skills to avoid stack of some similar skills. But I have a problem with that parameter because some skills are similar but they normally can stack together. If i use abnormal_type = none , then all the skills with abnormal_type=none cant stack together. If I use a custom word, then I get an error. Please help
top-gear is offline  
Old 11.12.2005, 20:49   #2
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Add a new entry in your manual_pch.txt. There's a whole list of abnormal effects (97 of them in fact).

For example...

[ab_none] = 0 - "none" being the key word. If you look in manual_pch, you'll see all of the "ab_" or abnormal effects in the game. So just make a new one so you can add it, or make sure your abnormal effect name matches up with the skill you want to use. That's probably why it's not working for you.

Or, you can add a new abnormal stat like ab_exploiterfound = 98, make the appropriate skilldata and stuff and then have an NPC/mob cast it on an exploiter or someone whose cheating. Say if the exploiter is luring mobs into a place where they get stuck and can't fight back. Just make a new place in areadata (go in the game and /loc for the well-known exploitable places like fences and stuff.). Then make a new regen skill or a no-damage abnormal effect or something in that specific area. Make sure to flag it so only mobs are affected otherwise players will exploit it for themselves. :P So basically once the mob enters that area, they won't recieve any damage and the players can't use that place anymore to exploit.

Also, you can make new areas that are peace zones (with full non-casting/skill areas for players), etc. That way people can't use skills or attacks to PK people in towns from on top of the buildings. :P

Saves tons of resources this way and it's a pretty fail-safe way to catch them since the code is plain and simple. Hope this helps some of you guys. :wink:
flakka is offline  
Old 13.12.2005, 14:00   #3
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

You have very interesting ideas. I'm wondering... I made [ab_snipe] = 98 and then I put abnormal_type = snipe and I got an error in l2server.exe in skilldata "Wrong abnormal type: snipe". What could be wrong?

How can I make peace zones that you can't even hit a mob? In normal peace zones you can use your skills to hit a mob...

Once again thanks for providing useful info
top-gear is offline  
Old 13.12.2005, 21:50   #4
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Quote:
Originally Posted by top-gear
You have very interesting ideas. I'm wondering... I made [ab_snipe] = 98 and then I put abnormal_type = snipe and I got an error in l2server.exe in skilldata "Wrong abnormal type: snipe". What could be wrong?
Did you make a skill for it as well? You need it for both client and server.

Quote:
Originally Posted by top-gear
How can I make peace zones that you can't even hit a mob? In normal peace zones you can use your skills to hit a mob...
Same way you would make a custom skill. I helped Sauron with the Monster Races the same way. Just make a skill, and then make the area you want and add it to areadata. Then flag the area with the skill so the mobs can't get hit. If you need an example, look at the mother tree instance in areadata. It's pretty self explanitory if you look at it.

Quote:
Originally Posted by top-gear
Once again thanks for providing useful info
Sure. :P
flakka is offline  
Old 13.12.2005, 23:27   #5
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

flakka i think u cant add new abnormal types i alrdy tried a while back
and seems top-gear confirm it but well...
hamidouch is offline  
Old 14.12.2005, 00:44   #6
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

im sure its possible to hex it in tho... just change the jump location at the end of where the l2server parses the skilldata and reads the abnormal types, and just make a new one... should work.. but requires experience...
testdude is offline  
Old 15.12.2005, 11:50   #7
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

i don't think making an area where you can't hit a mob is a good idea ...
Mirror is offline  
Old 16.12.2005, 23:31   #8
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Making an area where you're not able to hit a mob is fine as long as you don't go crazy with it. If people want to use geometry of the area to their advantage and exploit, then how is it bad? They pull the mobs there and attempt to kill them and they can't which results in...? It's their loss.

If anything, you can make it so mobs get teleported back to where they spawn if they get to that area as well. I just gave a sample of what you can do with the skills and areadata, that's all. I'm not saying to go out and make all these areas and do it. :P

Is there something else that I should know about or simply overlooking here?
flakka is offline  
Old 17.12.2005, 12:28   #9
Mirror
Архивный участник
 
Join Date: Oct 2005
Posts: 330
Default

what i meant was that they may not use it for their interest ..but in order to annoy other ppl by bringing trains of mobs..in that area and then force logout or fake death..YES THERE ARE PLENTY OF SUCH SICK MINDED PEOPLE! lol
Mirror is offline  
Old 17.12.2005, 12:35   #10
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

Abnormal type's cause is not to allow similar skills to act together, to cancel each other if they are similar.The problem is that some c2/c3 buffs are completely different and need their own abnormal type values in order not to cancel some other skills that are not related.

The areas that you cannot attack mobs is interesting too but its not related to the abnormal type values above...I would be interested for the last thing you said, that the mobs can be teleported back if they get out of their range. I wonder how can this be done. A teleport skill uses the parametre escape_town I think. Is there a way to change that value into something else and create a custom skill for mobs?
top-gear is offline  
Old 18.12.2005, 11:30   #11
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Ah ok. Makes sense then. I think I'll need to dig a bit to see exactly what's changed so the skill/abnormal types can be fixed. The problems is that we're still using C1 codes and the client has moved on meaning a lot of the functionality of the server is getting messed up as well. Looking through the ai data is a headache because some of the functions that are still there don't even work and are just taking up useless space. When I have more time, I can probably break it up and see if we can get things working properly. I think I was getting my abnormal and skills confused a bit. :P

Now as for the mobs...

Let's say if a mob is lead out beyond it's "area" where it spawns. It can make a check and head back to where it was, or just reappear where it spawned. There's plenty of ai functions for this, and maybe we can get the ball rolling for it so we can implement it. :P

Some of the functions that are of interest would be the ones from the archer warrior and orfen ai. If you look at it, it has the flags in there already. They just need to be tweaked a bit. The archer would be good since they usually run away if you're too close and orfen would be good since she teleports when she gets low on hp.

Also, we can take a look at a few others like:
class warrior_run_away_to_clan : warrior
class warrior_flee : warrior


Adding the "class warrior_flee : warrior" ai string on most of the mobs that people love to exploit would be a good thing, since they wouldn't just sit there and get hit all the time. For example, if someone was to pull a ton of mobs to an exploiting spot and nuke them, they would start to run when they get to a certain HP. This would make the exploit that much harder since;

1.) They're low on mana from nuking.
2.) If all of the mobs started running away, then it would pose a better challenge since the exploiter now has to target each and every single mob to kill it.

I think that's pretty easy to accomplish since 90% of the code is already done in the existing ai.obj. The only hard part is to find out which mobs you want to change and tweak with the added ai.

Keep in mind though if everyone tried to exploit a group of mobs and they all teleported back if they got to a certian hp (like Orfen), then it would be rather hard to play the game, lol. :lol:
flakka is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:52.