Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.