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(pl, ani, aniparam1, aniparam2, aniparam3) {
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