Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Dumb Scripter (https://forums.graalonline.com/forums/showthread.php?t=10107)

Aknts 08-22-2001 03:15 AM

Dumb Scripter
 
I feel dumb asking this but is there a script so players cant get Arrows and Bombs like if they touch it it stays 0 without using timeouts if not what is it with timeouts

Falcor 08-22-2001 03:17 AM

Please make your post understandalbE?

LiquidIce00 08-22-2001 03:17 AM

if (playerbombs>0||playerdarts>0) { playerdarts=0;playerbombs=0; }

Falcor 08-22-2001 03:18 AM

GO AWAY LIQUID *****s shotgun*

LiquidIce00 08-22-2001 03:25 AM

Quote:

Originally posted by Falcor
GO AWAY LIQUID *****s shotgun*
u got issues

Falcor 08-22-2001 03:28 AM

GIMME YOUR WALLET PUNK.

LiquidIce00 08-22-2001 03:29 AM

Quote:

Originally posted by Falcor
GIMME YOUR WALLET PUNK.
all i got is my license and like 10 bux and a trojan of course

Aknts 08-22-2001 03:35 AM

Liquid that don't work. :\

Aknts 08-22-2001 03:37 AM

It does but it stalls like 30 secs

Falcor 08-22-2001 03:38 AM

NPC Code:

while(playerdarts>0 || playerbombs>0) {
playerdarts = 0;
playerbombs= 0;
}




try that?

Aknts 08-22-2001 03:38 AM

Actually nevermind it don't work at all.

Aknts 08-22-2001 03:39 AM

Quote:

Originally posted by Falcor
NPC Code:

while(playerdarts>0 || playerbombs>0) {
playerdarts = 0;
playerbombs= 0;
}




try that?

Didnt work

Falcor 08-22-2001 03:41 AM

Well what can i say. Good-ol time outs are the only thing that will help you

if(playerenters || timeout) {
timeout = 0.05;
if(playerdarts > 0 || playerbombs > 0) {
playerdarts = 0;
playerbombs = 0;
}
}

Thats your only other option i guess

Aknts 08-22-2001 03:43 AM

Yeah thanx :-)

Aknts 08-22-2001 03:48 AM

Quote:

Originally posted by Falcor
Well what can i say. Good-ol time outs are the only thing that will help you

if(playerenters || timeout) {
timeout = 0.05;
if(playerdarts > 0 || playerbombs > 0) {
playerdarts = 0;
playerbombs = 0;
}
}

Thats your only other option i guess


Dude check your PM's

General 08-22-2001 04:59 AM

FALADOS IS WRONG AGAIN

while (nobombsandarrows) {
playerdarts=0;
playerbombs=0;
sleep .05;
}

so much better, less chance of glitching...

LiquidIce00 08-22-2001 05:02 AM

Quote:

Originally posted by General
FALADOS IS WRONG AGAIN

while (nobombsandarrows) {
playerdarts=0;
playerbombs=0;
sleep .05;
}

so much better, less chance of glitching...

=\

General 08-22-2001 06:25 AM

I think people are starting to dislike me, sigh, time to switch to nice mode

"How are you today liquidice?"

Poogle 08-23-2001 04:48 AM

If its posible try using a weapon like isweapon I like that and if its p2p im almost sure it would do that but WHY THE HECK DONT YEH WANT BOMBS OR ARROWS? and if you really hate them DONT MAKE THEM but i guess the player HAS to mave that 15 bombs(unuseful) and 5 arrows(it should be 15 to these are useful)

KJS 08-23-2001 04:54 AM

well one reason might be your making your own arrow and bomb script but you dont want to let the person start out with arrows or bombs when they die...

I am making a weapon on frolic (an arrow thingy) but it doesn't use the arrows from the arrow bar and to make people less confuzed I wouldn't want them to die and everyone grabs tehre arrows and bombs and be like wtf it didn't add it...

well I haven't started scripting it but it iwll take me like 5 seconds to script lol...

nyghtGT 08-23-2001 08:07 AM

do this ...
 
just make your script cheezy yet durable ...
while (playerbombs>0) {
playerbombs-=1;
}
while (playerdarts>0) {
playerdarts-=1;
}
http://www.deceptiononline.f2s.com/nyghtdoll.gif

08-23-2001 12:02 PM

my god you people.. always doing things the hardway ;p

LiquidIce was right ;/



if(playerdarts>0 || playerbombs>0) {
playerbombs= 0;
playerdarts= 0;
}

Falcor 08-23-2001 12:27 PM

IF you read. It did not work. niether did the WHILE LOOP wich is SUPOSE TO LOOP but DID NOT.

08-25-2001 03:36 AM


umm... try theses:

NPC Code:

if(playerdarts>0 || playerbombs>0) {
darts-bombs()
function darts-bombs(){
playerbombs-=1;
playerdarts-=1;
}
}



NPC Code:

if (timeout||playerenters) {
playerbombs=0;
playerdarts=0;
timeout=.05;
}



NPC Code:

if(playerdarts>0 || playerbombs>0) {
this.action=true;
if(this.action=true) {
playerbombs=0;
playerdarts=0;
}
}




grim_squeaker_x 08-25-2001 03:39 AM

Quote:

Originally posted by Falcor
IF you read. It did not work. niether did the WHILE LOOP wich is SUPOSE TO LOOP but DID NOT.
The while loop for that one didn't work since it stopped performing because you had no bombs/arrows and wasn't called again afterwards.

CyanideSR71 08-25-2001 03:48 AM

Instead of trying to fix this little problem, why don't we ask why we can't use timeouts?

mhermher 08-25-2001 10:06 PM

Quote:

Originally posted by IcePick_2001

umm... try theses:

NPC Code:

if(playerdarts>0 || playerbombs>0) {
darts-bombs()
function darts-bombs(){
playerbombs-=1;
playerdarts-=1;
}
}



NPC Code:

if (timeout||playerenters) {
playerbombs=0;
playerdarts=0;
timeout=.05;
}



NPC Code:

if(playerdarts>0 || playerbombs>0) {
this.action=true;
if(this.action=true) {
playerbombs=0;
playerdarts=0;
}
}




Where you got those????



*cough* thief *cough*

08-25-2001 10:24 PM

I made them you stupid ass *****!

Vinvect 08-26-2001 08:16 AM

these totally work
NPC Code:

// NPC made by Darkyoshi1
if (playerenters) {
toweapons -No -Bombs -And -Arrows;
}
if(isweapon){
playerbombs==0;
playerdarts==0;
}


and i made this by myself so dont balme me that i stealed it!!!!!!!!!!!!!!!!!!!!!!!!!!!


All times are GMT +2. The time now is 01:36 PM.

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