Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   player.join (https://forums.graalonline.com/forums/showthread.php?t=70605)

coreys 12-05-2006 07:27 AM

player.join
 
Well, I have the NPC Server on Uprising set up so that the the class "player" is joined to the player. I used player.join("player"); in the onActionPlayerOnline() block, but its not being joined. I have in the onCreated() block: this.chat = "!!!"; but it isn't doing anything. Can anyone help me?

coreys 12-05-2006 07:52 AM

Or...well I guess it is joining:
10. 0.000011666 % Admin-Playerworld77 (player)

But nothing in it works, even this:
PHP Code:

//#CLIENTSIDE
function onCreated() {
  
setshape(1,32,32);
  
triggeraction(x+1,y+1,"Trigger","check",player.account);
  
this.chat "!!!";



xAndrewx 12-05-2006 09:30 AM

Don't make it clientside.
HTML Code:

function onCreated()
{
  this.chat = "HI";
}

You don't need to define the shape, and the triggeraction isn't needed.

coreys 12-05-2006 04:06 PM

Ah, I just always figured it would work normally with the whole clientside thing. Thanks!


All times are GMT +2. The time now is 09:46 PM.

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