![]() |
|
|
#1 |
|
Архивный участник
Join Date: Jul 2005
Posts: 371
|
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;
}
}
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Feb 2005
Posts: 94
|
nice site
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Mar 2005
Posts: 280
|
I might be wrong, but IncrementParam with STR isnt permanent right?
Stats are reset once u login..? |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Jul 2005
Posts: 371
|
general speaking, yes
lol, u gotta figure out on ur own |
|
|
|
|
#5 | |
|
Архивный участник
Join Date: Apr 2005
Posts: 555
|
Quote:
|
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Mar 2005
Posts: 280
|
no need to figure it out, I know how to make things happen at user login :P
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
... but u wont share, we already know that. XD
but instead of complainin sth isnt workin 100% in this code i just say: THX! |
|
|
|
|
#8 |
|
Архивный участник
Join Date: Mar 2005
Posts: 280
|
toolpunk, at the time i posted first i forgot about that way to do things on logon
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Jun 2005
Posts: 50
|
Will the ai.obj run this raw style script
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
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 |
|
|
|
|
#11 |
|
Архивный участник
Join Date: Jun 2005
Posts: 50
|
Your post was very constructive toolpunk, thanks for your input.
As you can see by my Login tho I am at work. |
|
|
|
|
#12 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
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
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: May 2005
Posts: 33
|
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.
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Aug 2005
Posts: 14
|
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 |
|
|
|
|
#15 |
|
Архивный участник
Join Date: Jul 2005
Posts: 41
|
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 //....... 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
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Apr 2005
Posts: 357
|
HINT: stats affected if char unequip and then equip item
|
|
|
|
|