Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 09-28-2002, 04:36 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by R0b1n-NPC
You type it in *******
NPC Code:

if (weaponfired) {
putnpc2 playerx+5,playery,{setimg bush.png; message R0bin owns you;};
}

Yes, you type it in, but you do not type it in clientside -.-
Also, you do not use script commands outside of if clauses with events.

NPC Code:

if (actionserverside)
tokenize #v(playerdir);
putnpc2 playerx+vecx(playerdir)*2,playery+vecy(playerdir)* 2,{
if (created) {
showcharacter;
dir = (strtofloat(#t(0))+2)%4;
setcharani sword,;
sleep 1;
destroy;
}
};
}
//#CLIENTSIDE
if (weaponfired)
triggeraction 0,0,serverside,Stupidy;

 


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 06:20 AM.


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