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 10-07-2001, 08:46 AM
Vinvect Vinvect is offline
Registered User
Join Date: Aug 2001
Location: U.S.A,California,Milpitas,In A House,In Room,On A Seat,On a Computer
Posts: 157
Vinvect is on a distinguished road
Send a message via ICQ to Vinvect Send a message via Yahoo to Vinvect
Angry Help With Rupee Dropper

how can drop rupees just leik the one in N-Pulse?
plz tell me!
tha one leik if u say 1000 then it lays a gold rupee 1 at a time,
and stuff. how can i do that? and it takes away money too. OH PLEEZ, TELL ME!!
__________________
==========================
I Script Really Good
&
Looking For A NAT Job
==========================
Quote:
That's like a big lugee!
-Evolution The Movie
Quote:
Ha Ha Ha Give It Up!
-Cyrus From Bomberman
I'm not a Bomy anymore.
I'm a MUTATED BROCLI MONSTER!
(or SIGN MONSTER)
If you make me angry,
I'LL EAT YOU WHOLE!
ME, MUTATED BROCLI MONSTER MASTER
(or SIGN MONSTER)
WILL EAT YOU ALL UP!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Quest Valley Owner
Looking For Staff
Pm Me
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
O.o Still Have My Braen Damaegd o.O


Thanks To Esiah, He Made This For Me!
Thanks Esiah!
Reply With Quote
  #2  
Old 10-07-2001, 09:59 AM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
[ Delph Inc. ]

I don't really get what you mean by saying 'one by one' because I haven't seen it on N-Pulse...but I'll try help you:

if (playerchats) tokenize #c;
if (strequals(#t(0),setrupee)) setstring rupeedrop,#t(1);
timeout=0.2;
if (timeout) {
for (i=0;i<#s(rupeedrop)/100;i++) {
lay goldrupee;
}
timeout=0.2;
}

That should work...just say: setrupee <amount> and it should lay a gold rupee until it adds to the number...you would be able to change this so it fits red, blue and green rupees too.
__________________
Xerphier Dintch
Featuring
Reply With Quote
  #3  
Old 10-08-2001, 02:45 AM
Vinvect Vinvect is offline
Registered User
Join Date: Aug 2001
Location: U.S.A,California,Milpitas,In A House,In Room,On A Seat,On a Computer
Posts: 157
Vinvect is on a distinguished road
Send a message via ICQ to Vinvect Send a message via Yahoo to Vinvect
what i eman is it lays one rupee then it slppp,1 02 sleep.2 then it lays another one then again it sleeps then lays another one. thanks anyway!
__________________
==========================
I Script Really Good
&
Looking For A NAT Job
==========================
Quote:
That's like a big lugee!
-Evolution The Movie
Quote:
Ha Ha Ha Give It Up!
-Cyrus From Bomberman
I'm not a Bomy anymore.
I'm a MUTATED BROCLI MONSTER!
(or SIGN MONSTER)
If you make me angry,
I'LL EAT YOU WHOLE!
ME, MUTATED BROCLI MONSTER MASTER
(or SIGN MONSTER)
WILL EAT YOU ALL UP!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Quest Valley Owner
Looking For Staff
Pm Me
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
O.o Still Have My Braen Damaegd o.O


Thanks To Esiah, He Made This For Me!
Thanks Esiah!
Reply With Quote
  #4  
Old 10-08-2001, 10:02 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

?

if (playerchats && startswith(layrupees,#c)){
tokenize #c;
this.lay=#t(1);
timeout=1;
}
if (timeout && playerrupees>this.lay-1){
if (this.lay>100){
lay goldrupee;
this.lay-=100;
playerrupees-=100;
break;
}
if (this.lay>30){
lay redrupee;
this.lay-=30;
playerrupees-=30;
break;
}
if (this.lay>5){
lay bluerupee;
this.lay-=5;
playerrupees-=5;
break;
}
if (this.lay>1){
lay greenrupee;
this.lay-=1;
playerrupees-=1;
break;
}
if (this.lay>0)timeout=1;
}

Now watch Kaimetsu come along and raise hell about "inefficientcy" XD
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #5  
Old 10-08-2001, 02:27 PM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
Quote:
Originally posted by Vinvect
what i eman is it lays one rupee then it slppp,1 02 sleep.2 then it lays another one then again it sleeps then lays another one. thanks anyway!
[ Delph Inc. ]

NPC Code:

if (created) {
i = 0;
timeout=0.2;
}
if (playerchats) tokenize #c;
if (strequals(#t(0),setrupee)) setstring rupeedrop,#t(1);
if (timeout) {
if (i<#s(rupeedrop)/100) {
lay goldrupee;
i++;
}
timeout=0.2;
}



You could also make it lay green, blue or red rupees as well as gold for more efficiency, if a player such as says something like 'setrupee 136'
__________________
Xerphier Dintch
Featuring
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 07:11 PM.


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