View Full Version : [HEX] L2NPC.EXE (for AI developers)
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.
testdude
26.01.2006, 19:54
if this works, you rule. :o
can someone explain more about this... please? :P i don't understand this fix
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 :)
How to use this function?
Dont believe i can use messages from AI.
Give example please...
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?
Cool, thks kvohi and erloko.
hamidouch
26.01.2006, 23:15
thks fo share fukin leet for ssq!
ex:
Bump: you know some function that from AI can be made an announcement global?
search in progress...
What means announcement global?
What means announcement global?
GM command //announce
kvoxi thanxs
traders of mamon and other npc announces the arrival to the different town ^^
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.
There is no function ShowSystemMessage in NASC...
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.
There is no function ShowSystemMessage in NASC...
By the way, there is ShowSystemMessage, but with one letter s.
How about sending parameters to system message?
e.g. "$s1 already exists."
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