Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   triggerserver for Level NPCs/Classes? (https://forums.graalonline.com/forums/showthread.php?t=79718)

Stryke 05-13-2008 12:50 AM

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.

cbk1994 05-13-2008 01:06 AM

Quote:

Originally Posted by Stryke (Post 1390546)
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.

Stryke 05-13-2008 01:26 AM

Works fine, solved. Thanks!


All times are GMT +2. The time now is 03:42 AM.

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