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 12-24-2001, 01:44 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Pirate crew gate

Does anyone know how the pirate crew gate works? I need to make a similare script for a guildhouse.
__________________
Reply With Quote
  #2  
Old 12-24-2001, 01:46 AM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
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.
Reply With Quote
  #3  
Old 12-24-2001, 02:35 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Use move and strequals (#c and #g)
Reply With Quote
  #4  
Old 12-24-2001, 02:39 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
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"
__________________
Reply With Quote
  #5  
Old 12-24-2001, 02:59 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to 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.



Can anyone tell me how to fix this?

Or does the same thing happen to pirate crew and Dustari?
__________________
Reply With Quote
  #6  
Old 12-24-2001, 09:23 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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.



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
Reply With Quote
  #7  
Old 12-24-2001, 10:06 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
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
Reply With Quote
  #8  
Old 12-24-2001, 11:00 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
every server wither p2p or non p2p is limited to the maximum of "95" server strings/variables/flags.
Reply With Quote
  #9  
Old 12-24-2001, 12:06 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #10  
Old 12-24-2001, 02:55 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
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.
Reply With Quote
  #11  
Old 12-24-2001, 06:06 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
We have maybe 25 on N-Pulse...
Reply With Quote
  #12  
Old 12-24-2001, 06:24 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
OMG NOT THE DREADED "HOW DO I MAKE THIS SCRUOPT PLEASE POS THE ENTIRE SCRUPT" Question!!!! AAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHH!!!!! RUN FOR THE HILLS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
__________________

subliminal message: 1+1=3
Reply With Quote
  #13  
Old 12-24-2001, 06:30 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Ok, sir! Run, forest, run!
Reply With Quote
  #14  
Old 12-24-2001, 07:04 PM
Birdbird_0 Birdbird_0 is offline
am yum
Birdbird_0's Avatar
Join Date: Mar 2001
Location: California
Posts: 4,436
Birdbird_0 is on a distinguished road
Send a message via AIM to Birdbird_0
I run to my bed *shaking*
Reply With Quote
  #15  
Old 12-24-2001, 09:48 PM
Xythar Xythar is offline
Banned
Xythar's Avatar
Join Date: Aug 2001
Location: NOT (quite) HERE
Posts: 1,241
Xythar is on a distinguished road
Send a message via AIM to Xythar Send a message via Yahoo to Xythar
Bah. I'd just use a simple gani for it. Much easier to script, and less lag.
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 06:04 AM.


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