owner blade
June 19th, 2010, 10:42
In this tutorial i will explain you all how to get rid of wrong models in wrong object/items/npcs etc!
Also i will add a few dumps that you can use :)
Step 1.
Search for a corrupted item/object/npc in your cache(a thing wich has the wrong models over it, for example the seeds wich are dragon full helms)
Step 2.
If you found an npc, then dl this npcdump( the dumps are kinda big as they contain alot of txt):
Only the registered members can see the link.
If you found an item dl this one:
Only the registered members can see the link.
If you found an object dl this one:
Only the registered members can see the link.
Now
IF YOU FOUND AN CORRUPTED ITEM:
Lets take an code of the dump for example
if(i == 2417){
itemDef.name = "Zamorak staff";--This is the name
itemDef.value = 80000; -- dont care about that lol
itemDef.description = "null".getBytes(); -- examine infos dont work :D
itemDef.modelID = 2749; -- IMPORTANT, this is the model you see in your inventory
itemDef.equipModel = 544;-- IMPORTANT This is the equip model as male
itemDef.femaleEquipModel = 544;-- IMPORTANT This is the equip model as female
itemDef.modelZoom = 1480; -- modelzoom wdc atm(unrenamed is anint181)
itemDef.modelRotation1 = 240;-- also rotations for invent models
itemDef.modelRotation2 = 916;-- also rotations for invent models
itemDef.modelYOffset = 50;-- also rotations for invent models
itemDef.modelXOffset = -12;-- also rotations for invent models
itemDef.modelShadowSpread = 0;--dont care bout that
itemDef.modelLighting = 0;--dont care bout that
itemDef.team = 0;--dont care bout that
itemDef.stackable = false;-- Means if you can stack it or not
itemDef.membersObject = true;--Means rs still fails
itemDef.isMembers = false;--Means rs still fails
itemDef.actions = new String[5];//mweh
itemDef.actions[1] = "Wield"; //Means what actions it have
itemDef.actions[4] = "Drop"; //Means what actions it have
itemDef.groundActions = new String[5];//mweh
itemDef.groundActions[2] = "Take";// means what actions it have on the ground
}
Now your currupted item has a name :p, lets go into the dump and press ctrl+f
now typ in the name of your item, for example Zamorak staff.
You will see the stuff that i put above^.
Now if your model is only strange in your inventory then you only care about the modelID next to itemDef.modelID = in the piece of code. As the id that stands beside it is the model thats wrong.
When its the male wear thats screwed up you look at itemDef.equipModel =
and when female: itemDef.femaleEquipModel =
Now you know wich model is wrong :). Now scroll down untill the end of part 2 for the modeldump.
================================================== ==========
IF YOU FOUND AN NPC:
Lets take an code of the dump for example
ID = 2116//its id
npcDefinition.name = "Trader";//his name
npcDefinition.floorTileSize = 1;//the amount of tiles it uses
npcDefinition.standAnimation = 101;//his standanim
npcDefinition.walkAnimation = 98;//his walkanim
npcDefinition.standTurnAnimation = -1;//his turning anim
npcDefinition.turn90CCAnimation = -1;//his turning anim
npcDefinition.turn90Animation = -1;//his turning anim
npcDefinition.turn180Animation = -1;//his turning anim
npcDefinition.combatLevel = 0;//his combat lvl
npcDefinition.headIcon = -1;/wich hedicon it uses(prayer)
npcDefinition.getDegreeseToTurn = 32;/idk
npcDefinition.modelLighting = 0;/idk
npcDefinition.modelShadowing = 0;//idk
npcDefinition.scaleModelWidth = 130;//means how tall the npc is
npcDefinition.scaleModelHeight = 115;//means how tall the npc is
npcDefinition.allowRightClickMenu = true;//means u can right click on it
npcDefinition.unkownBoolean1 = true;//like it says unkown rofl
npcDefinition.unkownInt1 = -1;//like it says unkown rofl
npcDefinition.unkownBoolean2 = true;//like it says unkown rofl
npcDefinition.isVisible = false;//if it is visible or not lol
npcDefinition.varBitChild = -1;//idk
npcDefinition.configChild = -1;//idk
npcDefinition.dialogueModels = new int[2];//means how many dialogue models it uses
npcDefinition.dialogueModels[0] = 3;//Means wich dialogue model it uses
npcDefinition.dialogueModels[1] = 6997;//Means wich dialogue model it uses
npcDefinition.ComponentModels = new int[6];//Amount of models it uses
npcDefinition.ComponentModels[0] = 2973;//IMPORTANT this is one of the models it uses
npcDefinition.ComponentModels[1] = 7072;//IMPORTANT this is one of the models it uses
npcDefinition.ComponentModels[2] = 7062;//IMPORTANT this is one of the models it uses
npcDefinition.ComponentModels[3] = 7037;//IMPORTANT this is one of the models it uses
npcDefinition.ComponentModels[4] = 7044;//IMPORTANT this is one of the models it uses
npcDefinition.ComponentModels[5] = 2985;//IMPORTANT this is one of the models it uses
npcDefinition.colour1 = new int[4];// means original color
npcDefinition.colour1[0] = 61;// means original color
npcDefinition.colour1[1] = 90;// means original color
npcDefinition.colour1[2] = 4550;// means original color
npcDefinition.colour1[3] = 10347;// means original color
npcDefinition.menuActions = new int[5];//means nothing :D
npcDefinition.menuActions[0] = null;//means nothing :D
npcDefinition.menuActions[1] = null;//means nothing :D
npcDefinition.menuActions[2] = null;//means nothing :D
npcDefinition.menuActions[3] = null;//means nothing :D
npcDefinition.menuActions[4] = null;//means nothing :D
npcDefinition.colour2 = new int[4];//means his color changed
npcDefinition.colour2[0] = 19769;//means his color changed
npcDefinition.colour2[1] = 15153;//means his color changed
npcDefinition.colour2[2] = 6715;//means his color changed
npcDefinition.colour2[3] = 13646;//means his color changed
====================
For you npc you search his name, and you will find something similiar to what i shown
if there are more of them, all you need to do is look at the ids, and keep spawning them till you find your screwed up npc :)
Now all we need to look at is:
npcDefinition.ComponentModels = new int[6];
npcDefinition.ComponentModels[0] = 2973;
npcDefinition.ComponentModels[1] = 7072;
npcDefinition.ComponentModels[2] = 7062;
npcDefinition.ComponentModels[3] = 7037;
npcDefinition.ComponentModels[4] = 7044;
npcDefinition.ComponentModels[5] = 2985
That are the models it uses, so "trader" uses the models 2973,7072,7062,7037,7044 and 2985
One or more of those is corrupted :\ Now you know wich models it uses, you also know wich ones you need to replace with the good ones :D.
Your done for now, scroll to the end of part 2 for the modeldump
================================================== ==========
IF YOU FOUND AN OBJECT:
This dump is harder to use as it kinda sucks :\
Anyways lets take an example:
aString739=Crevice//his name
maxi=1//idk lol
anIntArray773[0]=9247// IMPORTANTthe model it uses
maxj=1//idk
type[0]=0//type of the model(0 means wall for this one)
anInt744=1//amount of tiles it uses
anInt761=1//amount of tiles it uses
anInt748=128//how big it is i think...
anInt772=128//how big it is i think...
anInt740=128//how big it is i think...
B0 =false//idk
B1 =false//idk
B2 =false//idk
B3 =true//idk
B4 =false//idk
B5 =false//idk
B6 =true//idk
B7 =false//idk
B8 =false//idk
B9 =false//idk
B10 =true//idk
B11 =true//idk
B12 =true//idk
Now you search your object by openening the dump(AB) and hit ctrl+f and typ in your objectid.
If there are more of them you will need to use a command to spawn them so you can find it:
this is for normal objects
if ((command.startsWith("object") && command.length() > 7) && playerRights >= 2)
{
int object = Integer.parseInt(command.substring(7));
createNewTileObject(absX, absY, object, 0, 10);
}
And this one is for walls:
if ((command.startsWith("wall") && command.length() > 5) && playerRights >= 2)
{
int object = Integer.parseInt(command.substring(5));
createNewTileObject(absX, absY, object, 0, 0);
When you found your corrupted object You will need to look at:
anIntArray773[0]=
The number that stands beside it is the id of the model :)
It can also have more models used like:
anIntArray773[0]= 1;
anIntArray773[1]= 2;
anIntArray773[2]= 3;
anIntArray773[3]= 4;
Then the models it uses are 1 2 3 and 4 :)
Now you know the modelids of your corrupted object, scroll abit down for the modeldump :)
================================================== ==========
THE MODELDUMP YOU ALL WAITED FOR(THE MODELS ARE IN .MDL FORM. EITHER PRELOAD OR JUST GZIP THEM, ILL POST A PRELOADMODELS TUTORIAL HERE TOO :))
modeldump:
Only the registered members can see the link.
================================================== ==========
Step 3:
Replacing the models with good ones
if you followed step 2 good you know wich models your gonna need :)
Now enter the model dump and take out those models and paste them on your desktop or w/e.
If you havent preloadedmodels then first gzip the models, and then paste them into your models folder.
BUT FIRST! Look if you got the models already in your model file, they could be important for you, so put them somewhere else and then paste the new models into your models folder :D
Now you just startup your client and look how nice and not messed up your now-not-messed-up-anymore-obect/item/npc is :D.
================================================== ==========
Step 4:
Now what do i do with my models that i took out??
The first thing you should do now is preloading models:
Here is the link to the tutorial :)
Only the registered members can see the link.*********.com/forums/showthread.php?t=67249
When you completed model preloading, You search in yur class8,class5 and class46 for the modelid numbers you have put out of your models file.
When you found one of them, change the number to something likeeee... 70000 lol
And change the id of the model to 70000 too. Then put it as a .dat/.mdl into your new preloadedmodels file, and then your item/npc/object that the model was for is restored :). Always do that unless the model is shit and u dont even want it anymore.
================================================== ==========
WELL THAT WAS MY TUTORIAL.
Hope you all likes it and learnt something from it :)
Credits:
100% to me, owner blade :)
Also i will add a few dumps that you can use :)
Step 1.
Search for a corrupted item/object/npc in your cache(a thing wich has the wrong models over it, for example the seeds wich are dragon full helms)
Step 2.
If you found an npc, then dl this npcdump( the dumps are kinda big as they contain alot of txt):
Only the registered members can see the link.
If you found an item dl this one:
Only the registered members can see the link.
If you found an object dl this one:
Only the registered members can see the link.
Now
IF YOU FOUND AN CORRUPTED ITEM:
Lets take an code of the dump for example
if(i == 2417){
itemDef.name = "Zamorak staff";--This is the name
itemDef.value = 80000; -- dont care about that lol
itemDef.description = "null".getBytes(); -- examine infos dont work :D
itemDef.modelID = 2749; -- IMPORTANT, this is the model you see in your inventory
itemDef.equipModel = 544;-- IMPORTANT This is the equip model as male
itemDef.femaleEquipModel = 544;-- IMPORTANT This is the equip model as female
itemDef.modelZoom = 1480; -- modelzoom wdc atm(unrenamed is anint181)
itemDef.modelRotation1 = 240;-- also rotations for invent models
itemDef.modelRotation2 = 916;-- also rotations for invent models
itemDef.modelYOffset = 50;-- also rotations for invent models
itemDef.modelXOffset = -12;-- also rotations for invent models
itemDef.modelShadowSpread = 0;--dont care bout that
itemDef.modelLighting = 0;--dont care bout that
itemDef.team = 0;--dont care bout that
itemDef.stackable = false;-- Means if you can stack it or not
itemDef.membersObject = true;--Means rs still fails
itemDef.isMembers = false;--Means rs still fails
itemDef.actions = new String[5];//mweh
itemDef.actions[1] = "Wield"; //Means what actions it have
itemDef.actions[4] = "Drop"; //Means what actions it have
itemDef.groundActions = new String[5];//mweh
itemDef.groundActions[2] = "Take";// means what actions it have on the ground
}
Now your currupted item has a name :p, lets go into the dump and press ctrl+f
now typ in the name of your item, for example Zamorak staff.
You will see the stuff that i put above^.
Now if your model is only strange in your inventory then you only care about the modelID next to itemDef.modelID = in the piece of code. As the id that stands beside it is the model thats wrong.
When its the male wear thats screwed up you look at itemDef.equipModel =
and when female: itemDef.femaleEquipModel =
Now you know wich model is wrong :). Now scroll down untill the end of part 2 for the modeldump.
================================================== ==========
IF YOU FOUND AN NPC:
Lets take an code of the dump for example
ID = 2116//its id
npcDefinition.name = "Trader";//his name
npcDefinition.floorTileSize = 1;//the amount of tiles it uses
npcDefinition.standAnimation = 101;//his standanim
npcDefinition.walkAnimation = 98;//his walkanim
npcDefinition.standTurnAnimation = -1;//his turning anim
npcDefinition.turn90CCAnimation = -1;//his turning anim
npcDefinition.turn90Animation = -1;//his turning anim
npcDefinition.turn180Animation = -1;//his turning anim
npcDefinition.combatLevel = 0;//his combat lvl
npcDefinition.headIcon = -1;/wich hedicon it uses(prayer)
npcDefinition.getDegreeseToTurn = 32;/idk
npcDefinition.modelLighting = 0;/idk
npcDefinition.modelShadowing = 0;//idk
npcDefinition.scaleModelWidth = 130;//means how tall the npc is
npcDefinition.scaleModelHeight = 115;//means how tall the npc is
npcDefinition.allowRightClickMenu = true;//means u can right click on it
npcDefinition.unkownBoolean1 = true;//like it says unkown rofl
npcDefinition.unkownInt1 = -1;//like it says unkown rofl
npcDefinition.unkownBoolean2 = true;//like it says unkown rofl
npcDefinition.isVisible = false;//if it is visible or not lol
npcDefinition.varBitChild = -1;//idk
npcDefinition.configChild = -1;//idk
npcDefinition.dialogueModels = new int[2];//means how many dialogue models it uses
npcDefinition.dialogueModels[0] = 3;//Means wich dialogue model it uses
npcDefinition.dialogueModels[1] = 6997;//Means wich dialogue model it uses
npcDefinition.ComponentModels = new int[6];//Amount of models it uses
npcDefinition.ComponentModels[0] = 2973;//IMPORTANT this is one of the models it uses
npcDefinition.ComponentModels[1] = 7072;//IMPORTANT this is one of the models it uses
npcDefinition.ComponentModels[2] = 7062;//IMPORTANT this is one of the models it uses
npcDefinition.ComponentModels[3] = 7037;//IMPORTANT this is one of the models it uses
npcDefinition.ComponentModels[4] = 7044;//IMPORTANT this is one of the models it uses
npcDefinition.ComponentModels[5] = 2985;//IMPORTANT this is one of the models it uses
npcDefinition.colour1 = new int[4];// means original color
npcDefinition.colour1[0] = 61;// means original color
npcDefinition.colour1[1] = 90;// means original color
npcDefinition.colour1[2] = 4550;// means original color
npcDefinition.colour1[3] = 10347;// means original color
npcDefinition.menuActions = new int[5];//means nothing :D
npcDefinition.menuActions[0] = null;//means nothing :D
npcDefinition.menuActions[1] = null;//means nothing :D
npcDefinition.menuActions[2] = null;//means nothing :D
npcDefinition.menuActions[3] = null;//means nothing :D
npcDefinition.menuActions[4] = null;//means nothing :D
npcDefinition.colour2 = new int[4];//means his color changed
npcDefinition.colour2[0] = 19769;//means his color changed
npcDefinition.colour2[1] = 15153;//means his color changed
npcDefinition.colour2[2] = 6715;//means his color changed
npcDefinition.colour2[3] = 13646;//means his color changed
====================
For you npc you search his name, and you will find something similiar to what i shown
if there are more of them, all you need to do is look at the ids, and keep spawning them till you find your screwed up npc :)
Now all we need to look at is:
npcDefinition.ComponentModels = new int[6];
npcDefinition.ComponentModels[0] = 2973;
npcDefinition.ComponentModels[1] = 7072;
npcDefinition.ComponentModels[2] = 7062;
npcDefinition.ComponentModels[3] = 7037;
npcDefinition.ComponentModels[4] = 7044;
npcDefinition.ComponentModels[5] = 2985
That are the models it uses, so "trader" uses the models 2973,7072,7062,7037,7044 and 2985
One or more of those is corrupted :\ Now you know wich models it uses, you also know wich ones you need to replace with the good ones :D.
Your done for now, scroll to the end of part 2 for the modeldump
================================================== ==========
IF YOU FOUND AN OBJECT:
This dump is harder to use as it kinda sucks :\
Anyways lets take an example:
aString739=Crevice//his name
maxi=1//idk lol
anIntArray773[0]=9247// IMPORTANTthe model it uses
maxj=1//idk
type[0]=0//type of the model(0 means wall for this one)
anInt744=1//amount of tiles it uses
anInt761=1//amount of tiles it uses
anInt748=128//how big it is i think...
anInt772=128//how big it is i think...
anInt740=128//how big it is i think...
B0 =false//idk
B1 =false//idk
B2 =false//idk
B3 =true//idk
B4 =false//idk
B5 =false//idk
B6 =true//idk
B7 =false//idk
B8 =false//idk
B9 =false//idk
B10 =true//idk
B11 =true//idk
B12 =true//idk
Now you search your object by openening the dump(AB) and hit ctrl+f and typ in your objectid.
If there are more of them you will need to use a command to spawn them so you can find it:
this is for normal objects
if ((command.startsWith("object") && command.length() > 7) && playerRights >= 2)
{
int object = Integer.parseInt(command.substring(7));
createNewTileObject(absX, absY, object, 0, 10);
}
And this one is for walls:
if ((command.startsWith("wall") && command.length() > 5) && playerRights >= 2)
{
int object = Integer.parseInt(command.substring(5));
createNewTileObject(absX, absY, object, 0, 0);
When you found your corrupted object You will need to look at:
anIntArray773[0]=
The number that stands beside it is the id of the model :)
It can also have more models used like:
anIntArray773[0]= 1;
anIntArray773[1]= 2;
anIntArray773[2]= 3;
anIntArray773[3]= 4;
Then the models it uses are 1 2 3 and 4 :)
Now you know the modelids of your corrupted object, scroll abit down for the modeldump :)
================================================== ==========
THE MODELDUMP YOU ALL WAITED FOR(THE MODELS ARE IN .MDL FORM. EITHER PRELOAD OR JUST GZIP THEM, ILL POST A PRELOADMODELS TUTORIAL HERE TOO :))
modeldump:
Only the registered members can see the link.
================================================== ==========
Step 3:
Replacing the models with good ones
if you followed step 2 good you know wich models your gonna need :)
Now enter the model dump and take out those models and paste them on your desktop or w/e.
If you havent preloadedmodels then first gzip the models, and then paste them into your models folder.
BUT FIRST! Look if you got the models already in your model file, they could be important for you, so put them somewhere else and then paste the new models into your models folder :D
Now you just startup your client and look how nice and not messed up your now-not-messed-up-anymore-obect/item/npc is :D.
================================================== ==========
Step 4:
Now what do i do with my models that i took out??
The first thing you should do now is preloading models:
Here is the link to the tutorial :)
Only the registered members can see the link.*********.com/forums/showthread.php?t=67249
When you completed model preloading, You search in yur class8,class5 and class46 for the modelid numbers you have put out of your models file.
When you found one of them, change the number to something likeeee... 70000 lol
And change the id of the model to 70000 too. Then put it as a .dat/.mdl into your new preloadedmodels file, and then your item/npc/object that the model was for is restored :). Always do that unless the model is shit and u dont even want it anymore.
================================================== ==========
WELL THAT WAS MY TUTORIAL.
Hope you all likes it and learnt something from it :)
Credits:
100% to me, owner blade :)