Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Pirate crew gate (https://forums.graalonline.com/forums/showthread.php?t=19507)

Googi 12-24-2001 01:44 AM

Pirate crew gate
 
Does anyone know how the pirate crew gate works? I need to make a similare script for a guildhouse.

LilNiglet 12-24-2001 01:46 AM

Re: Pirate crew gate
 
Quote:

Originally posted by Googi
Does anyone know how the pirate crew gate works? I need to make a similare script for a guildhouse.
VERY VERY easy.

But i dont feel like doing it.

Python523 12-24-2001 02:35 AM

Use move and strequals (#c and #g)

Googi 12-24-2001 02:39 AM

Damn, I almost had my picture in someone's sig...

In Python's sig I'm covered up by the message "You have been added to Events Team"

Googi 12-24-2001 02:59 AM

Okay...

I made the script...
NPC Code:

if (created) {
setimg door.png;
setshape 1,32,32;
}
if (strequals(#c,open door)&&strequals(#g,Dragon Knights)) {
move 2,0,99999999999,none;
}
if (strequals(#c,close door)&&strequals(#g,Dragon Knights)) {
move -2,0,99999999999,none;
}


Here is the problem.

When the players says open door more then once, without closing the door, the door just keeps on moving until it reaches the end of the level, the same thing goes with close door.

x_x

Can anyone tell me how to fix this?

Or does the same thing happen to pirate crew and Dustari?

Python523 12-24-2001 09:23 AM

Quote:

Originally posted by Googi
Okay...

I made the script...
NPC Code:

if (created) {
setimg door.png;
setshape 1,32,32;
}
if (strequals(#c,open door)&&strequals(#g,Dragon Knights)) {
move 2,0,99999999999,none;
}
if (strequals(#c,close door)&&strequals(#g,Dragon Knights)) {
move -2,0,99999999999,none;
}


Here is the problem.

When the players says open door more then once, without closing the door, the door just keeps on moving until it reaches the end of the level, the same thing goes with close door.

x_x

Can anyone tell me how to fix this?

Or does the same thing happen to pirate crew and Dustari?

It doesn't happen, you could use a server.string to fix that problem easy enough, except when you get too many server.strings, you lag the whole server

Faheria_GP2 12-24-2001 10:06 AM

NPC Code:

if (created) {
setimg door.png;
setshape 1,32,32;
}
if (strequals(#c,open door)&&strequals(#g,Dragon Knights) && this.open=0) {
move 2,0,99999999999,none;
this.open=1;
}
if (strequals(#c,close door)&&strequals(#g,Dragon Knights) && this.open=1) {
move -2,0,99999999999,none;
this.open=0;
}



There ya go, have fun

royce 12-24-2001 11:00 AM

every server wither p2p or non p2p is limited to the maximum of "95" server strings/variables/flags.

Python523 12-24-2001 12:06 PM

Quote:

Originally posted by royce
every server wither p2p or non p2p is limited to the maximum of "95" server strings/variables/flags.
With 95 server strings/vars/flags, you wouldn't be able to walk it'd be so laggy

royce 12-24-2001 02:55 PM

i am not saying 95 for each flags vars and such...95 altogether and i did not say anything about it not being laggy. I was reffering that you make sure that you do not go over the laggy level limit and i just brought up the info for the heck of it.

Slaktmaster 12-24-2001 06:06 PM

We have maybe 25 on N-Pulse...

Falcor 12-24-2001 06:24 PM

OMG NOT THE DREADED "HOW DO I MAKE THIS SCRUOPT PLEASE POS THE ENTIRE SCRUPT" Question!!!! AAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHH!!!!! RUN FOR THE HILLS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Slaktmaster 12-24-2001 06:30 PM

Ok, sir! Run, forest, run!

Birdbird_0 12-24-2001 07:04 PM

I run to my bed *shaking*

Xythar 12-24-2001 09:48 PM

Bah. I'd just use a simple gani for it. Much easier to script, and less lag.


All times are GMT +2. The time now is 09:16 AM.

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