Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-13-2008, 12:50 AM
Stryke Stryke is offline
Scripter
Join Date: Apr 2008
Posts: 157
Stryke is an unknown quantity at this point
triggerserver for Level NPCs/Classes?

How do I increase a player's amount of gralats if I can't use triggerserver on a Level NPC joined with a class? This is for a shop script.
Reply With Quote
  #2  
Old 05-13-2008, 01:06 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Stryke View Post
How do I increase a player's amount of gralats if I can't use triggerserver on a Level NPC joined with a class? This is for a shop script.
I suggest triggering a weapon, but you can surely triggeraction that item.

For example,

PHP Code:
function onCreated()
{
  
setshape13232 );
  
setimg"block.png" );
}
function 
onActionDoesChat)
{
  
chat c;
}
//#CLIENTSIDE
function onPlayerChats()
{
  
triggeractionthis.xthis.y"DoesChat"player.chat );

You simply can't start it with Server.

Make sure you have the setshape, it is crucial.
__________________
Reply With Quote
  #3  
Old 05-13-2008, 01:26 AM
Stryke Stryke is offline
Scripter
Join Date: Apr 2008
Posts: 157
Stryke is an unknown quantity at this point
Works fine, solved. Thanks!

Last edited by Stryke; 05-13-2008 at 02:34 AM..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 08:00 AM.


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