Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 08-16-2012, 03:23 AM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
You could put them as ATTRs in the gani (body attr1, head attr2, hat attr3, scarf attr4, ...) and than script your set#

PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "setbody"player.attr[1] = player.chat.substring(7);
  else if (
player.chat == "sethead"player.attr[2] = player.chat.substring(7);
  else if (
player.chat == "sethat"player.attr[3] = player.chat.substring(6);
  else if (
player.chat == "setscarf"player.attr[4] = player.chat.substring(8);

keep in mind that is very basic. You would do better doing serverside checks if the file actually exists and if it's the correct body part. But you should get what I want to say
__________________
MEEP!
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 Off
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:05 AM.


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