MegaMediaLife
Welcome to MegaMediaLife. Register to post Have fun!!!!
MegaMediaLife
Welcome to MegaMediaLife. Register to post Have fun!!!!
MegaMediaLife
Would you like to react to this message? Create an account in a few clicks or log in to continue.


MegaMediaLife
 
HomeHomeLatest imagesSearchRegisterLog in

 

 Item's having stat Requirments

Go down 
3 posters
AuthorMessage
kurta
Legend
Legend
kurta


Posts : 59
Reputation : 0
Join date : 2009-11-16
Location : Australia

Item's having stat Requirments Empty
PostSubject: Item's having stat Requirments   Item's having stat Requirments EmptyMon Nov 23, 2009 4:28 am

ok first off base tested was delta
but should be ok for all

open up: wearing.java

this is just changing the attack needed

once your in wearing.java search for

Quote :
public int GetCLAttack(int ItemID) {
or you could try searching the item your changing
]

once you have searched that you should see something along the lines of this
Quote :

String ItemName = GetItemName(ItemID);
String ItemName2 = ItemName.replaceAll("Bronze", "");
ItemName2 = ItemName2.replaceAll("Iron", "");
ItemName2 = ItemName2.replaceAll("Steel", "");
ItemName2 = ItemName2.replaceAll("Black", "");

scroll down until you see the item your wanting to change

the item ill be changing is an attack hood
Quote :

} else if (ItemName.startsWith("Attack hood")) {
return 99;

the level need is the return 99:

change that to what ever you want the requirement to be
Back to top Go down
http://www.runescape.com
Trey
Pwner
Pwner



Posts : 20
Reputation : 1
Join date : 2009-11-18

Item's having stat Requirments Empty
PostSubject: Re: Item's having stat Requirments   Item's having stat Requirments EmptyMon Nov 23, 2009 7:54 am

Would be faster and safer to test item Id's in a switch.
Back to top Go down
kurta
Legend
Legend
kurta


Posts : 59
Reputation : 0
Join date : 2009-11-16
Location : Australia

Item's having stat Requirments Empty
PostSubject: Re: Item's having stat Requirments   Item's having stat Requirments EmptyMon Nov 23, 2009 7:56 am

not really no this is alot more safer
Back to top Go down
http://www.runescape.com
Trey
Pwner
Pwner



Posts : 20
Reputation : 1
Join date : 2009-11-18

Item's having stat Requirments Empty
PostSubject: Re: Item's having stat Requirments   Item's having stat Requirments EmptyMon Nov 23, 2009 8:56 am

Um nope.

First of all, this is slower as now you're looping through each character to compare equality. Secondly, this is much more error prone for various reasons, including typo's and item name changes. Especially when you already have a common denominator being the item's ID, and it being an integer, it is much smarter to just use a switch statement.
Back to top Go down
kurta
Legend
Legend
kurta


Posts : 59
Reputation : 0
Join date : 2009-11-16
Location : Australia

Item's having stat Requirments Empty
PostSubject: Re: Item's having stat Requirments   Item's having stat Requirments EmptyMon Nov 23, 2009 8:59 am

kid stfu, honsetly u dont need to type anything u change the number
Back to top Go down
http://www.runescape.com
Trey
Pwner
Pwner



Posts : 20
Reputation : 1
Join date : 2009-11-18

Item's having stat Requirments Empty
PostSubject: Re: Item's having stat Requirments   Item's having stat Requirments EmptyMon Nov 23, 2009 9:02 am

kurta wrote:
kid stfu, honsetly u dont need to type anything u change the number

I'm not a "kid", and flaming solely because I'm right is pretty immature. Maybe if you could program worth a shit then you'd understand what I'm telling you.
Back to top Go down
kurta
Legend
Legend
kurta


Posts : 59
Reputation : 0
Join date : 2009-11-16
Location : Australia

Item's having stat Requirments Empty
PostSubject: Re: Item's having stat Requirments   Item's having stat Requirments EmptyTue Nov 24, 2009 2:19 pm

that coding is simple takes max 5 mins to do all that ur way is more advanced
Back to top Go down
http://www.runescape.com
kurta
Legend
Legend
kurta


Posts : 59
Reputation : 0
Join date : 2009-11-16
Location : Australia

Item's having stat Requirments Empty
PostSubject: Re: Item's having stat Requirments   Item's having stat Requirments EmptyTue Nov 24, 2009 2:39 pm

hope this helps all you guys with your 317 servers
Back to top Go down
http://www.runescape.com
Trey
Pwner
Pwner



Posts : 20
Reputation : 1
Join date : 2009-11-18

Item's having stat Requirments Empty
PostSubject: Re: Item's having stat Requirments   Item's having stat Requirments EmptyWed Nov 25, 2009 6:31 am

kurta wrote:
that coding is simple takes max 5 mins to do all that ur way is more advanced

No it's not. It's simpler, all you are doing is switching the item's ID, if you think that is advanced then you have some serious issues.
Back to top Go down
kurta
Legend
Legend
kurta


Posts : 59
Reputation : 0
Join date : 2009-11-16
Location : Australia

Item's having stat Requirments Empty
PostSubject: Re: Item's having stat Requirments   Item's having stat Requirments EmptyWed Nov 25, 2009 8:57 am

wtf are you on about kid, im adding a requirement to weild a stat, you really need to read things better
Back to top Go down
http://www.runescape.com
java
Pwner
Pwner



Posts : 22
Reputation : 2
Join date : 2009-11-16

Item's having stat Requirments Empty
PostSubject: Re: Item's having stat Requirments   Item's having stat Requirments EmptyWed Nov 25, 2009 10:00 pm

kurta you are wrong treys way is much easier and do you realy need tut for adding item requirments maybe go read treys tutorial for beginer coders. (teaches you about ints ect)
Back to top Go down
kurta
Legend
Legend
kurta


Posts : 59
Reputation : 0
Join date : 2009-11-16
Location : Australia

Item's having stat Requirments Empty
PostSubject: Re: Item's having stat Requirments   Item's having stat Requirments EmptyThu Nov 26, 2009 6:02 am

ok thanks
Back to top Go down
http://www.runescape.com
Sponsored content





Item's having stat Requirments Empty
PostSubject: Re: Item's having stat Requirments   Item's having stat Requirments Empty

Back to top Go down
 
Item's having stat Requirments
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
MegaMediaLife :: Runescape Private Servers :: 317 Related Boards :: Tutorials-
Jump to: