Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Nicknames Issue (https://forums.graalonline.com/forums/showthread.php?t=134264616)

Emera 09-23-2011 06:29 PM

Nicknames Issue
 
I am using a custom nickname GANI on Lexia, and I obviously need to disable nicknames using disablefeatures. Here is what I am doing.
PHP Code:

//#CLIENTSIDE
function onCreated() {
  
enablefeatures(allfeatures 0x200); //Disable Nickname


I am having one small issue though. When the player dies, it for some reason returns the functionality of default nickname showing, and shows the nickname over the custom nickname I am using. Is there any way to resolve this?

Could I do something like...
PHP Code:

//#CLIENTSIDE
function onCreated() {
  
setTimer(0.05);
}

function 
onTimeout() {
  if (
player.hp == 0) { //Player is dead
    
enablefeatures(allfeatures 0x200);
  }
  
setTimer(0.05);


EDIT: The issue is whenever I respawn from being dead, it resets it back to the default. Is there any way to detect if a player's hearts changes from 0 to 3 or above?

0PiX0 09-23-2011 07:17 PM

This might help.

Emera 09-23-2011 07:19 PM

Quote:

Originally Posted by 0PiX0 (Post 1668925)
This might help.

Thank you!


All times are GMT +2. The time now is 11:06 AM.

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