Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Scripting Question (https://forums.graalonline.com/forums/showthread.php?t=134256617)

Rave_J 10-22-2009 11:10 PM

Scripting Question
 
Hey guy's
Let me tell u what im doing.

I did a icon graphic
and gani it so it moves up and down over the npc head

Now i want to display it over the npc head
as gani so it will move online over the npc head

so basically a npc with a icon that moves up and down.

i try
showani ("gen_quest-icon",);
showani2
and setani
nothing works idk what im messing up on
can someone show me how its done please thank you !

fowlplay4 10-22-2009 11:34 PM

There's a lot more parameters to showani than what you've tried.

showani(id, x, y, direction, animation, p1, p2, p3);

The extra parameters aren't needed.

If the gani was just the icon:

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
showani(200this.xthis.y2"gen_quest-icon"); // Displays Gani At NPC's X and Y


However I'm unable to determine what the gani is so you might just have the idle gani with the icon above it's head like u mentioned, then you would do something like the following.

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
setcharani("gen_quest-icon"""); // Sets the NPC's Gani


Hope this helps.

DustyPorViva 10-22-2009 11:56 PM

player.attr[5] = "gen_quest-icon.gani";

?

Admins 10-23-2009 01:07 AM

More like

PHP Code:

function onCreated() {
  
this.attr[1] = "gen_quest-icon.gani";


That will attach the gani to the npc so that the gani is displayed on top of the npc. There are attr[1] ... attr[30]

DustyPorViva 10-23-2009 01:16 AM

Ah, didn't realize it was for an NPC.

As far as I know, attr[1] for gani's is bugged.

Rave_J 10-23-2009 04:26 AM

thanks guys i use Attr[1]
and it works fine now i just got to try to make it where it only displays when mouse it over it but i want to try it before i ask


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

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