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.% ]1 I4 f& |( P3 X
z, |; h- I: O" u$ q' C) b8 m
" U5 Y; }0 {& U3 w/ d" R/ o! i; a8 |+ L0 O9 f
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.
0 d2 c3 T" [5 D5 z M! ~- e2 ^. U7 s) D% \, {0 N' z3 v" ]4 _7 x
# C* G8 b/ N# ~5 d8 \
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.
) h2 j" @9 K% U1 g% { ^( z8 k3 i9 k: q
! C: ^4 U+ q6 N3 ~! U/ [- s1 S% B/ q
ID: 5560 ITEM NAME: Christmas Tree6 \/ C6 Q, E; t1 |
% B/ {, ]$ G" F- TOnce 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:
2 D! a% J* L9 r& O4 Q5 ^
+ M. F X: i$ O& W7 r- R. Ritem_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
) U2 \# P8 J( @2 P2 x, r% \$ @$ x' n6 A8 A' b/ b3 u3 Y
9 l4 F6 l6 J# ?1 c- N0 W9 u
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.
0 m3 P2 \5 t- h$ m% @5 x5 N
, P5 [$ M& g K! j" J) E6 ]/ T; e2 S v4 `; H$ @' L7 }" z7 L
This information will appear, it is important to clarify that this info is the creation of the skill and its effect;8 f* p* B. L0 a4 f0 Y5 E; ~
7 H; P7 _9 c* c9 {" askill_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, |0 F4 K1 v; ?- D! \& p$ A$ T
) D F8 _4 `/ p
$ B$ ?2 I; Q3 u' d' E8 k1 ~8 n
Once 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}}".- A! @* H- I$ t, x. |4 |
4 w' i' @6 u& U; D
/ r; {4 f% e" ~6 Xeffect= -> refers to the effect you are going to produce.. u# D( Z$ k2 x/ n
{{i_summon_npc; -> refers to spawning an npc.
# ~' j+ v: K1 D) l$ J[x_mas_tree_a];1 -> refers to the NPC id in square brackets and the ;1 refers to the amount.
1 W0 T) M6 [& b# y( F5 A) {" ^/ R
% C) [. q3 ]3 }( C( ]
* Q. R+ s0 P0 h sonce 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 y$ o9 j/ T4 L9 n* {! j* W' L/ `% r; O8 e' l
EXAMPLES HOW:$ v/ g8 @$ h& V7 c+ S0 u
; m a5 W2 C0 a2 ~% p' v8 H' C; @0 b! `/ X
skillgrp: 2138 1 0 0 -1 0 0.000000 0 icon.skill0000 0 0 0 0 -1 -1
, C0 c% |* W# u1 k, C7 l& y' B" M
skillname: 2138 1 Summon Special Boss none none none
. t7 w$ _0 y1 n& G+ m) b
2 S% S* c2 n6 a& Z2 B( V& v" g" L6 jItemname: 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
8 Z8 _( U {/ y4 J6 O8 r4 K$ B7 |$ L
1 f5 j( C* b: W( t$ {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
6 y5 e+ @, ~( M3 t( N. l7 z, A: z" t1 i1 D
% ^3 W+ k( b1 C8 V( k- h4 m
3 x5 t2 X6 y5 i5 X# {( b$ V- Change the IDs, because they are ID ramdoms. -
! _' f \: e: g/ E# N; C
4 |$ h O, O# k. |" i$ a" J; W: u1 x* B* Y( V
Once 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:+ W6 F/ e2 J# j" _& ^1 }
" R0 k a, U+ i& \6 y' S$ v( W
4 i9 o, z) \+ h% |& j
0 P+ P: T( c$ H4 y+ ESKILLDATA:" `+ v+ f9 W' k" n& P; e
. L N4 o0 M4 k w& h& {0 T
& R i9 L6 u! Y( ^0 M
" i- j$ P* s# t% e) D2 |' b1 r' b- g
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_end3 z9 c/ }# I" y- z$ p
) X$ k A8 t1 Q, `7 G- D% D
2 }+ H( H/ }8 D) j* h! h
1 p9 m" Y3 ]9 t2 d& W8 B! pITEMDATA:) i2 |% L. [- Y: ]' @6 o! j
1 `6 M* ~" d! W% ^ C8 Y, f" z& z
# X) N' P1 F- D9 P
1 j; E2 O9 ]0 }) u[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
2 p# Y6 S' I' q
1 W3 r7 ^- T# a2 }
' I) b% i+ g6 i5 l& Y& R, V0 `7 h! d3 y$ B/ }
SKILLPCH Y SKILLPCH2:2 t/ J! F3 G& ^" Y5 P
7 h3 u. g1 p2 m+ E8 ]. u
6 u. ~, G8 _6 E3 i: ~
You 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".; `' w9 d& f' N' S( o1 N- b
% o4 E) P1 v7 {$ {" m4 e9 c |
|