Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 08.08.2005, 22:32   #1
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default [sharing]symbol_maker ai script

its just a basic model of symbol_maker
full code for 12 symbols is around 7000lines
bought to u by toRuNe from http://www.wwtt2.com [chn server, 20x/30x/80x/12x/10x]
Member of L2Cs Dev Team.

Code:
class tt321_symbol_maker
{
handler:
       EventHandler MENU_SELECTED(talker, ask, reply)
       {              
                     if(ask == 219)
                     {
                                          if ((reply == 1) && (OwnItemCount(talker, @dye_s1c1_c) >= 10))
                                          {                            
                                                        if(DeleteItem1(talker, @dye_s1c1_c, 10))
                                                        {
                                                                      IncrementParam(talker, @PARAM_STR, 1);
                                                                      IncrementParam(talker, @PARAM_CON, -1);
                                                                      SoundEffect(talker, "ItemSound2.memorial_1");
                                                        }
                                          }
                                          if ((reply == 2) && (OwnItemCount(talker, @dye_s1d1_c) >= 10))
                                          {                            
                                                        if(DeleteItem1(talker, @dye_s1d1_c, 10))
                                                        {
                                                                      IncrementParam(talker, @PARAM_STR, 1);
                                                                      IncrementParam(talker, @PARAM_DEX, -1);
                                                                      SoundEffect(talker, "ItemSound2.memorial_1");                                                        
                                                        }
                                          }
                                          if ((reply == 3) && (OwnItemCount(talker, @dye_c1s1_c) >= 10))
                                          {                            
                                                        if(DeleteItem1(talker, @dye_c1s1_c, 10))
                                                        {
                                                                      IncrementParam(talker, @PARAM_CON, 1);
                                                                      IncrementParam(talker, @PARAM_STR, -1);
                                                                      SoundEffect(talker, "ItemSound2.memorial_1");                     
                                                        }
                                          }
                                          if ((reply == 4) && (OwnItemCount(talker, @dye_c1c1_c) >= 10))
                                          {                            
                                                        if(DeleteItem1(talker, @dye_c1c1_c, 10))
                                                        {
                                                                      IncrementParam(talker, @PARAM_CON, 1);
                                                                      IncrementParam(talker, @PARAM_DEX, -1);
                                                                      SoundEffect(talker, "ItemSound2.memorial_1");                            
                                                        }
                                          }
                                          
                                          if ((reply == 5) && (OwnItemCount(talker, @dye_d1s1_c) >= 10))
                                          {                            
                                                        if(DeleteItem1(talker, @dye_d1s1_c, 10))
                                                        {
                                                                      IncrementParam(talker, @PARAM_DEX, 1);
                                                                      IncrementParam(talker, @PARAM_STR, -1);
                                                                      SoundEffect(talker, "ItemSound2.memorial_1");              
                                                        }
                                          }
                                          
                                          if ((reply == 6) && (OwnItemCount(talker, @dye_d1c1_c) >= 10))
                                          {                            
                                                        if(DeleteItem1(talker, @dye_d1c1_c, 10))
                                                        {
                                                                      IncrementParam(talker, @PARAM_DEX, 1);
                                                                      IncrementParam(talker, @PARAM_CON, -1);
                                                                      SoundEffect(talker, "ItemSound2.memorial_1");                     
                                                        }
                                          }
                                          
                                          if ((reply == 7) && (OwnItemCount(talker, @dye_i1m1_c) >= 10) && IsInCategory(@wizard_group, talker.occupation))
                                          {                            
                                                        if(DeleteItem1(talker, @dye_i1m1_c, 10))
                                                        {
                                                                      IncrementParam(talker, @PARAM_INT, 1);
                                                                      IncrementParam(talker, @PARAM_MEN, -1);
                                                                      SoundEffect(talker, "ItemSound2.memorial_1");              
                                                        }
                                          }
                                          
                                          if ((reply == 8) && (OwnItemCount(talker, @dye_i1w1_c) >= 10) && (IsInCategory(@wizard_group, talker.occupation) || IsInCategory(@fighter_group, talker.occupation)))
                                          {                            
                                                        if(DeleteItem1(talker, @dye_i1w1_c, 10))
                                                        {
                                                                      IncrementParam(talker, @PARAM_INT, 1);
                                                                      IncrementParam(talker, @PARAM_WIT, -1);
                                                                      SoundEffect(talker, "ItemSound2.memorial_1");                     
                                                        }
                                          }
                                          
                                          if ((reply == 9) && (OwnItemCount(talker, @dye_m1i1_c) >= 10) && IsInCategory(@wizard_group, talker.occupation))
                                          {                            
                                                        if(DeleteItem1(talker, @dye_m1i1_c, 10))
                                                        {
                                                                      IncrementParam(talker, @PARAM_MEN, 1);
                                                                      IncrementParam(talker, @PARAM_INT, -1);
                                                                      SoundEffect(talker, "ItemSound2.memorial_1");                            
                                                        }
                                          }
                                          
                                          if ((reply == 10) && (OwnItemCount(talker, @dye_m1w1_c) >= 10) && (IsInCategory(@wizard_group, talker.occupation) || IsInCategory(@mage_group, talker.occupation)))
                                          {                            
                                                        if(DeleteItem1(talker, @dye_m1w1_c, 10))
                                                        {
                                                                      IncrementParam(talker, @PARAM_MEN, 1);
                                                                      IncrementParam(talker, @PARAM_WIT, -1);
                                                                      SoundEffect(talker, "ItemSound2.memorial_1");                     
                                                        }
                                          }
                                          
                                          if ((reply == 11) && (OwnItemCount(talker, @dye_w1i1_c) >= 10) && (IsInCategory(@wizard_group, talker.occupation) || IsInCategory(@fighter_group, talker.occupation)))
                                          {                            
                                                        if(DeleteItem1(talker, @dye_w1i1_c, 10))
                                                        {
                                                                      IncrementParam(talker, @PARAM_WIT, 1);
                                                                      IncrementParam(talker, @PARAM_INT, -1);
                                                                      SoundEffect(talker, "ItemSound2.memorial_1");                            
                                                        }
                                          }
                                          
                                          if ((reply == 12) && (OwnItemCount(talker, @dye_w1m1_c) >= 10) && (IsInCategory(@wizard_group, talker.occupation) || IsInCategory(@mage_group, talker.occupation)))
                                          {                            
                                                        if(DeleteItem1(talker, @dye_w1m1_c, 10))
                                                        {
                                                                      IncrementParam(talker, @PARAM_WIT, 1);
                                                                      IncrementParam(talker, @PARAM_MEN, -1);
                                                                      SoundEffect(talker, "ItemSound2.memorial_1");                            
                                                        }
                                          }
                     }
              super;
       }
}
torune is offline  
Old 09.08.2005, 02:08   #2
aseren
Архивный участник
 
Join Date: Feb 2005
Posts: 94
Default

nice site
aseren is offline  
Old 09.08.2005, 04:54   #3
archy
Архивный участник
 
Join Date: Mar 2005
Posts: 280
Default

I might be wrong, but IncrementParam with STR isnt permanent right?
Stats are reset once u login..?
archy is offline  
Old 09.08.2005, 06:22   #4
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

general speaking, yes
lol, u gotta figure out on ur own
torune is offline  
Old 09.08.2005, 08:13   #5
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

Quote:
Originally Posted by torune
general speaking, yes
lol, u gotta figure out on ur own
Woah this is the type of attitude that murdered the l2off community.
Sakumi is offline  
Old 09.08.2005, 08:13   #6
archy
Архивный участник
 
Join Date: Mar 2005
Posts: 280
Default

no need to figure it out, I know how to make things happen at user login :P
archy is offline  
Old 09.08.2005, 09:08   #7
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

... but u wont share, we already know that. XD
but instead of complainin sth isnt workin 100% in this code i just say:
THX!
toolpunk is offline  
Old 09.08.2005, 10:06   #8
archy
Архивный участник
 
Join Date: Mar 2005
Posts: 280
Default

toolpunk, at the time i posted first i forgot about that way to do things on logon
archy is offline  
Old 09.08.2005, 14:49   #9
Sprinkle@work
Архивный участник
 
Join Date: Jun 2005
Posts: 50
Default

Will the ai.obj run this raw style script
Sprinkle@work is offline  
Old 09.08.2005, 15:32   #10
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

dunno try it out...
but i think yes. in meifu c1 scripts u can find this style of codin as well...
its more logical than this asm like shit
toolpunk is offline  
Old 09.08.2005, 16:23   #11
Sprinkle@work
Архивный участник
 
Join Date: Jun 2005
Posts: 50
Default

Your post was very constructive toolpunk, thanks for your input.
As you can see by my Login tho I am at work.
Sprinkle@work is offline  
Old 09.08.2005, 16:52   #12
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

lol, r u laughin about me?
even i dun have time 2 look at such things.
btw --> remote access? however thing stays the same. u can try it when u r back
toolpunk is offline  
Old 11.08.2005, 12:45   #13
scott
Архивный участник
 
Join Date: May 2005
Posts: 33
Default

Idea excellent - change stats has achieved. But there is a moment. Addition stats does not influence characteristics (str on patk, con on hp). The command for introduction of action стата can be? And restart of the character results stats in an initial condition. Excuse my translator.
scott is offline  
Old 14.08.2005, 10:39   #14
emax
Архивный участник
 
Join Date: Aug 2005
Posts: 14
Default

maby it is na newbie or even a noob question
but what should I do with that
it's dont look like script's in ai.obj just like a Java script

ty for answer
emax is offline  
Old 17.09.2005, 02:46   #15
tigra
Архивный участник
 
Join Date: Jul 2005
Posts: 41
Default

to restore tattoo effects look at handler 52.

Code:
handler 52	//  USER_CONNECTED
	variable_begin
		"talker"
		"i0"
		"i1"
		"i2"
		"i3"
		"i4"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

//tattoo - stats restore
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 4445
	func_call 81	//  func[OwnItemCount]
	shift_sp -2
	push_const 1
	equal
	branch_false L504580
L514580
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 3
	push_const 1
	func_call 171	//  func[IncrementParam]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 4
	push_const 3
	negate
	func_call 171	//  func[IncrementParam]
	shift_sp -3
	shift_sp -1
L504580
	shift_sp 1
//end
	push_event	//  talker
	push_const 32
	add
	fetch_i	//  level
	push_const 888
//.......
in "two" words - check itemid for tattoo, and if it exists, apply tattoo effects again...
tattoo conditions - like no more then 3 tattoo, characteristics changes not more then +5 better implement in symbolmaker, imho

but in this time it useless, since IncrementParam have no effects on characteristics (or noone share fix
tigra is offline  
Old 24.09.2005, 03:50   #16
RmzVoid
Архивный участник
 
Join Date: Apr 2005
Posts: 357
Default

HINT: stats affected if char unequip and then equip item
RmzVoid 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 19:47.