Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   setani...huh? (https://forums.graalonline.com/forums/showthread.php?t=77617)

Ryyan 11-18-2007 04:52 PM

setani...huh?
 
in gs2, what would be the command for when i press a it sets the gani to something?
if its onKeyPressed, then how would i make it change the gani(not change gani from this to that, but to change the player's gani)

xAndrewx 11-18-2007 06:42 PM

HTML Code:

//#CLIENTSIDE
function onKeyPressed(code, key) {
  if (temp.key == "a") {
    player.setani("gani name here", null);
  }
}

^^

Switch 11-18-2007 09:03 PM

Quote:

Originally Posted by xAndrewx (Post 1359049)
HTML Code:

//#CLIENTSIDE
function onKeyPressed(code, key) {
  if (temp.key == "a") {
    player.setani("gani name here", null);
  }
}

^^

You don't need the player. before setani(string,string) :\ Atleast I never have and I've never seen it like that.

Googi 11-19-2007 12:35 AM

On the off-chance this is because you're trying to use a custom grab/pull gani, you're looking for replaceani, not setani.

Kyranki 11-19-2007 03:15 AM

Quote:

Originally Posted by Switch (Post 1359073)
You don't need the player. before setani(string,string) :\ Atleast I never have and I've never seen it like that.

Lol.

It's funny because I don't think you know who you're trying to correct. :)


All times are GMT +2. The time now is 02:19 AM.

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