Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-12-2011, 12:06 AM
Trakan Trakan is offline
It's all about cats!
Trakan's Avatar
Join Date: Sep 2010
Location: France
Posts: 64
Trakan is an unknown quantity at this point
Change player var with player chat

Ok i make a Humor script (viewable at profile rights click).

Here is my script :
PHP Code:
// Scripted by *Trakan (Admin)
//#CLIENTSIDE
function onWeaponFired() {
say2("For change humor say #b /humor <your humor>");
}

function 
onPlayerChats(){ 
if(
player.chat.starts("/humor")){
[
U]triggerserver("gui", name, "tagOn", clientr.humor);[/U]
player.chat = "Humor changed !";
 } 
} 
My problem is :
i need to set se variable clientr.humor with the player.chat

exemple :
the player say /humor test
The variable changed to test.

Thanks for future help.
Reply With Quote
 


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 08:12 AM.


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