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.