![]() |
|
|
#1 |
|
Архивный участник
Join Date: Aug 2007
Posts: 13
|
Dear Folks:
Currently in our server we are sending to jail characters that don't follow the rules, but there are some minor comitted crimes for which the jail time is between 1 hour and 3 days. For this particular cases it is bothering having to remember every hour to remove these characters from jail, this is why I thought of creating a fosilization skill with the following code, since the command //char_stop does not work correctly (but I am new doing this): Code:
skill_begin
skill_name = [s_user_penalty] /* [Effects on punished users ] */
skill_id = xxxx
level = 1
operate_type = A2
magic_level = 90
effect = {{p_block_act};{p_block_getdamage;block_hp};{p_block_getdamage;block_mp};{p_block_buff};{p_block_debuff}}
is_magic = 0
mp_consume2 = 0
cast_range = -1
effective_range = -1
skill_hit_time = 0
skill_cool_time = 0
skill_hit_cancel_time = 0
reuse_delay = 0
activate_rate = 100
lv_bonus_rate = 1
basic_property = wit
abnormal_time = 3600
abnormal_lv = 80
abnormal_type = turn_stone
attribute = attr_derangement
effect_point = -10
target_type = target
affect_scope = single
affect_limit = {0;0}
next_action = none
abnormal_visual_effect = ave_flesh_stone
debuff = 1
ride_state = {@ride_none}
skill_end
1) Can I make the skill duration time variable somehow or should I create different skills with different duration times? 2) In case of an error how could I cure this skill? 3) Is it possible to cancel trading and/or chatting by using something in "effect" or should I create a macro to execute the skill, stopsay and else? Thanks in advance. /*Edit: 2) I could use //dispelall . note: I didn't delete the question because maybe someone has the same doubt. */ |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jun 2005
Posts: 285
|
Why not to use char ban for "1 hour - 3 days" through CacheD interactive port?
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Aug 2007
Posts: 13
|
|
|
|
|
|
#4 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Quote:
Answering the skill question... 1 duration per skill, so you will need to make different skills to different punishes, to remove skill... as any buff/debuff the player carry on... //dispellall Also you can use this skill to cancel any debuff Code:
[s_dispell_debuff] /* [Dispell Debuff] */ skill_id = 7002 level = 1 ... effect = {{i_dispel_by_category;slot_debuff;100}}
//char_stop 180 //ps_stop 180 //stopsay 180 |
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Aug 2007
Posts: 13
|
First of all, as always, thanks for your answer.
Second, I have a problem with "char_stop", It doen't work as I expected or I am doing something wrong, that is why I thought this solution. If I target a character and run //char_stop 5, the char stops moving and me too :P I don't know if it is a bug or I am doing something wrong. |
|
|
|
|
#6 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Quote:
|
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: May 2006
Posts: 237
|
if u want to use it for jailing make a macro like this
//char_stop 180 //stopsay 180 //send_gmroom and add a gatekeeper there so when they unfreeze they can port them self out |
|
|
|
|
#8 | |
|
Архивный участник
Join Date: Aug 2007
Posts: 13
|
I made the following macro:
//char_stop 180 //stopsay 180 //ps_stop 180 But it says that stopsay needs a target, I found the variable %Target, but it doen't work. BTW, ps_stop stops the Private store and Trade or there is another command to stop trade? Quote:
![]() That is a good idea... Thanks! |
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Aug 2007
Posts: 2
|
You have to include the name of the person you want to chat ban. So with them targeted you would type //stopsay xxnoobxx 180
You can't use the %target for GM command macros in game (although I have heard of people making it work through G15 keyboards). There is a GM command thread by sauron, with some basic info for most of the commands. You might want to review that first and then play around with them a bit. Also if I were you I'd just use the //char_stop command for minor rule infractions and then escape the person to town so they can wait it out there. It's far less complicated then trying to make a new skill. |
|
|
|
|
#10 |
|
Архивный участник
Join Date: Apr 2006
Posts: 236
|
skill_begin
skill_name = [s_user_penalty] /* [Improved effects on punished users] */ skill_id = #### level = 1 operate_type = A2 magic_level = 90 effect = {{p_block_act};{p_block_getdamage;block_hp};{p_blo ck_getdamage;block_mp};{p_block_buff};{p_block_deb uff}} is_magic = 0 mp_consume2 = 0 cast_range = 400 effective_range = -1 skill_hit_time = 0 skill_cool_time = 0 skill_hit_cancel_time = 0 reuse_delay = 0 activate_rate = -1 lv_bonus_rate = 0 basic_property = none abnormal_time = 3600 abnormal_lv = 80 abnormal_type = turn_stone attribute = attr_none effect_point = 204 target_type = target affect_scope = single affect_limit = {0;0} next_action = none debuff = 0 ride_state = {@ride_none;@ride_wind;@ride_star;@ride_twilight} skill_end |
|
|
|
|
#11 |
|
Архивный участник
Join Date: Dec 2006
Posts: 252
|
if you want to remove the fossilization, here is a simple cancel for turn_stone abnormal:
skill_begin skill_name = [s_YOUNAME] skill_id = XX level = 1 operate_type = A1 magic_level = 1 effect = {{i_dispel_by_slot;turn_stone;1}} is_magic = 1 mp_consume1 = 0 mp_consume2 = 0 cast_range = 10000 effective_range = 10000 skill_hit_time = 0 skill_cool_time = 0 skill_hit_cancel_time = 0 reuse_delay = 0 attribute = attr_none effect_point = -455 target_type = target affect_scope = single affect_limit = {0;0} next_action = none ride_state = {@ride_none;@ride_wind;@ride_star;@ride_twilight} skill_end |
|
|
|
|
#12 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Quote:
s_dispell_flesh_to_stone2 s_dispel_fake_stone And this skills too.. but also have anothers effects... s_purify2 s_purify3 |
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: Dec 2006
Posts: 252
|
for cast range, reuse delay etc etc
I don't really like using //use_skill i rather directly have fossilization and cancel directly in my shortcuts. just a question of gameplay :> |
|
|
|
|
#14 |
|
Архивный участник
Join Date: Dec 2006
Posts: 135
|
use_skill functions while inside towns, and you can add a macro for that.
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Aug 2007
Posts: 1
|
хуй:hello2:
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Aug 2007
Posts: 13
|
Thanks to all for your help, I really appreciate it.
|
|
|
|
|