Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   gs2 not working on server (https://forums.graalonline.com/forums/showthread.php?t=61614)

prozac424242 10-06-2005 01:03 AM

gs2 not working on server
 
I work for a server and in graal v4
this item, in a weapon, does not work.
It should open a blank window, but it does nothing.
What is wrong?

NPC Code:

//#CLIENTSIDE

if (weaponfired)
{
new GuiWindowCtrl("Hi") {
position = "0 0";
extent = "500 350";
canMove = true;
canResize = true;
canClose = true;
tile = true;
text = "Item Equip Menu";
visible = true;
}
}




i tried restarting the npcserver
and the /loadlang options
and it still does not work. ... what else could it be?

ForgottenLegacy 10-06-2005 01:30 AM

Quote:

Originally Posted by prozac424242
if (weaponfired)

Ugh, please re-read the docus on GS2. It's
function onWeaponFired() {

Also, /loadlang options does not exist and does nothing. You also need to be on Graal3 or Graal4

prozac424242 10-06-2005 01:51 AM

i tried that function onweaponfired
and it still didnt work ...
so i think gs2 may not be enabled on the server? is that possible?

napo_p2p 10-06-2005 02:21 AM

Quote:

Originally Posted by prozac424242
so i think gs2 may not be enabled on the server? is that possible?

GS2 needs to be enabled by Stefan first.

put this in Control-NPC or something:
PHP Code:

function onCreated() {
  echo(
"GS2 is enabled.");


If that doesn't work, GS2 is not enabled.


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

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