Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Темы без сохранившегося раздела (https://postpacific.mmorpg-game.online/forumdisplay.php?f=10001)
-   -   Need help about SubClass system manager AI (https://postpacific.mmorpg-game.online/showthread.php?t=1913)

krapno 24.09.2005 00:59

Need help about SubClass system manager AI
 
Hello,

i try to implement SubClass system manager and i have some bugs i would like to fix, i need your help.

This is the main part of AI:
Code:

...
L2131
        shift_sp 1
        push_event        //  talker
        push_const 32
        add
        fetch_i
        push_event        //  reply
        push_const 104
        add
        fetch_i
        func_call 144        //  func[ClassChange]
        shift_sp -2
        shift_sp -1
L2132
handler_end
class_end

I would like to had:
- A sound when profession change is done
- Display congratulation htm page
- Set char level to 40 (like official)
- Fix or test race in order to stay in initial race (for exemple if i am human and i choose a dwarven profession i become an Elf :? )

Tx for your help :)

http://img363.imageshack.us/img363/7...01865ed.th.jpg http://img363.imageshack.us/img363/7...01879bl.th.jpg

MoSs 24.09.2005 02:38

[offtopic]out of curiosity what the hell are these items? :O first time i see them! what armor are u wearing and what shield is that? C4 textures?[/offtopic]

SoaPy 24.09.2005 03:15

[offtopic_answer]yes, is c4 textures, and is the imperial crusader set and shield[/offtopic_answer]

Phantom2005 24.09.2005 09:05

On Lineage2.com:

[php:1:2b94196107]
If the tribe in the main class is Elf or Dark Elf, you may not select each class as a subclass to the other class, and you may not select Overlord and Warsmith class as a subclass. [/php:1:2b94196107]
[php:1:2b94196107]
You may not select a similar class as the subclass. The occupations classified as similar classes are as follows:
Treasure Hunter, Plainswalker and Abyss Walker .
Hawkeye, Silver Ranger and Phantom Ranger .
Paladin, Dark Avenger, Temple Knight and Shillien Knight .
Warlocks, Elemental Summoner and Phantom Summoner .
Elder and Shillien Elder .
Swordsinger and Bladedancer .
Sorcerer, Spellsinger and Spellhowler [/php:1:2b94196107]

Means you can't just go from a Treasure Hunter to a BladeDancer or something...

Eliot 24.09.2005 11:38

staying at a race is easy, you have to define more classes in categorydata,
eg you have to add spellsinger to dwarf group. I didn't do it myself but i think that it should work like that.
Will You post Your current work ? I'll think we could finish it. And developing/testing with a scratch of code You attached is impossible.

krapno 24.09.2005 17:55

tx for informations guys but i know all about SubClass system, what i dont know is how to implement it in AI.obj, this language is not easy, but i found some interersting things myself that i can understand and use, atm i can change my char in any class but i dont know how to add conditions (must be 75 to be able to change lvl), set lvl40 to player etc... regards

iamrend 25.09.2005 00:26

you work fine krapno :P

torune 25.09.2005 00:58

push_event // talker
push_const 32
add
fetch_i // level
push_const 888
add
fetch_i
push_const 75
less
branch_false SOMELABEL

change level -> use the idea of //setparam exp XXXXXXXXX

krapno 25.09.2005 01:07

Ok tx i got AI + html from cool PP guys (can i give names ?) :)

Too fix:
- When u change race, u become an Elf
- Changing profession from level 75 set u lvl1 (from lvl80 it is ok)

Regards

krapno 25.09.2005 13:43

Quote:

Originally Posted by krapno
Ok tx i got AI + html from cool PP guys (can i give names ?) :)

Too fix:
- When u change race, u become an Elf
- Changing profession from level 75 set u lvl1 (from lvl80 it is ok)

Regards

- Changing profession from level 75 set u lvl1 ==> Fixed :)
- When u change race, u become an Elf ==> Only from Human Race :?: :?: :?:

_styx 17.11.2005 18:41

can you share what was given to you?

Metalmurphy 17.11.2005 19:29

Thats krapno dude :p dont bother

Eliot 17.11.2005 21:58

Yeah, he used PP files, he asked for help, we helped him, and then he showed us the finger, it's his normal behaviour.

_styx 18.11.2005 00:43

@Metalmurphy, could you elaborate on your idea about using castle functions and castles in the DB for subclass?
I have an idea about how to use items(1302 of them) to allow the switch from class to subclass and back keeping their levels. They would be required to have all the skills up to that level to do it though. This would take many many many lines of ai coding, but most would be completely repetitive.
However, if you could explain more about the use of castles and how they could be used here, I'd greatly appreciate it.

Kenster 18.11.2005 02:05

its basically the same idea as I had for making the Oracle of Dawn and Dusk working right. Instead of 'registering' clans you, 'register' people, and then the 'siege starts' basically teleports you into the arena, instead of guards spawning, mobs start, and boom, full working oracle of dawn and dusk. Wha la?!

_styx 26.11.2005 21:54

ooo, thx !!

testdude 02.12.2005 09:47

does anyone have a fix for the problem with humans turning into the race that you change to? if anyone can help me with this bug i am willing to share the code that i have for subclass system...

kepler001 02.12.2005 13:39

hex

testdude 02.12.2005 17:23

k, already know that... wanna tell me where? cos i been searching the exe for weeks and ive come up wit nothing

kepler001 02.12.2005 17:33

not have codig for hex :s

testdude 04.12.2005 01:31

help? >.>

testdude 04.12.2005 08:12

can anyone with experience with hexing help me out with this? cos this is what i got so far....

the only references to classes in the l2server are at these 2 addresses:
0056A2FB
and
0056A465

at these 2 locations the human class is different to all the others... ive tried relocating the code and changing the XOR EDI,EDI to MOV EDI,0 to match what all the other classes do, but this doesnt help... only makes the exe go boom on load up, which lead me to find that these 2 locations are for the parsing of the data files... 0056A2FB being for settings, and the other one i havent looked at... so im lost... completely... there are no errors in l2server or l2npc when you class change with a human class, so i dont even know where to start... ive tried looking for the part in the l2npc that handles the class change function in the ai.obj, only to come up with nothing... there has to be someone who can help me with this... this is the only thing that is stopping me from sharing the subclass AI that i have made...

is there a possible workaround for this? i thought of making new classes that are in the human fighter/mage race group so that it would not change ur race, but i am unable to find where a certain class is defined as what race... aswell as this, there is no decrypter ClassInfo-e.dat, and i do not know how to manually decrypt it... help? :(

Ktulu 29.12.2005 14:07

what's the default name and id of that npc 'azazel'?

filrip 29.12.2005 16:28

ClassInfo contain only the text displayed for associate race when creating new characters. I don't think there is something more interesting.

testdude 29.12.2005 17:59

yeah i figured that out not that long ago, but i still cant figure out the problem with humans and their race changing aswell as class... i thought maybe stored procedure... but i cant seem to find a classchange procedure.. so im lost.. and does anyone know where the classes are defined clientside?...


All times are GMT. The time now is 22:42.