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 03-23-2012, 12:42 AM
BlueMelon BlueMelon is offline
asdfg
BlueMelon's Avatar
Join Date: Sep 2008
Posts: 1,481
BlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to behold
trigger client in a DB NPC

PHP Code:

function onCreated(){
  
trigWeapon("Test");
}

function 
trigWeapon(trig){
  
triggerClient("npc","Blue_Temp","triggar",trig);
}

//#CLIENTSIDE

function onActionClientSide(){
  if(
params[0] == "triggar"){
    
findWeapon("Blue/Temp").trigger(params[1], "");
  }

And then ofcourse in Blue/Temp (weapon) I would have on clientside
function onTest(){ player.chat = "test"; }

Anyone have an idea why its not triggering?
__________________
http://i.imgur.com/OOJbW.jpg
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 09:19 PM.


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