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 10-13-2001, 07:26 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Flag: Created :: Value: Neato

Ok, I just realized that you can do if (created && isweapon) to check if the script was just turned into a weapon...But...I wonder if you can use the same thing to check if a player logged on to graal? or is it not "creating" the weapons in your list every time you log on?
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #2  
Old 10-13-2001, 07:31 AM
T3CK T3CK is offline
Banned
Join Date: Aug 2001
Location: Atlanta, GA
Posts: 557
T3CK is on a distinguished road
Send a message via AIM to T3CK Send a message via MSN to T3CK Send a message via Yahoo to T3CK
That might work although im not sure sorry =[
You would have to ask stefan for a true anwser (or Kamistu he is also very smart with current scripting)
Reply With Quote
  #3  
Old 10-13-2001, 07:46 AM
WeirdmanI9 WeirdmanI9 is offline
Banned
WeirdmanI9's Avatar
Join Date: Mar 2001
Location: Laying Low From The Police
Posts: 1,816
WeirdmanI9 is on a distinguished road
Send a message via AIM to WeirdmanI9 Send a message via Yahoo to WeirdmanI9
Try using the level in a string for the player and then warp the player to that level automatically if they enter the level, and use if (playerenters && isweapon) it probably won't work because I'm only stabbing at it, but it's worth a try.
Reply With Quote
  #4  
Old 10-13-2001, 08:49 AM
toad1413 toad1413 is offline
toad@graal:~$ ./Oldbie
Join Date: May 2001
Location: Aust.
Posts: 3,819
toad1413 is on a distinguished road
Send a message via ICQ to toad1413
Quote:
Originally posted by T3CK
That might work although im not sure sorry =[
You would have to ask stefan for a true anwser (or Kamistu he is also very smart with current scripting)
Kamistu? That's another new one.

So far he's been called: Kai (by me ), Kammy, Kamistu, Kamina, Kaimetus and very rarely, Kaimetsu.
__________________
Creator of the original 'spam' icon. Worst mistake I ever made on these forums.
Reply With Quote
  #5  
Old 10-13-2001, 09:43 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Yes. Kaismestu is very good...
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #6  
Old 10-13-2001, 09:58 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
Re: Flag: Created :: Value: Neato

Quote:
Originally posted by Xaviar
Ok, I just realized that you can do if (created && isweapon) to check if the script was just turned into a weapon...But...I wonder if you can use the same thing to check if a player logged on to graal? or is it not "creating" the weapons in your list every time you log on?
The problem you run into with that is that when the player gets the weapon the first time it'll run that too. Set a flag when inside that check, and add the flag to the check, and it should work:
NPC Code:

if (created&&isweapon&&myflag) {
...
} else {
set myflag;
}



wow, first post in over a month...
Reply With Quote
  #7  
Old 10-13-2001, 07:18 PM
T3CK T3CK is offline
Banned
Join Date: Aug 2001
Location: Atlanta, GA
Posts: 557
T3CK is on a distinguished road
Send a message via AIM to T3CK Send a message via MSN to T3CK Send a message via Yahoo to T3CK
Re: Re: Flag: Created :: Value: Neato

Quote:
Originally posted by kyle0654

The problem you run into with that is that when the player gets the weapon the first time it'll run that too. Set a flag when inside that check, and add the flag to the check, and it should work:
NPC Code:

if (created&&isweapon&&myflag) {
...
} else {
set myflag;
}



wow, first post in over a month...
=)
Congrats on your first post in over a month!
Reply With Quote
  #8  
Old 10-14-2001, 07:49 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Re: Re: Flag: Created :: Value: Neato

Quote:
Originally posted by kyle0654

The problem you run into with that is that when the player gets the weapon the first time it'll run that too. Set a flag when inside that check, and add the flag to the check, and it should work:
NPC Code:

if (created&&isweapon&&myflag) {
...
} else {
set myflag;
}



wow, first post in over a month...
So it will work to check when a player logs on then?
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #9  
Old 10-14-2001, 08:04 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
the flag created is ran every time the player logs on
Reply With Quote
  #10  
Old 10-14-2001, 08:05 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by btedji
the flag created is ran every time the player logs on
"Neato."
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #11  
Old 10-14-2001, 08:06 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
if(created)

is the same as

if(npc was initialized)
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 02:32 PM.


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