Graal Forums  

Go Back   Graal Forums > PlayerWorlds > Bomy Island Main Forum
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
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
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 09:53 PM.


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