Good, after so many attempts, I managed to OFF spawn a rb using an ITEM, this method is not very seen in the current servers, that's why I decided to share this with you, I hope you can give me the credits <3.7 r' O3 W( t0 g
+ N9 c* X8 a7 o) O* Y! F: P8 s: i, \ \" I B0 ^2 ]
3 N2 s0 w, o# v7 w
First of all, the first thing we all know is that there are many items or skills that spawn objects or summons, like the necro skills or the dragon flute, we will also find others in the ai.obj or in the base programming that have certain functions to spawn or summon.
( R) M8 G) R2 {/ {1 P5 y1 D
+ n i! A- |7 o
; r# O) W- y( z: ?6 _But we forget that there is one that especially spawns an NPC for a certain time, and this code is dedicated to that, we are talking about the Christmas NPC, although it is actually an ITEM that spawns the Christmas NPC.
, {3 a2 e! A i6 Q& z- W1 q% V& v4 ?4 j3 N
2 a" L. m7 b1 D9 P* m4 R& X
m# P7 }2 n+ A& B* S/ ^7 @! pID: 5560 ITEM NAME: Christmas Tree
0 O5 ^) V5 j {& Y! C, I
4 \. K/ Y6 w( j1 p+ z. |Once we know this, to know what type of skill this item uses, we go to ItemData.txt (located in script and press Ctrl + f, we look for the ID 5560, automatically all the information of this item will appear:
* g8 T; N3 D6 z1 [1 M& p
" R3 ~0 [" T6 H1 `, J1 m5 A( x2 bitem_begin etcitem 5560 [x_mas_tree1] item_type=etcitem slot_bit_type={none} armor_type=none etcitem_type=potion recipe_id=0 blessed=0 weight=0 default_action=action_skill_reduce consume_type=consume_type_stackable initial_count=1 maximum_count=20 soulshot_count=0 spiritshot_count=0 reduced_soulshot={} reduced_spiritshot={} reduced_mp_consume={} immediate_effect=1 price=0 default_price=1 item_skill=[s_summon_x_mas_tree_a] critical_attack_skill=[none] attack_skill=[none] magic_skill=[none] item_skill_enchanted_four=[none] material_type=paper crystal_type=none crystal_count=0 is_trade=1 is_drop=1 is_destruct=1 physical_damage=0 random_damage=0 weapon_type=none can_penetrate=0 critical=0 hit_modify=0 avoid_modify=0 dual_fhit_rate=0 shield_defense=0 shield_defense_rate=0 attack_range=0 damage_range={} attack_speed=0 reuse_delay=0 mp_consume=0 magical_damage=0 durability=0 damaged=0 physical_defense=0 magical_defense=0 mp_bonus=0 category={} enchanted=0 html=[item_default.htm] equip_pet={0} magic_weapon=0 enchant_enable=0 can_equip_sex=-1 can_equip_race={} can_equip_change_class=-1 can_equip_class={} can_equip_agit=-1 can_equip_castle=-1 can_equip_castle_num={} can_equip_clan_leader=-1 can_equip_clan_level=-1 can_equip_hero=-1 can_equip_nobless=-1 can_equip_chaotic=-1 item_end
( r: @+ S8 N$ S" f8 d( f
7 E! _( O$ v9 V4 U/ F! R# z! N
Once we verify which skill is being used (marked in yellow above), we copy the name, in this case it is "item_skill=[s_summon_x_mas_tree_a]" -> "item_skill=[s_summon_x_mas_tree_a]". -> "s_summon_x_mas_tree_a", we make the same search process, but in this case we go to the file called "SkilData.txt", we open it and pressing Ctrl + F, we look for s_summon_x_mas_tree_a./ z2 t z: E* ~- B
* a, @' i5 j4 d1 Y8 M2 Y
+ ?- |3 x+ D" g: LThis information will appear, it is important to clarify that this info is the creation of the skill and its effect;
. u0 E) C; \. K& n$ ~) T
4 ?5 g/ F8 s) B0 }5 r0 Vskill_begin skill_name=[s_summon_x_mas_tree_a] /* [쁼뀘 킸났 삌큘] */ skill_id=2137 level=1 operate_type=A1 magic_level=1 effect={{i_summon_npc;[x_mas_tree_a];1}} 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 attribute=attr_none effect_point=0 target_type=self affect_scope=single affect_limit={0;0} next_action=none ride_state={@ride_none} skill_end
( ^& Q6 o% i3 ~& t
# `! u+ z, N, `8 Q9 R
- m3 K7 \) \$ X( P1 Q" K$ A! EOnce found, you will see that there is a part that says "effect", this would be what kind of call this skill makes, in this case, it is calling to spawn an NPC (you can check the id of the skills you want and look for them in this file, and you will see the effects), "effect={{i_summon_npc;[x_mas_tree_a];1}}".
. G" k7 R j* x1 k" O
9 z; Y! u6 D3 z# x; c* e
2 g! {; B7 p+ h; ~! c# Eeffect= -> refers to the effect you are going to produce.: @6 m" p& e+ x( ]. i% p. U
{{i_summon_npc; -> refers to spawning an npc.4 [: Z: \- h! y, b& P0 M* x! @& S# H# z
[x_mas_tree_a];1 -> refers to the NPC id in square brackets and the ;1 refers to the amount.
7 j& z6 d. g2 z. N8 e8 t1 S: W
) a. @7 I& O3 x9 \. g" L$ Z( x/ ^; W1 X4 N! y3 Y+ n
once verified this, now we have the base to spawn a mob, we will proceed to do the basics, create an item with filedit (itemname, skillgrp, skillname, etc), in this case I leave you the skillgrp/itemname/skillname:
2 H: \* c' X& U! n4 q) m" Z- H a4 y
) f" q& R: b2 J' `) `EXAMPLES HOW:
5 l/ C/ z/ f5 ^/ M, w. J% c6 f9 |9 [9 I' |
! D( {# h6 o; b/ Hskillgrp: 2138 1 0 0 -1 0 0.000000 0 icon.skill0000 0 0 0 0 -1 -16 Y7 P/ ?! h+ Y* p9 v/ f- ^) V
; L" J8 \2 b$ [8 d; P; W6 q
skillname: 2138 1 Summon Special Boss none none none
3 F1 H1 _9 ^; N; k" S% ?) G0 A7 x7 t7 i k$ u$ `: C% @- d3 V3 {4 a
Itemname: 2138 Raid Boss - Random Bomb Double-click to summon the Raid Boss. Beware: In case you move the raidboss into a peace zone, it will get despawned without warning! -1 0 0 0 5 c: H. n8 g5 F! r
# V8 w* w& ] I* ?# @) M5 m& N
etcgrp: 2 2138 0 3 5 6 0 dropitems.drop_jewel_box_m00 dropitemstex.drop_jewel_box_t00 Raidboss.Bomb 0 1 18 0 0 1 1 ItemSound.itemdrop_jewelbox 2 0 0& W) a& T3 x# ]% Y0 `5 r
: k; r) H1 [! m% c. s
: a# M7 M5 p! y" k+ K
* M: Y, Z( g' V2 G, P$ ?
- Change the IDs, because they are ID ramdoms. -
1 z) R* F! L' w
( n N$ \5 o7 b& I
* r! l1 q# v; n8 I$ gOnce this is done, we proceed to DATAPACK, where we will have to create the skill from 0 to work correctly, in my case, I replaced the id of the npc of the tree and it works correctly with that item. But in this case, what you should do, is to clone the skilldata of the tree and the itemdata, that is to say:6 \$ P6 j# _1 o! C& l1 d
6 m6 {2 o& h" X9 p: p
* r" Z4 p0 u$ b$ Z- X
0 n) O( I% f, t% y5 |* \
SKILLDATA:4 _& ^' T+ m0 Z( l* o1 E& b$ i% y/ p
3 d% l2 O4 w( ^
7 d# \: }) d C; C1 T' t+ [% W
2 a% p4 \# U' n0 W3 _
skill_begin skill_name=[s_Name_SKILL] /* [ꃠꀉ 킸났 삌큘] */ [skill_id=ID_SKILL level=1 operate_type=A1 magic_level=1 effect={{i_summon_npc;[x_mas_tree_b];1}} 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 attribute=attr_none effect_point=0 target_type=self affect_scope=single affect_limit={0;0} next_action=none ride_state={@ride_none} skill_end
' |) T3 m4 c% o* [& _+ T2 @4 X, z( }4 F9 [4 K8 T
3 X6 {( w) t% k; U
5 A) K2 |! g9 H, V. \5 G# Q
ITEMDATA:7 J4 |) L' m* D0 r
' i. }7 g" i, T. a) f4 g' d. a4 |! W0 t4 r% r$ ?
: e% D) [' n3 y5 Q! l9 `+ O
[code]item_begin etcitem (5560 ID ITEM) [name_item] item_type=etcitem slot_bit_type={none} armor_type=none etcitem_type=potion recipe_id=0 blessed=0 weight=0 default_action=action_skill_reduce consume_type=consume_type_stackable initial_count=1 maximum_count=20 soulshot_count=0 spiritshot_count=0 reduced_soulshot={} reduced_spiritshot={} reduced_mp_consume={} immediate_effect=1 price=0 default_price=1 item_skill=[s_name_SKILL] critical_attack_skill=[none] attack_skill=[none] magic_skill=[none] item_skill_enchanted_four=[none] material_type=paper crystal_type=none crystal_count=0 is_trade=1 is_drop=1 is_destruct=1 physical_damage=0 random_damage=0 weapon_type=none can_penetrate=0 critical=0 hit_modify=0 avoid_modify=0 dual_fhit_rate=0 shield_defense=0 shield_defense_rate=0 attack_range=0 damage_range={} attack_speed=0 reuse_delay=0 mp_consume=0 magical_damage=0 durability=0 damaged=0 physical_defense=0 magical_defense=0 mp_bonus=0 category={} enchanted=0 html=[item_default.htm] equip_pet={0} magic_weapon=0 enchant_enable=0 can_equip_sex=-1 can_equip_race={} can_equip_change_class=-1 can_equip_class={} can_equip_agit=-1 can_equip_castle=-1 can_equip_castle_num={} can_equip_clan_leader=-1 can_equip_clan_level=-1 can_equip_hero=-1 can_equip_nobless=-1 can_equip_chaotic=-1 item_end* F1 N6 H( j$ f+ R) y# J! k' B
4 Q- ?4 o4 B7 n
# b) j' P2 N+ G: {; Z
7 ~" z- N# \4 u9 z2 B$ _SKILLPCH Y SKILLPCH2:, R4 x* p6 w2 X
: ^1 h2 h+ ?% {9 W
7 `. _: I; k) pYou should copy the code of skilldata and put it in the "L2OFF GM PANEL", where you have it installed, you have a txt that is also called "skilldata.txt", there paste the code and save, after this, open the "L2OFF GM PANEL", touching the option of "PCH Editor" and that will open the generator, in which you click "skilldata".; b& L" H: J9 [5 ~' z' F8 f9 H
9 m3 c" ]% t7 _8 n# s |
|