PDA

View Full Version : [HEX] L2NPC.EXE (for AI developers)


kvoxi
26.01.2006, 19:35
0043AF28:6878DD4E00

This patch fix ShowSystemMessage() AI-function behavior.
description:
ShowSystemMessage(creature, nMsgNo)
creature - talker, attacker, speller, ....
nMsgNo - system message number from client-side systemmsg-e.txt file

Without this patch, func ShowSystemMessage() send sysmsg with number 0 to l2client or may bring L2client to halt.

fix and enjoy.

filrip
26.01.2006, 19:44
big thx kvoxi

testdude
26.01.2006, 19:54
if this works, you rule. :o

SoaPy
26.01.2006, 20:05
wooow this is great :D

kgptzac
26.01.2006, 20:21
can someone explain more about this... please? :P i don't understand this fix

erloko
26.01.2006, 20:36
Great!!

you know some function that from AI can be made an announcement global?

Thanx

Domzelan
26.01.2006, 20:39
I think it save client from error :)

drzoom
26.01.2006, 20:50
How to use this function?
Dont believe i can use messages from AI.
Give example please...

erloko
26.01.2006, 21:44
ex:

shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 347
func_call 44 // func[ShowSystemMessage]
shift_sp -2
shift_sp -1


systemmsg
msg_begin id=347 group=[error] color=[FFB09B79] sound=[] msg=[Incorrect item count.] c3_attr1=[] msg_end

Bump: you know some function that from AI can be made an announcement global?

drzoom
26.01.2006, 22:02
Cool, thks kvohi and erloko.

hamidouch
26.01.2006, 23:15
thks fo share fukin leet for ssq!

kvoxi
27.01.2006, 03:04
ex:
Bump: you know some function that from AI can be made an announcement global?
search in progress...

drzoom
27.01.2006, 03:13
What means announcement global?

erloko
27.01.2006, 03:42
What means announcement global?

GM command //announce

kvoxi thanxs

traders of mamon and other npc announces the arrival to the different town ^^

SoaPy
27.01.2006, 05:49
ohhh, for announce global you mean like //announce ?, i was thinking in some systemmsg globals like "even seven signs started" or something like that, those msg anyone in the server can read it, is like the "siege started"

Phantom2005
27.01.2006, 10:58
Good shit this can be very very handy thx!

Flamestrike
27.01.2006, 22:46
Heh..you can always add another line in the fstring.txt file ex: Preacher of Doom [number you want] right? Then look in npcdata like Lord Ishka or Queen Zyrna; see how the npc_ai ends and add the line to the Preacher of Doom's AI. Than it will talk. Mod it the way you want and also you can add a timer to repeat the line each 20 minutes. I've done it and worked.

nucer
29.01.2006, 09:40
There is no function ShowSystemMessage in NASC...

lich
29.01.2006, 10:27
There is no function ShowSystemMessage in NASC...
NASC is for meifu version, which doesn't has many functions of sina version. So you have to edit ai.obj directly to add this function call.

BTW thanks very much kvoxi, it's really very useful for quest writing.

Stalk3r
29.01.2006, 19:22
There is no function ShowSystemMessage in NASC...

By the way, there is ShowSystemMessage, but with one letter s.

Xelat
28.04.2006, 19:19
How about sending parameters to system message?
e.g. "$s1 already exists."

Xelat
28.04.2006, 19:19
How about sending parameters to system message?
e.g. "$s1 already exists."

Alien003
28.04.2006, 20:36
How about sending parameters to system message?
e.g. "$s1 already exists."

its possible ...not very hard but you need to hex a bit

create a new function in the npc server,
change the read function in the L2server to recieve a new packet from the npc server and call the SystemMessageS function

Alien003
28.04.2006, 20:36
How about sending parameters to system message?
e.g. "$s1 already exists."

its possible ...not very hard but you need to hex a bit

create a new function in the npc server,
change the read function in the L2server to recieve a new packet from the npc server and call the SystemMessageS function