View Single Post
  #6  
Old 04-09-2002, 06:15 AM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
Quote:
Originally posted by royce
if (playerchats) triggeraction playerx+1.5,playery+2,weapon,name,#c,#a;
so it's x,y,weapon,action,params...

I thought it was action before weapon

*Goes back to fix his system npcw*

[edit]

Funny thing is, that's not working either....

*ponders if he's doing this right...*

NPC Code:

if (weaponfired) triggeraction playerx+this.xdirgo[playerdir],playery+this.ydirgo[playerdir],-system,steal,#s(client.skill),#s(client.dex);


and in player system:
NPC Code:

if (actionsteal) {
if (isweapon) {
playerrupees-=strtofloat(#p(1))/2;
}
}



Can you see anything wrong?

Last edited by Gohan43331; 04-09-2002 at 06:25 AM..
Reply With Quote