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 07-23-2001, 11:40 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
The Big Bang.

Jadis:

Hello young followers *cough*

Ok well.. I am not asking for a script so don't flame me like so many of you have done to others.

For the Gralat system. How do you remove the rupees and place gralats without more than one appearing. Can it be done without the NPCServer? I have been told it can.

Let's say two players have a weapon like this.

NPC Code:

if (timeout) {
for (i=0;i<itemscount;i++) {
if (items[i].type==<greenrupeeidwhateveritis>) {
putnpc coin.gif,coin1.txt,items[i].x,items[i].y;
removeitem i;
}
}
timeout = .05;
}



Anyway wouldn't two coins appear there if two players were in the level?

Please respond with questions and/or answers.
Reply With Quote
  #2  
Old 07-23-2001, 11:42 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Well you put in an if (isleader) and it'll only put one.
__________________

Reply With Quote
  #3  
Old 07-23-2001, 11:44 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Jadis:

Well that was simple enough.
Thanks again M'lady.
Reply With Quote
  #4  
Old 07-29-2001, 05:54 AM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
AAAAHHHHHHHHHHHHHH

DON'T EVER USE PUTNPC!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #5  
Old 07-29-2001, 09:14 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
use if u dont got other choice on free servers
p2p servers dont matter..
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #6  
Old 07-31-2001, 07:01 AM
CyanideSR71 CyanideSR71 is offline
Registered User
CyanideSR71's Avatar
Join Date: Jun 2001
Location: Canada
Posts: 460
CyanideSR71 is on a distinguished road
Or you could use arrays and other crap to script something that works just as good instead of putnpc... It would be easy to use to considering the Graalian rupee system uses arrays...
__________________
Cyanide SR71
Former Shadow Dragon
Co-Owner of what was Murasamune
Reply With Quote
  #7  
Old 08-02-2001, 03:04 AM
DuckyJ DuckyJ is offline
Registered User
Join Date: Jun 2001
Location: Maryland
Posts: 93
DuckyJ is on a distinguished road
Send a message via ICQ to DuckyJ Send a message via AIM to DuckyJ
Ummmm...
Putnpc pros and cons
pros - easy to use and great for non-p2ps

cons - will lag the server a bit

]
__________________
"Death is like being locked in a closet - locked away from life." - Me

"Sympathy is a Virtue, but only if your on the receiver side, otherwise, it's just another hole in your wallet." - Me

Ducky Vs The Devil
Devil:Give me your soul and I will give you anything.
Ducky:What happens when I give you my soul?
Devil:When you die you go straight to hell, no if ands or buts, but while your alive you get anything you want!
Ducky:Okay*signs soul certificate entitling the Devil to his soul*
Devil:Now whats the first thing you want?
Ducky:Too live forever.



Bill Clinton VS the Big Dubya
Bill:I get alot of *****.
Bush:I try to lower the eco-projects to keep gas in your car.
Bill:Im Democrat and I hate Doctors.
Bush:Im Republican and my daughter drinks alcohol and Im Proud of it!
Bill:Atleast I get some.
Bush:Look who won the election, then look at who almost got Impeached!
Bill:Whats Impeached? A Peach that was Imed?
Bush: Democraps...oops, did I just say that?
Bush:Monicas a fat pig.
Bill:SHES ONLY 200 POUNDS!
visit my LiveJournal
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 11:51 PM.


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