Jump to content
  • 0

[Help]How to make a box


Question

Posted

Hi guys!I don't know if i'm in the right section because the box i want to make i think requests client side files too and that's why i'm here to ask you about it...

So.I want to make a box that when you open it,it gives you random things like blessed scrolls or rb jwls or something like that with different chances

Is there anyone who can tell me how to do that?

Thanks in advance :)

Recommended Posts

  • 0
Posted

in skills folder:

 

<skill id="SKILL-ID" levels="1" name="BOX NAME">
	<table name="#extractableItems">
		ITEM-ID,ITEM-AMOUNT,ITEM-RATE;
	</table>
	<set name="isMagic" val="2" /> <!-- Static Skill -->
	<set name="capsuled_items_skill" val="#extractableItems" />
	<set name="itemConsumeCount" val="1" />
	<set name="operateType" val="A1" />
	<set name="target" val="TARGET_SELF" />
</skill>

 

in items folder:

 

<item id="ITEM-ID" type="EtcItem" name="Box Name">
	<set name="icon" val="icon.etc_box_of_adventure_1_i00" />
	<set name="default_action" val="capsule" />
	<set name="immediate_effect" val="1" />
	<set name="material" val="paper" />
	<set name="is_stackable" val="true" />
	<set name="handler" val="ItemSkills" />
	<set name="item_skill" val="YOUR BOX SKILL ID" />
</item>

 

 

it should work :D

  • 0
Posted

and where can i put the item id's?

 

<skill id="SKILL-ID" levels="1" name="BOX NAME">

<table name="#extractableItems">

ITEM-ID,ITEM-Am_ount-T,ITEM-RATE;

</table>

<set name="isMagic" val="2" /> <!-- Static Skill -->

<set name="capsuled_items_skill" val="#extractableItems" />

<set name="itemConsumeCount" val="1" />

<set name="operateType" val="A1" />

<set name="target" val="TARGET_SELF" />

</skill>

 

------

 

Track how Reagent Pouch (6009 ID) is used and you will know how to make your item, but basically it's like Leon said :)

  • 0
Posted

and don't forget to add the item to your system :D

 

That's the reason i made the topic man..you should tell me that before..Where to put what and where? :O

  • 0
Posted

That's the reason i made the topic man..you should tell me that before..Where to put what and where? :O

 

Generally, you have to edit now client files, itemname and etcitemgrp :P

You can use any existing item as an template, copy any and modifi it to your needs, just change description, ID and you're done :)

  • 0
Posted

You can do it via java side and client too.

 

Also, there is a file which called 'extractableitems.xml' into data folder. (Check it)

 

man when i spawn the box it says Test Box has spawned in your inverntory

but i can't see it..it's like i spawn it and it doesn't appear

  • 0
Posted

man when i spawn the box it says Test Box has spawned in your inverntory

but i can't see it..it's like i spawn it and it doesn't appear

 

 

add it to your system in

 

system/itemname-e.dat

system/etcitemgrp.dat

  • 0
Posted

 

add it to your system in

 

system/itemname-e.dat

system/etcitemgrp.dat

 

I did it but still not appearing...maybe my file edit don't save it...i don't know why but when i open itemname and put the line for the box and save it,then i open it again to see if it save it but it don't save it.What's happening with file edit damn??

  • 0
Posted

itemname-e doesn't matter while server is in beta phase . Take a look at etcitemgrp.dat or just try another fileedit.

 

I don't know what is goin on...someone who has knowledge about this pls help!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...