View Single Post
  #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