Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-23-2011, 06:29 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
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?
__________________

Last edited by Emera; 09-23-2011 at 06:49 PM..
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:16 PM.


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