PDA

View Full Version : how to edit the item bonus, item slot, and the prices 562



stevenlin598
June 19th, 2010, 04:15
go into you data folder.
Then, go to the itemdefinition.xml
you should see something that looks like this.

<itemDefinition>
<price>
<minPrice>0</minPrice>
<maxPrice>0</maxPrice>n.
<normPrice>0</normPrice>
</price>
<bonus>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>89</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>76</int>
<int>0</int>
<int>0</int>
</bonus>
<examine>null</examine>
<id>13879</id>
<stackable>true</stackable>
<name>Morrigan's javelin</name>
<noted>false</noted>
<equipId>3290</equipId>
</itemDefinition>
This is one item.
<name>Morrigan's javelin</name>
says the name of the item. If you say it's something like Morrigan's boots, it would be a javelin inside the boots slot. The name defines the slot of the weapon. This is something fun to edit with. You can make it so you are wielding multiple weapons at once. You can also make two handed weapons one handed. I even combined dragon claws with dragon square shield and dragon 2h.

<bonus>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>89</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>76</int>
<int>0</int>
<int>0</int>
</bonus>
This defines the bonus.
change the number to something like
<int>11110</int>
and you will have a 11110 bonus for some stat like prayer.

<price>
<minPrice>0</minPrice>
<maxPrice>0</maxPrice>
<normPrice>0</normPrice>
</price>
This says what the price of the item will be.
<minPrice>0</minPrice>
That says what the very minimum price the item can be
<maxPrice>0</maxPrice>
That says what the max price can go up to.
<normPrice>0</normPrice>
That says what the normal price for the item is.
Save it and then run your server!
You don't have to compile it.
Hope this helped you

jamie
June 19th, 2010, 05:11
This is good for ppl who make 562's. But hardly anyone does, so i think u should stick to the 317 or under 525.

Nathan'
June 19th, 2010, 05:12
Simple guide, thanks for posting though

yourgirlwantsme
June 21st, 2010, 23:35
thats not how you change the prices...

Yaymyshow
June 22nd, 2010, 01:22
this is teaching not copy and paste

Denbruno
July 25th, 2010, 17:44
Thanks a lot for the post :-)

dahunta97
July 27th, 2010, 04:20
I wish 525s were written with XML it makes shit so easy :( but good tut, If I come across a 562 I will come back to this! It is fairly simple with 525- so maybe you could add that as well?

Yaymyshow
August 6th, 2010, 01:09
ffs didnt see i already posted on this thread /mod remove this post

maxinoutpk
January 10th, 2011, 21:45
Ok is it only the bonuses that mak the item good or how do u make epic armor? like do u hav to code other stuff like if u wanted agile as sweet armor would u hav to do oanything or just add bonuses?

Vesta Main
March 15th, 2011, 01:51
THANX. ive been looking in itembonus and item ;)

flavius
March 22nd, 2011, 19:30
go into you data folder.
Then, go to the itemdefinition.xml
you should see something that looks like this.

<itemDefinition>
<price>
<minPrice>0</minPrice>
<maxPrice>0</maxPrice>n.
<normPrice>0</normPrice>
</price>
<bonus>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>89</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>76</int>
<int>0</int>
<int>0</int>
</bonus>
<examine>null</examine>
<id>13879</id>
<stackable>true</stackable>
<name>Morrigan's javelin</name>
<noted>false</noted>
<equipId>3290</equipId>
</itemDefinition>
This is one item.
<name>Morrigan's javelin</name>
says the name of the item. If you say it's something like Morrigan's boots, it would be a javelin inside the boots slot. The name defines the slot of the weapon. This is something fun to edit with. You can make it so you are wielding multiple weapons at once. You can also make two handed weapons one handed. I even combined dragon claws with dragon square shield and dragon 2h.

<bonus>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>89</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>76</int>
<int>0</int>
<int>0</int>
</bonus>
This defines the bonus.
change the number to something like
<int>11110</int>
and you will have a 11110 bonus for some stat like prayer.

<price>
<minPrice>0</minPrice>
<maxPrice>0</maxPrice>
<normPrice>0</normPrice>
</price>
This says what the price of the item will be.
<minPrice>0</minPrice>
That says what the very minimum price the item can be
<maxPrice>0</maxPrice>
That says what the max price can go up to.
<normPrice>0</normPrice>
That says what the normal price for the item is.
Save it and then run your server!
You don't have to compile it.
Hope this helped you

This is a good tut, But for the noobs out there you have to delete your itemDefinitions.bin every time you edit your itemDefinitions.XML, just search it in your server files.
Then save and compile.

ownerscape
April 29th, 2011, 07:57
hey do you have the compile code by any chance i didnt get one when i dl the source.

hellman2741
April 29th, 2011, 08:13
hey do you have the compile code by any chance i didnt get one when i dl the source.

Not exactly like this, but pretty close


@echo off
title Server Compiler
echo Compiling core...
"C:\Program Files\Java\jdk1.6.0_24\bin\javac" -d bin -cp deps/jython.jar;deps/log4j-1.2.15.jar;deps/mina-core-1.1.7.jar;deps/slf4j-api-1.5.3.jar;deps/slf4j-log4j12-1.5.3.jar;xpp3-1.1.4c.jar;deps/xstream-1.3.1-20081003.103259-2.jar;deps/xpp3-1.1.4c.jar -sourcepath src src/com/rs2hd/Main.java
pause

disple
April 29th, 2011, 13:35
[If you got a itemdefiniton.bin file in your data file]

Fail Tut

1. To edit prices go to data -> prices.cfg
2. To edit item bonus go to data -> itembonus.txt
3. You cant edit the itemslot

David
April 29th, 2011, 14:59
[If you got a itemdefiniton.bin file in your data file]

Fail Tut

1. To edit prices go to data -> prices.cfg
2. To edit item bonus go to data -> itembonus.txt
3. You cant edit the itemslot

Itembonus goes in itemDefinition.xml
Itemslot goes in Equipment.java

Omg u r a pr0 c0d3r disple!

Lukedawesome
April 29th, 2011, 15:02
Itembonus goes in itemDefinition.xml
Itemslot goes in Equipment.java

Omg u r a pr0 c0d3r disple!
Made me lul

stevenlin598
May 25th, 2011, 03:15
[If you got a itemdefiniton.bin file in your data file]

Fail Tut

1. To edit prices go to data -> prices.cfg
2. To edit item bonus go to data -> itembonus.txt
3. You cant edit the itemslot
1. item slot is judged by it's String name
2. prices is ItemDefinition.java
3. item bonus is also ItemDefinitions.java

Test before you post or else the post will make you look extremely arrogant