Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Showing symbol (What's wrong ?) (https://forums.graalonline.com/forums/showthread.php?t=87529)

littlekinky 08-21-2009 12:49 AM

Showing symbol (What's wrong ?)
 
Ok i have this script i took the icon script that cbk provided and i wanted it to show a symbol when the weapon is fired please help me out ?

PHP Code:

//#CLIENTSIDE
function onCreated()
{
  
this.On false;
  
setTimer0.1 );
}

function 
onWeaponFired()
{
  
this.On this.On;
}

function 
onCreated() { 
  for (
temp.pl players) {
    
showimg(200 pl.id"stafficonimage.png",player.- -0.4player.- -3.3);;
    
changeimgvis(200 pl.id0);
    
changeimgcolors(200 pl.id1007);
  }
  
  
setTimer(0.05);



Tigairius 08-21-2009 01:15 AM

You have to show the image at the object's x/y not the player's x/y, so you would do it like this:
PHP Code:

    showimg(200 pl.id"stafficonimage.png",pl.0.4pl.3.3);
    
changeimgvis(200 pl.id0);
    
changeimgcolors(200 pl.id1007); 


fowlplay4 08-21-2009 01:18 AM

You have the onCreated function defined twice, the second one should be onTimeout.

Your script also looks like a couple scripts grafted together.

Bookmark: http://www.graal.net/index.php/GScript

Read the tutorials on that page as well.


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

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