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 09-26-2002, 09:06 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Image's in scripts help.

I've been trying to rescript pearl diving to include black and pink pearls, since Loriel pretty much destroyed pearl diving, and Rabid said it might get uploaded if I made it.

Anyways, I've got everything done except that I can't get the new images to show up, mostly because I think I might be missing part of the script (even though everything else seems to work fine)

The only problem is that nowhere in the script does pearl1.gif show up.

So, I must ask, how is the script showing the image pearl1.gif.
__________________
Reply With Quote
  #2  
Old 09-26-2002, 09:19 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
...use ganis and params
__________________
GONE, BAI
Reply With Quote
  #3  
Old 09-26-2002, 09:28 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally posted by Graal2001_NAT
...use ganis and params
That's impossible, I changed the name of pearl1.gif to pearlohi.gif and the pearl image stopped appearing.
__________________
Reply With Quote
  #4  
Old 09-26-2002, 09:31 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
this.pearltype = 1;
setcharani whatever,#v(this.pearltype);

make the sprite that shows pearls PARAM1 and make the pearl image sprite# 1
__________________
GONE, BAI
Reply With Quote
  #5  
Old 09-26-2002, 09:49 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
NPC Code:

if (timeout) {
if (random(0,1)<this.popen) {
this.pearl = (random(0,1)<this.ppearl);
if (this.pearl==true)
setstring this.pearlsprite,1;
else
setstring this.pearlsprite,;

setcharani seashell_open,#s(this.pearlsprite);
sleep 0.1;
this.isopen = true;
sleep 0.9;
setcharani seashell_idle,#s(this.pearlsprite);
sleep random(3,6);
setcharani seashell_close,#s(this.pearlsprite);
sleep 0.2;
this.isopen = false;
sleep 0.8;
setcharani seashell_closed,;
}



Does that work?
__________________
Reply With Quote
  #6  
Old 09-26-2002, 10:09 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Your formatting sucks, but it looks ok... I could be wrong.
__________________
- R0bin
Reply With Quote
  #7  
Old 09-26-2002, 10:12 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
isnt that the 2k1 script...
__________________
GONE, BAI
Reply With Quote
  #8  
Old 09-26-2002, 10:59 PM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally posted by Graal2001_NAT
isnt that the 2k1 script...
Yes sir it is.

Quote:
Originally posted by R0b1n-NPC
Your formatting sucks, but it looks ok... I could be wrong.
I see no indentation errors...

Oh, and I know that it's okay, I want to know if it would show pearl1.gif.
__________________

Last edited by Googi; 09-26-2002 at 11:26 PM..
Reply With Quote
  #9  
Old 09-27-2002, 12:13 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
It all depends on the ganis googi..

Why not make new ones with param1 or attributes?
__________________
- R0bin
Reply With Quote
  #10  
Old 09-27-2002, 03:08 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally posted by R0b1n-NPC
It all depends on the ganis googi..

Why not make new ones with param1 or attributes?
That's not what I'm asking though...

Gah...

Okay, this is the entire ORIGIONAL (One I didn't modify), pearl clam shell script.

NPC Code:

if (created) {
this.pdefopen = 0.1;
this.delay = 10;
this.ppearl = 0.2;
}
if (created) {
drawunderplayer;
setstring this.pearlsprite,;
showcharacter;
setcharani seashell_closed,;

this.popen = this.pdefopen;
timeout = random(this.delay*0.8,this.delay*1.2);
}
if (timeout) {
if (random(0,1)<this.popen) {
this.pearl = (random(0,1)<this.ppearl);
if (this.pearl==true)
setstring this.pearlsprite,1;
else
setstring this.pearlsprite,;

setcharani seashell_open,#s(this.pearlsprite);
sleep 0.1;
this.isopen = true;
sleep 0.9;
setcharani seashell_idle,#s(this.pearlsprite);
sleep random(3,6);
setcharani seashell_close,#s(this.pearlsprite);
sleep 0.2;
this.isopen = false;
sleep 0.8;
setcharani seashell_closed,;
}
this.popen = this.pdefopen;

timeout = random(this.delay*0.8,this.delay*1.2);
}
if (actiondivekick && strequals(#s(client.race),bomy)) {
this.popen += 0.025;
}
if (playertouchsme && strequals(#s(client.race),bomy) && this.isopen==true && this.pearl==true) {
this.pearl = false;
setstring this.pearlsprite,;
setcharani #m(-1),;

pearls = strtofloat(#s(pearls))+1;
setstring pearls,#v(pearls);
setstring client.pearls,#s(pearls);
setstring server.gavepearls,#v(strtofloat(#s(server.gavepear ls))+1);
setani bomy_gotpearl,;
say2
Wow this is one of the#b
valueable white pearls!#b
You have now #s(pearls) pearls.;
}



Now, basicly, I'm asking where in that script does it tell the clamshell to show pearl1.gif.
__________________
Reply With Quote
  #11  
Old 09-27-2002, 03:31 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally posted by Kaimetsu
setcharani seashell_open,#s(this.pearlsprite);

READ WITH YOUR EYES THINK WITH YOUR BRAIN
Yes, I noticed that, however, the fact that pearlsprite is defined to 1, and not pearl1 makes me wonder how it could display the pearl1.gif file.
__________________
Reply With Quote
  #12  
Old 09-27-2002, 03:50 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
duh

setcharani blah,pearl#v(pearlsprite).gif;
:edit
you really are an idiot arent you?
edit:
__________________
- R0bin
Reply With Quote
  #13  
Old 09-27-2002, 04:01 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
why are you posting 2k1 scripts? -_-
__________________

Reply With Quote
  #14  
Old 09-27-2002, 04:57 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally posted by R0b1n-NPC
pearl#v(pearlsprite).gif;
I don't see that anywhere in the script.

Quote:
Originally posted by CheeToS2
why are you posting 2k1 scripts? -_-
In order to give people trying to help me a better understanding of my problem, perhaps?

And besides the pearl script is already all over the forums? (As are many other 2K1 scripts I imagine), anyone can find it using the search utility.
__________________
Reply With Quote
  #15  
Old 09-27-2002, 04:47 PM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Googi's an idiot dude, no point trying to explain, he just wants someone to do it for him.
__________________
- R0bin
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 12:27 AM.


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