nice this will help noob's like mebut i already knew these things.
|
|
Hey, Logically, im here to teach you how to start with your source, ok, first if you want a source go here
[Only registered and activated users can see links. ]
It's a source i would reccomend, its Project Czar, and its a fun good source, if you want to start off and edit loads then just follow my first beginner tuts on how to change Proj Czar
Tut 1:
To make monsters drop items.
Go to your Item2.Java and you will see Ints like this
This is very simple. Inside the { } are the ID's of the items in order of being dropped first to last.public static int rat[] = {5698,1305,3105,1725,1704,1323,1153,1115,1067,1081 ,1157,1119,1069,1083};
public static int randomrat()
{
return rat[(int)(Math.random()*rat.length)];
}
So if i wanted to make my goblin drop p'hats id do this
Now go to NPCHandler.javapublic static int Goblin[] = {1038,1040,1042,1044};
public static int randomGoblin()
{
return Goblin[(int)(Math.random()*Goblin.length)];
}
This is where we put the ID of the monster
You should see something like this, if you dont, stop reading this
if(npcs[NPCID].npcType == NPCID) {
ItemHandler.addItem(Item2.randomGoblin(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
}
That would be the second part to complete the Item2.java so the NPC actually drops the items.
So lets summarize this back up.
NPCHandler.java specifies the NPC's ID
The Item2.java Specifies the items being dropped by probability
Tut 2:
Making Safe Zones on czar, So you can delete the PK Emote on the tabs and change it to somewhere else.
First open up Client.java
Press Ctrl+F and search
This is where we specify the areas that are nonwild.public boolean nonWild() {
How we do this is with X and Y Co-ordinates.
It works in a diagonal, but it joins up the square
What we do first is, get a piece of paper, draw a square or rectangle.
Go to the bottom left corner of the building first.Write down the X and Y Co-ordinates.
Then go to the top right corner of the building. Get the X and Y Co-Ordinates of that corner.
That's it for safe zones.BotLeftX = Bottom left hand corner X Co-ordinate
BotLeftY = Bottom left hand corner Y Co-ordinate
TopRightX = Top Right hand corner X Co-ordinate
TopRightY = Top Right hand corner Y Co-ordinate
||(absX >=BotLeftX && absX <= TopRightX && absY >= BotLeftY && absY <=TopRightY ) ||
IGotSkillz
Tut 3: how to Get Item Bonuses
Open up Item.cfg in your Cfg or normal folder.
You should see this
Or soitem = 15156 Dark_Bow A_Dark_Bow. 4000000 4000000 4000000 0 0 0 120 91 0 0 0 0 0 86 0
To add a new item just copy a line and paste it at the end.
Change item = 15156 to the new item ID.
Etc, Abyssal whip
Tut 4: How to make Silab items ( Actually "Java" items ) go in the right slot, so they dont show through, or like hoods dont show through your head, so it fits 100%, ok first.item = 4151 Abby whip A_Whip. 4000000 4000000 4000000 0 132 0 0 0 0 0 0 0 0 132 0
You should see
This makes it so if you put a cape inside of the { }public static int capes[] = {
the cape will equip in the cape equipment spot.
This is the same for all of them.
There are a few things you should know as well.
If the Item is a platebody you will put it in public static int platebody[] = as well as public static int body[] =
This will terminate the glitch of your sleeves showing through the platebody.
Now To Fix Helms, (Hoods etc)
Its different
This is where it changes, if the item is a fullhelm you will put it into public static int fullhelm[] = as well as public int hats[] =
Dragon
![]()
nice this will help noob's like mebut i already knew these things.
Thanks, i hope noobs find it useful
You said how to make silab items(actually "Java" items) its jagex items. but good work i guess
Btw that doesnt make sensenice this will help noob's like me but i already knew these things.
It says "This Will HELP noobs like me", But i already knew these things.
nice this will help noob's like me but i already knew this stuffPlease explain what you meanBtw that doesnt make sense
It says "This Will HELP noobs like me", But i already knew these things.
I will add another tutorial tommorow Explaining Booleans,Methods, And voids and where to add them, and how to use them And my 3rd tut, How to add minigames!
Last edited by IGotSkillz; 02-16-2008 at 09:24 PM. Reason: Double posting is not allowed!

Thanks N I C K, Id reccomend you as a good coder, its my first tut, and ill put how to add pk area to Czar later,
[Only registered and activated users can see links. ] Code for how to add a PK zone to your czar
Why isnt my signature workingMy Beer is getting dangerously low!
My Beer is getting dangerously low!
Last edited by IGotSkillz; 02-16-2008 at 10:15 PM. Reason: Double posting is not allowed!

No, i think the uppit your using is virused.
My beer is decreasing
| « Need some code (logout) | One of the best MAX HIT SYSTEMS! » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
| Tags for this Thread |