Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 09-23-2011, 07:17 PM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
This might help.
__________________
Reply With Quote
  #3  
Old 09-23-2011, 07:19 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
Quote:
Originally Posted by 0PiX0 View Post
This might help.
Thank you!
__________________
Reply With Quote
Reply


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:11 AM.


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