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 06-16-2007, 07:18 PM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
And Now Triggerclient not working?

This basically has to do the same thing with my last thread, in which I got a working answer too. Almost everything inside the system I'm making is serverside. The only Clientsided part needed triggeraction refuses to work inside the class apparently. And so I'm forced to use triggerclient.

Weapon:
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
Main this;
}

function 
onPlayerChats() {
  if (
player.chat.trim() == "/reconnect") {
    
serverwarp("Maloria");
  }
}

public function 
onActionClientside() {
  echo (
"Hey I've been found!");
}

public function 
setAni2(planianiparam1aniparam2aniparam3) {
  echo (
"rock me");

Class:
PHP Code:
public function execute(caster) {
  
temp.plyr 0;
  
this.account caster;
  
  
plyr findPlayer(this.account);
  echo (
plyr.account);
  
plyr.triggerclient("weapon""systemMain""");

Calling Weapon:
PHP Code:
function onCreated() {
  
pl findPlayer("Chandler");
  
pl.mud.spelllist[0].execute(pl.account);


I know for a fact, the player has the weapon and the proper account is being echoed to RC before the trigger. What's the dealio bro? :O
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
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 02:58 PM.


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