View Single Post
  #31  
Old 05-12-2002, 11:06 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 iniquitus
kicking them doesn't get you pearls any faster
Not true...

NPC Code:

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.;
}



Owned.
__________________
Reply With Quote