Network
December 7th, 2010, 01:40
Hello,
This is one of my first tutorials, I have made a few in the past on the old forum but I mostly help other people rather then post threads.
Here is what we are trying to do. In this snippet I am using the chaotic maul int code. If in your itemdef or class8 you are using a case rather than a if, this guide is for you. Many people use ifs, and class8. So if you use need the case method or your using itemdef this is for you.
Eg.
if (1345){
...
}
to:
case 1345:
...
break;
Step 1. You are going to need to take the if method for the chaotic maul.
Step 2. You need to change the "if (####) {" to "case ####:"
Step 3. You need to change the "}" at the bottom to "break;"
Step 4. Every variable e.g. (itemDef.modelRotationX = 498;"), the "modelRotationX" may be a 1 or a 2. In the if statement x = 1, y = 2.
Step 5. For each variable, edit them to what is in your other case methods. If you don't have any other examples to take from I have on here:
case 15039:
itemDef.name = "Chaotic maul";
itemDef.itemActions = new String[5];
itemDef.itemActions[1] = "Wield";
itemDef.modelID = 35088;
itemDef.modelZoom = 1360;
itemDef.modelRotationX = 498;
itemDef.modelRotationY = 354;
itemDef.modelOffset1 = 4;
itemDef.modelOffset2 = 2;
itemDef.anInt188 = -1;
itemDef.anInt164 = -1;
itemDef.description = "A weapon of brute strength.".getBytes();
break;
- Most of the variables will be the same as in the if method, but same may be changed slightly. Look carefully. Your finished method should look like the one above.
Note: Obviously your modelOffset's, modelId etc will NOT be the same as mine. It all depends on the weapon/item's ints that you are modifying.
Hopefully this guide has helped you, if you guys have any questions or errors I will try to help :).
This is one of my first tutorials, I have made a few in the past on the old forum but I mostly help other people rather then post threads.
Here is what we are trying to do. In this snippet I am using the chaotic maul int code. If in your itemdef or class8 you are using a case rather than a if, this guide is for you. Many people use ifs, and class8. So if you use need the case method or your using itemdef this is for you.
Eg.
if (1345){
...
}
to:
case 1345:
...
break;
Step 1. You are going to need to take the if method for the chaotic maul.
Step 2. You need to change the "if (####) {" to "case ####:"
Step 3. You need to change the "}" at the bottom to "break;"
Step 4. Every variable e.g. (itemDef.modelRotationX = 498;"), the "modelRotationX" may be a 1 or a 2. In the if statement x = 1, y = 2.
Step 5. For each variable, edit them to what is in your other case methods. If you don't have any other examples to take from I have on here:
case 15039:
itemDef.name = "Chaotic maul";
itemDef.itemActions = new String[5];
itemDef.itemActions[1] = "Wield";
itemDef.modelID = 35088;
itemDef.modelZoom = 1360;
itemDef.modelRotationX = 498;
itemDef.modelRotationY = 354;
itemDef.modelOffset1 = 4;
itemDef.modelOffset2 = 2;
itemDef.anInt188 = -1;
itemDef.anInt164 = -1;
itemDef.description = "A weapon of brute strength.".getBytes();
break;
- Most of the variables will be the same as in the if method, but same may be changed slightly. Look carefully. Your finished method should look like the one above.
Note: Obviously your modelOffset's, modelId etc will NOT be the same as mine. It all depends on the weapon/item's ints that you are modifying.
Hopefully this guide has helped you, if you guys have any questions or errors I will try to help :).