Thread: 200 Mp
View Single Post
  #1  
Old 07-17-2001, 02:08 PM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
200 MP

I am trying to create an NPCw to make it seem as though the player has 200 MP. It will be an item the player may purchase. Anyways, I was wondering if anyone could figure out why this doesn't work...
NPC Code:
if (created) {
this.playermagic=playermp;
}
if (playerenters) {
toweapons -200MP;
}
if (this.playermagic>playermp) {
playermp+=int(this.playermagic-playermp/2);
this.playermagic=playermp;
}

__________________
the sky is falling

Last edited by SkooL; 07-17-2001 at 10:32 PM..
Reply With Quote