PDA

View Full Version : [PI] Pointless yet cute tutorial [PI]



Pyro Sauce
December 28th, 2010, 16:48
Hey guys, ever wanted to make your marionettes, yo-yo's and zombie heads work on PI? (317)

What? no? oh... well uh.... yea...TO FREAKIN BAD
Heres my tutorial on how to make those things work :D!
_________________________________________________
(oh btw, I could only get my red one to work cause the other ones don't have the other click options and I cbf to add them)

Difficulty of Tutorial: 0/10 (Its just c/p any idiot can do it!)
Files being edited:
1.ClickItem.java
2.ItemAssistant.java
3.ItemClick2.java
4.ItemClick3.java




Step one:
go into ClickItem.java
Find this code using ctrl+F:

if (itemId != c.playerItems[itemSlot] - 1) {
return;
}
then RIGHT UNDERNEATH THAT LAST } paste this:

if (itemId == 6722){//zombie head
c.startAnimation(2840);
c.forcedText = "Alas!";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
}
if (itemId == 4079){//yo-yo
c.startAnimation(1457);
}
if(itemId == 6869){//green mar
c.startAnimation(3003);
c.gfx0(515);
}
if(itemId == 6868){//blue mar
c.startAnimation(3003);
c.gfx0(511);
}
if(itemId == 6867){//red mar
c.startAnimation(3003);
c.gfx0(507);
}


STEP TWO:


Go into ItemAssistant.java

Find THIS:

/**
*Wear Item
**/
public boolean wearItem(int wearID, int slot) {

UNDERNEATH THAT paste THIS

if(wearID == 6722){//zombie head
c.startAnimation(2844);
c.forcedText = "Muahahahah!";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;

}
if (wearID == 4079){//yo-yo
c.startAnimation(1458);
}
if(wearID == 6869){//green mar
c.startAnimation(3004);
c.gfx0(516);
}
if(wearID == 6868){//blue mar
c.startAnimation(3004);
c.gfx0(512);
}
if(wearID == 6867){//red mar
c.startAnimation(3004);
c.gfx0(508);
}

STEP THREEEEEEE WEEE !!!!


Go into ItemClick2.java


Find THIS:

switch (itemId) {

UNDERNEATH THAT Paste THIS:

switch (itemId) {
case 6869://green mar
c.startAnimation(3005);
c.gfx0(517);
break;
case 6868://blue mar
c.startAnimation(3005);
c.gfx0(513);
break;
case 6867://red mar
c.startAnimation(3005);
c.gfx0(509);
break;
case 4079://yo-yo
c.startAnimation(1459);
break;

STEP FOUR!@#%!#$^:

Open ItemClick3.java

Find THIS:


switch (itemId) {

UNDERNEATH THAT Paste THIS:

case 6869://green mar
c.startAnimation(3006);
c.gfx0(518);
break;
case 6868://blue mar
c.startAnimation(3006);
c.gfx0(514);
break;
case 6867://red mar
c.startAnimation(3006);
c.gfx0(510);
break;
case 6722: //zombie head
c.startAnimation(2844);
c.forcedText = "Muahahahah!";
c.forcedChatUpdateRequired = true;
c.updateRequired = true;
case 4079://yo-yo
c.startAnimation(1460);
break;

AND NOW YOU'RE DONE!!! WOOHOOO!!

Okay guys, I know that was all pointless and stupid but I just found out how all that stuff works by accident and i decided to do that myself and when I found out it works I had to come post it here so I could always remember the day I, Pyro Sauce, successfully completed something WITHOUT anyone's help!!!
CREDS:
76% me
20% zodiac for making that FUCKING AMAZING 317 id list for anims and gfx
4% my irl friend bobby for giving my the idea to do this subliminally

Tractical
December 28th, 2010, 16:52
Okay......
but can u give me client and source please lost it....
WOoot 1st post!(Idc)

Tractical
December 28th, 2010, 17:13
Nvm.....

Russell
January 31st, 2011, 15:28
Nice :)
I'm actually adding it LOL

tlozoot
February 1st, 2011, 01:12
Good job, i don't think anyone has posted a tut on how to make these things work