Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-22-2009, 11:10 PM
Rave_J Rave_J is offline
Graal Developer
Join Date: Feb 2006
Location: Texas
Posts: 848
Rave_J can only hope to improve
Send a message via AIM to Rave_J Send a message via MSN to Rave_J Send a message via Yahoo to Rave_J
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 !
Reply With Quote
  #2  
Old 10-22-2009, 11:34 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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.
__________________
Quote:
Reply With Quote
  #3  
Old 10-22-2009, 11:56 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
player.attr[5] = "gen_quest-icon.gani";

?
Reply With Quote
  #4  
Old 10-23-2009, 01:07 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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]
Reply With Quote
  #5  
Old 10-23-2009, 01:16 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Ah, didn't realize it was for an NPC.

As far as I know, attr[1] for gani's is bugged.
Reply With Quote
  #6  
Old 10-23-2009, 04:26 AM
Rave_J Rave_J is offline
Graal Developer
Join Date: Feb 2006
Location: Texas
Posts: 848
Rave_J can only hope to improve
Send a message via AIM to Rave_J Send a message via MSN to Rave_J Send a message via Yahoo to Rave_J
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
Reply With Quote
Reply


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 10:38 AM.


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