| Item's having stat Requirments | |
|
|
Author | Message |
---|
kurta Legend
Posts : 59 Reputation : 0 Join date : 2009-11-16 Location : Australia
| Subject: Item's having stat Requirments Mon 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 | |
|
| |
Trey Pwner
Posts : 20 Reputation : 1 Join date : 2009-11-18
| Subject: Re: Item's having stat Requirments Mon Nov 23, 2009 7:54 am | |
| Would be faster and safer to test item Id's in a switch. | |
|
| |
kurta Legend
Posts : 59 Reputation : 0 Join date : 2009-11-16 Location : Australia
| Subject: Re: Item's having stat Requirments Mon Nov 23, 2009 7:56 am | |
| not really no this is alot more safer | |
|
| |
Trey Pwner
Posts : 20 Reputation : 1 Join date : 2009-11-18
| Subject: Re: Item's having stat Requirments Mon 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. | |
|
| |
kurta Legend
Posts : 59 Reputation : 0 Join date : 2009-11-16 Location : Australia
| Subject: Re: Item's having stat Requirments Mon Nov 23, 2009 8:59 am | |
| kid stfu, honsetly u dont need to type anything u change the number | |
|
| |
Trey Pwner
Posts : 20 Reputation : 1 Join date : 2009-11-18
| Subject: Re: Item's having stat Requirments Mon 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. | |
|
| |
kurta Legend
Posts : 59 Reputation : 0 Join date : 2009-11-16 Location : Australia
| Subject: Re: Item's having stat Requirments Tue Nov 24, 2009 2:19 pm | |
| that coding is simple takes max 5 mins to do all that ur way is more advanced | |
|
| |
kurta Legend
Posts : 59 Reputation : 0 Join date : 2009-11-16 Location : Australia
| Subject: Re: Item's having stat Requirments Tue Nov 24, 2009 2:39 pm | |
| hope this helps all you guys with your 317 servers | |
|
| |
Trey Pwner
Posts : 20 Reputation : 1 Join date : 2009-11-18
| Subject: Re: Item's having stat Requirments Wed 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. | |
|
| |
kurta Legend
Posts : 59 Reputation : 0 Join date : 2009-11-16 Location : Australia
| Subject: Re: Item's having stat Requirments Wed 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 | |
|
| |
java Pwner
Posts : 22 Reputation : 2 Join date : 2009-11-16
| Subject: Re: Item's having stat Requirments Wed 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) | |
|
| |
kurta Legend
Posts : 59 Reputation : 0 Join date : 2009-11-16 Location : Australia
| Subject: Re: Item's having stat Requirments Thu Nov 26, 2009 6:02 am | |
| | |
|
| |
Sponsored content
| Subject: Re: Item's having stat Requirments | |
| |
|
| |
| Item's having stat Requirments | |
|