Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   The Big Bang. (https://forums.graalonline.com/forums/showthread.php?t=7933)

Brady2 07-23-2001 11:40 PM

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.

grim_squeaker_x 07-23-2001 11:42 PM

Well you put in an if (isleader) and it'll only put one.

Brady2 07-23-2001 11:44 PM

Jadis:

Well that was simple enough.
Thanks again M'lady.

Solareon 07-29-2001 05:54 AM

AAAAHHHHHHHHHHHHHH
 
DON'T EVER USE PUTNPC!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!

LiquidIce00 07-29-2001 09:14 AM

use if u dont got other choice on free servers
p2p servers dont matter..

CyanideSR71 07-31-2001 07:01 AM

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

DuckyJ 08-02-2001 03:04 AM

Ummmm...
Putnpc pros and cons
pros - easy to use and great for non-p2ps

cons - will lag the server a bit

]


All times are GMT +2. The time now is 03:40 AM.

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