Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-10-2008, 09:04 PM
Clockwork Clockwork is offline
ᶘ ᵒᴥᵒᶅ...ᶘ ಠᴥಠᶅ❤...ℳℴℯ
Clockwork's Avatar
Join Date: Feb 2007
Location: Pennsylvania
Posts: 2,071
Clockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant future
New Emotions

Script that will replace the old emotions with new ones! :O
Made awhile ago, but decided to release it... (I don't like the old ones x.x; )

But yea, credits to Dusty, chompy and myself. o_O..


PHP Code:
//#CLIENTSIDE

function onCreated() {
  
enablefeatures(allfeatures-0x1000);
  
this.emote_timer 0;
  
setTimer(0.05);
}

function 
GraalControl.onKeyDown(keymodcharkeynumber) {
  if (
keymod == 577){ this.emote "aeko-crtl_a.gif";} else
  if (
keymod == 578){ this.emote "aeko-crtl_b.gif";} else
  if (
keymod == 579){ this.emote "aeko-crtl_c.png";} else
  if (
keymod == 580){ this.emote "aeko-crtl_d.png";} else
  if (
keymod == 581){ this.emote "aeko-crtl_e.gif";} else
  if (
keymod == 582){ this.emote "aeko-crtl_f.png";} else
  if (
keymod == 583){ this.emote "aeko-crtl_g.png";} else
  if (
keymod == 584){ this.emote "aeko-crtl_h.png";} else
  if (
keymod == 585){ this.emote "aeko-crtl_i.gif";} else
  if (
keymod == 586){ this.emote "aeko-crtl_j.gif";} else
  if (
keymod == 587){ this.emote "aeko-crtl_k.png";} else
  if (
keymod == 588){ this.emote "aeko-crtl_l.gif";} else
  if (
keymod == 589){ this.emote "aeko-crtl_m.png";} else
  if (
keymod == 590){ this.emote "aeko-crtl_n.gif";} else
  if (
keymod == 591){ this.emote "aeko-crtl_o.png";} else
  if (
keymod == 592){ this.emote "aeko-crtl_p.png";} else
  if (
keymod == 593){ this.emote "aeko-crtl_q.png";} else
  if (
keymod == 594){ this.emote "aeko-crtl_r.gif";} else
  if (
keymod == 595){ this.emote "aeko-crtl_s.png";} else
  if (
keymod == 596){ this.emote "aeko-crtl_t.png";} else
  if (
keymod == 597){ this.emote "aeko-crtl_u.png";} else
  if (
keymod == 598){ this.emote "aeko-crtl_v.png";} else
  if (
keymod == 599){ this.emote "aeko-crtl_w.png";} else
  if (
keymod == 600){ this.emote "aeko-crtl_x.png";} else
  if (
keymod == 601){ this.emote "aeko-crtl_y.png";} else
  if (
keymod == 602){ this.emote "aeko-crtl_z.gif";} else
  {
this.emote "None";}
  
  if (
this.emote != "None") {
    
this.emote_timer 6;
    
showimg(1this.emoteplayer.1.5player.1.5);
    
changeimgMode(11);
    
changeimgVis(13);
    
changeimgColors(1111.65); 
  }  
}
function 
onTimeout() {
  if (!
this.emote.ends("gif")) {
    if (
this.emote_timer >= 0.1) {
      
this.emote_timer -= 0.05;
    }else if (
this.emote_timer 0.1) {
      
hideimg(1);
    }
  }
  
with(findimg(1)) {
    if (
!= player.1.5 || != player.1.5) {
      
hideimg(1);
    }
  }
  
setTimer(0.05);

I think that's it...
Attached the images in a .zip
Attached Files
File Type: zip Emotions.zip (61.3 KB, 304 views)
__________________
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 12:17 PM.


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