View Full Version : [HELP] - New custom GM skill
gammexane
07.08.2007, 18:17
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):
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_blo ck_getdamage;block_mp};{p_block_buff};{p_block_deb uff}}
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
My doubts/concerns would be:
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.
*/
Why not to use char ban for "1 hour - 3 days" through CacheD interactive port?
gammexane
07.08.2007, 18:45
Why not to use char ban for "1 hour - 3 days" through CacheD interactive port?
Basically for two reasons:
1) We have some GMs without permission to do it.
2) It is not funny. :P
Basically for two reasons:
1) We have some GMs without permission to do it.
2) It is not funny. :P
Then put a small script to those person who allow to use only that especific function...
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
[s_dispell_debuff] /* [Dispell Debuff] */ skill_id = 7002 level = 1 ... effect = {{i_dispel_by_category;slot_debuff;100}}
And the third question... there is no way thought skill effects...
//char_stop 180
//ps_stop 180
//stopsay 180
gammexane
07.08.2007, 21:31
//char_stop 180
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.
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.
You too while you have it targeted. Press ESC or target another player/mob, solved :D
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
gammexane
08.08.2007, 01:27
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?
You too while you have it targeted. Press ESC or target another player/mob, solved :D
ROFL... Thanks :D
and add a gatekeeper there so when they unfreeze they can port them self out
That is a good idea... Thanks!
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.
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
~Marquis~
08.08.2007, 20:11
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
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
Why create a new one if already exist skills with that effect...
s_dispell_flesh_to_stone2
s_dispel_fake_stone
And this skills too.. but also have anothers effects...
s_purify2
s_purify3
~Marquis~
08.08.2007, 21:44
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 :>
use_skill functions while inside towns, and you can add a macro for that.
gammexane
09.08.2007, 14:47
Thanks to all for your help, I really appreciate it.