Thread: Morpher
View Single Post
  #1  
Old 05-26-2002, 07:59 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Morpher

Hey again. I was just wondering how the morpher on Classic was made. If you aren't familiar with it, you can fire it next to someone and get all his/her clothes, shield, sword, and head. It's really quite cool. I don't quite know how to do this, though. Here's what I would do...

NPC Code:

if (weaponfired)
{
// Do this for each direction
if (playerdir == 1)
{
this.pindex = testplayer(playerx - 1, playery);
// Use the player's index to get all his/her clothes.
}
}



But um... What do I do with the player's index then? I don't know of anything to return another player's clothing colors.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote