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 08-28-2003, 04:11 AM
killaxjw_p2p killaxjw_p2p is offline
Banned
Join Date: Aug 2003
Posts: 7
killaxjw_p2p is on a distinguished road
Need help

What am i doing wrong???im trying to make it if a restraunt member says /sub a sub will appear and the other player can touch the sub and it will dissapear.

NPC Code:

// Food Script created by ...
if(created){
setstring this.foodtype,sub; }

if(playerchats&&strequals(#c,/#s(this.foodtype))){
putnpc2 playerx+.5+vecx(playerdir)*2,playery+1+vecy(player dir)*2,{
if(created){
setimg sub.png;
}
if(playertouchsme){
playerhearts=playerfullhearts;
}
}
}

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 04:17 AM.


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