mm...very good lol![]()
|
|
Purpose: Making certain Items 2Handed
Difficulty: umm. Lets say 2\10. Maybe.
Assumed Knowledge: Basically, what you really need is to read. And to learn.
Server Base: I've Tried it on Pimpscape
Classes Modified: Client.java
Procedure
Alright, Lets look at this code.
[PHP] if(playerEquipment[playerShield] > -1) {
if (playerEquipment[playerWeapon] == 1205) {
remove(playerEquipment[playerWeapon], 3);
}
} [/PHP]
That says, When you have a weapon, and a shield, equipped It tells the client to remove your weapon. You can edit this in anyway.
Take a look at this. (use this format ! )
[PHP]if(playerEquipment[playerShield] > -1) {
if (playerEquipment[playerWeapon] == Z1) {
remove(playerEquipment[playerZ2], Z3);
}
}[/PHP]
DO NOT TOUCH - 1.
Z1 = The Weapon Id.
Z2 = The players part, Like , Shield lets say.
Z3 = Equip slot number.
You place this under public boolean process.
I think, it won't lag.
Have some fun with that.
Hope this helped!
Credits: Me :]
Just wanted to say,
I find this community interesting, I come down here, 1 hour a day. Take a look around. This is a very fun place to stay at, Good members, Horrible SB Mods Who edit your shouts and get you banned, Good administrators.
But most of all, this community has a lot of good tutorials. Like moparscape, used to be a great place, but now its all " AMG LEIK NAO CAOPY AND PAST TAUTS" I'm not saying that i cant do Java, Its just a lot easier here. And all of you who aren't gay power abusing SB mods, Thanks :]
Enjoi.
mm...very good lol![]()
u can make a full helm two handed
LMAO Cool
noobs i posted 100% all item fixes bones levels to use 2h bug ect....
little just because you created something first and someone did something else after doesnt mean you get to flame and hog all the glory give some creds
hey pimped tut i know how u can apply this to a lot of things without fattening up your process much or lagging much do something like this
declare
then replace those numbers with the 2h idsCode:public int[] twoHander = {1111,2222,3333,4444,5555,6666,7777};
then go to process
put
NOTE: HAVE NOT TESTED THIS, AND NOT TRYING TO HIJACK YOUR TUTCode:if(playerEquipment[playerShield] > -1) { for(int i = 0; i < twoHander.length; i++) { if(playerEquipment[playerWeapon] == twoHander[i]) { remove(playerEquipment[playerWeapon], 3); } } }
its just less lag if you have like 29 two handers
no problem
| « [TUT]make it so you will be able to climb up/down in the pest control ladders/towers | server status help!?!? » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |