Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-18-2009, 07:56 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
gani scripting problem

Before anyone says anything, i know sleep is bad, i was just trying everything i could think of. Whats wrong with this script? the gani will not show up. dont know how to make it work.

PHP Code:
// NPC made by Cyril Dionne (SDE)
function onCreated(){
  
this.setimage("armageddon-door.png");
}

function 
onPlayerTouchsMe(){
  
this.setimg("");
  
this.setcharani("armageddondoor.gani","null");
  
sleep(5);
  
this.setcharani("","null");

__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #2  
Old 10-18-2009, 08:04 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
you don't include the .gani part in setCharAni.
Reply With Quote
  #3  
Old 10-18-2009, 08:38 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
PHP Code:
// NPC made by Cyril Dionne (SDE)
function onPlayerTouchsMe(){
  
setcharani("armageddondoor",null);

still not working.
dunno, but it looks like the npc image is hiding it. not sure.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #4  
Old 10-18-2009, 09:10 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
Check your gani file, and the folder rights and configuration on your server.
__________________
Quote:
Reply With Quote
  #5  
Old 10-18-2009, 09:15 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
You shouldn't mix and match images and ganis like that. If you're going to use ganis, use them consistently throughout the NPC.
Reply With Quote
  #6  
Old 10-19-2009, 06:51 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
ok, so i just did it in gs1, simple
if playertouchsme setcharani 0, gani;
it works, but the problem is the gani is blank. actually it shows the npc char instead, which isnt even in the gani at all.

so.... for some reason the gani is blank. Its not when i try it offline in graalshop. any ideas?
all the images in the gani are also in the images folder on rc, the gani is in a gani folder. Ive also tried putting the images for the gani in the gani folder too, nothing changes.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...



Last edited by sssssssssss; 10-19-2009 at 07:20 AM..
Reply With Quote
  #7  
Old 10-20-2009, 08:01 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Anyone have any ideas on this? A simple setcharani wont even work, the stupid red suit newbie is the only thing that shows up in the gani online at all. -_-
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #8  
Old 10-20-2009, 02:43 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
if (playertouchsme) setcharani armageddondoor,;

Should work fine offline. It's hard to say though, you haven't provided a gani.
Reply With Quote
  #9  
Old 10-20-2009, 09:29 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Oh sorry. Bit out of my mind lately. I read that you have to have the images in the same folder as the gani to test offline, so here is a zip.

again, i used that, it wont work. I did that in gs2 online as well, wont work. Its empty, at least I think, for whatever odd reason. It's been a good 5 years or something since I touched a gani, so probably something easy im missing.
Attached Files
File Type: zip armageddon-door1.zip (115.8 KB, 178 views)
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #10  
Old 10-21-2009, 02:50 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
this.dir = 2;

Make sure if you do a Gani such as this where you only want one direction that you change "Single dir" to "true" in the right bar to eliminate having to set the NPC's direction, and make sure nothing else is setting the NPC back to it's old Gani.
Attached Files
File Type: gani armageddondoor.gani (461 Bytes, 188 views)
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #11  
Old 10-22-2009, 10:53 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Its just going blank now.
the only thing the leven npc has is the door image in the image section for npcs, and this:

PHP Code:
//#CLIENTSIDE
function onPlayerTouchsMe(){
  
setcharani("armageddondoor"NULL);

Still just blank though. I double checked for the thousandth time, but the sound in the gani is in the sound folder for the server online, and the images for the gani are in the images folder for the server online, and the gani is uploaded as well.

any other ideas? It is on the gmap, if that matters at all.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #12  
Old 10-23-2009, 01:20 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
The find command showed
ganis/armageddondoor.gani: not downloadable
The folder configuration was slightly wrong, all folders there must be relative to the levels folder.

I'm wondering if it should be possible to add folder configuration lines like "file */*/*". The server is scanning all levels/ folders anyway.
Reply With Quote
Reply

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 On
HTML code is Off

Forum Jump


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


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