Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 26.01.2006, 19:35   #1
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default [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.
kvoxi is offline  
Old 26.01.2006, 19:44   #2
filrip
Архивный участник
 
Join Date: May 2005
Posts: 99
Default

big thx kvoxi
filrip is offline  
Old 26.01.2006, 19:54   #3
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

if this works, you rule.
testdude is offline  
Old 26.01.2006, 20:05   #4
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

wooow this is great
SoaPy is offline  
Old 26.01.2006, 20:21   #5
kgptzac
Архивный участник
 
Join Date: Jan 2006
Posts: 363
Default

can someone explain more about this... please? :P i don't understand this fix
kgptzac is offline  
Old 26.01.2006, 20:36   #6
erloko
Архивный участник
 
Join Date: Jul 2005
Posts: 42
Default

Great!!

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

Thanx
erloko is offline  
Old 26.01.2006, 20:39   #7
Domzelan
Архивный участник
 
Join Date: Apr 2005
Posts: 599
Default

I think it save client from error
Domzelan is offline  
Old 26.01.2006, 20:50   #8
drzoom
Архивный участник
 
Join Date: Aug 2005
Posts: 428
Default

How to use this function?
Dont believe i can use messages from AI.
Give example please...
drzoom is offline  
Old 26.01.2006, 21:44   #9
erloko
Архивный участник
 
Join Date: Jul 2005
Posts: 42
Default

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?
erloko is offline  
Old 26.01.2006, 22:02   #10
drzoom
Архивный участник
 
Join Date: Aug 2005
Posts: 428
Default

Cool, thks kvohi and erloko.
drzoom is offline  
Old 26.01.2006, 23:15   #11
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

thks fo share fukin leet for ssq!
hamidouch is offline  
Old 27.01.2006, 03:04   #12
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

Quote:
Originally Posted by erloko
ex:
Bump: you know some function that from AI can be made an announcement global?
search in progress...
kvoxi is offline  
Old 27.01.2006, 03:13   #13
drzoom
Архивный участник
 
Join Date: Aug 2005
Posts: 428
Default

What means announcement global?
drzoom is offline  
Old 27.01.2006, 03:42   #14
erloko
Архивный участник
 
Join Date: Jul 2005
Posts: 42
Default

Quote:
Originally Posted by drzoom
What means announcement global?
GM command //announce

kvoxi thanxs

traders of mamon and other npc announces the arrival to the different town ^^
erloko is offline  
Old 27.01.2006, 05:49   #15
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

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"
SoaPy is offline  
Old 27.01.2006, 10:58   #16
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

Good shit this can be very very handy thx!
Phantom2005 is offline  
Old 27.01.2006, 22:46   #17
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

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.
Flamestrike is offline  
Old 29.01.2006, 09:40   #18
nucer
Архивный участник
 
Join Date: May 2005
Posts: 117
Default

There is no function ShowSystemMessage in NASC...
nucer is offline  
Old 29.01.2006, 10:27   #19
lich
Архивный участник
 
Join Date: Jul 2005
Posts: 96
Default

Quote:
Originally Posted by nucer
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.
lich is offline  
Old 29.01.2006, 19:22   #20
Stalk3r
Архивный участник
 
Join Date: May 2005
Posts: 2
Default

Quote:
Originally Posted by nucer
There is no function ShowSystemMessage in NASC...
By the way, there is ShowSystemMessage, but with one letter s.
Stalk3r is offline  
Old 28.04.2006, 19:19   #21
Xelat
Архивный участник
 
Join Date: Apr 2006
Posts: 70
Default

How about sending parameters to system message?
e.g. "$s1 already exists."
Xelat is offline  
Old 28.04.2006, 19:19   #22
Xelat
Архивный участник
 
Join Date: Apr 2006
Posts: 70
Default

How about sending parameters to system message?
e.g. "$s1 already exists."
Xelat is offline  
Old 28.04.2006, 20:36   #23
Alien003
Архивный участник
 
Join Date: Jun 2005
Posts: 143
Default

Quote:
Originally Posted by Xelat
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 is offline  
Old 28.04.2006, 20:36   #24
Alien003
Архивный участник
 
Join Date: Jun 2005
Posts: 143
Default

Quote:
Originally Posted by Xelat
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 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 17:12.