Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [sharing]symbol_maker ai script (https://postpacific.loc-online.com/showthread.php?t=1404)

torune 08.08.2005 22:32

[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;
      }
}


aseren 09.08.2005 02:08

nice site

archy 09.08.2005 04:54

I might be wrong, but IncrementParam with STR isnt permanent right?
Stats are reset once u login..?

torune 09.08.2005 06:22

general speaking, yes
lol, u gotta figure out on ur own

Sakumi 09.08.2005 08:13

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.

archy 09.08.2005 08:13

no need to figure it out, I know how to make things happen at user login :P

toolpunk 09.08.2005 09:08

... but u wont share, we already know that. XD
but instead of complainin sth isnt workin 100% in this code i just say:
THX!

archy 09.08.2005 10:06

toolpunk, at the time i posted first i forgot about that way to do things on logon ;)

Sprinkle@work 09.08.2005 14:49

Will the ai.obj run this raw style script

toolpunk 09.08.2005 15:32

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

Sprinkle@work 09.08.2005 16:23

Your post was very constructive toolpunk, thanks for your input.
As you can see by my Login tho I am at work.

toolpunk 09.08.2005 16:52

lol, r u laughin about me?
even i dun have time 2 look at such things.
btw --> remote access? :D :D :D however thing stays the same. u can try it when u r back ;)

scott 11.08.2005 12:45

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.

emax 14.08.2005 10:39

maby it is na newbie or even a noob question :p
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

tigra 17.09.2005 02:46

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 ;)

RmzVoid 24.09.2005 03:50

HINT: stats affected if char unequip and then equip item


All times are GMT. The time now is 15:40.