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 11-27-2001, 11:07 AM
Draktha Draktha is offline
Registered User
Join Date: Nov 2001
Location: home in front of my computer lol
Posts: 51
Draktha is on a distinguished road
Send a message via AIM to Draktha Send a message via Yahoo to Draktha
Question Gralats Offline

i am trying to make an offline version of the gralats thing. i know i have to put it in an NPC to make it work but.... i dont know how to go about doing that... some one plz point me in the right direction....
__________________
I think this pretty much sums me up...
Reply With Quote
  #2  
Old 11-28-2001, 03:14 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
it probbly wont work, it might but i dont know if putnpc works offline, and i know putnpc2 does not work offline (if ur making for p2p)
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #3  
Old 11-28-2001, 04:22 AM
chime chime is offline
Registered User
Join Date: Sep 2001
Posts: 132
chime is on a distinguished road
Send a message via ICQ to chime Send a message via AIM to chime
well it depends... I scripted my own money system and it works fine offline
Reply With Quote
  #4  
Old 11-28-2001, 04:51 AM
Faheria_LAT1 Faheria_LAT1 is offline
Seraphim Warrior
Faheria_LAT1's Avatar
Join Date: Oct 2001
Location: QUÉBEC!!!!!!1
Posts: 2,040
Faheria_LAT1 is on a distinguished road
Send a message via ICQ to Faheria_LAT1 Send a message via AIM to Faheria_LAT1
TB3 made that a long time ago.. and then Elvenlands stole it with the Debugger "bug"
__________________


"I like movies where the guy shoots stuff, and then it blows up, and then this other guy shoots him, and then the first guy drives through a Coke sign, and it blows up, and the car flips over in slow motion, and then the guy gets out and pops his arm back in place, and then they fight 'cause they're out of bullets, and the guy says something like "This is Walmart, boy...and you just got price-checked!" - Broken Saints

"There is no greater sorrow than to recall in misery when we were happy" - Dante

"If you know yourself but not the enemy, for every victory gained you will also suffer a defeat" - Sun Tzu, The Art Of War

"Kingdoms ...rising without word. Collapsing without warning." - Broken Saints

Account now used by Silver and Mmmmkay
yoshee15 account has run out :[[[
Reply With Quote
  #5  
Old 11-28-2001, 06:23 AM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
On a p2p playerworld, are the gralats placed on the level by scripts, or the server program?
Reply With Quote
  #6  
Old 11-28-2001, 06:25 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Quote:
Originally posted by Andor_NPC-Admin1
On a p2p playerworld, are the gralats placed on the level by scripts, or the server program?
Its a script but i believe due to its index it is in everylevel. Check the npc server doc , it tells a little bit about it I think
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #7  
Old 11-28-2001, 07:11 AM
chime chime is offline
Registered User
Join Date: Sep 2001
Posts: 132
chime is on a distinguished road
Send a message via ICQ to chime Send a message via AIM to chime
i have the money script if you want to see it.
Reply With Quote
  #8  
Old 11-28-2001, 09:15 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Different money is cool.
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #9  
Old 11-28-2001, 09:51 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Faheria_LAT1
TB3 made that a long time ago.. and then Elvenlands stole it with the Debugger "bug"
the debugger was awesome ...
Reply With Quote
  #10  
Old 11-28-2001, 09:51 AM
Draktha Draktha is offline
Registered User
Join Date: Nov 2001
Location: home in front of my computer lol
Posts: 51
Draktha is on a distinguished road
Send a message via AIM to Draktha Send a message via Yahoo to Draktha
Quote:
Originally posted by chime
i have the money script if you want to see it.
Do you mean the money script that places money or the script that is in each of the gralats?
__________________
I think this pretty much sums me up...
Reply With Quote
  #11  
Old 11-28-2001, 09:53 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
i have a gralat system i tested on Andor that works pretty good ...
Reply With Quote
  #12  
Old 11-29-2001, 07:38 AM
Draktha Draktha is offline
Registered User
Join Date: Nov 2001
Location: home in front of my computer lol
Posts: 51
Draktha is on a distinguished road
Send a message via AIM to Draktha Send a message via Yahoo to Draktha
Quote:
Originally posted by nyghtGT
i have a gralat system i tested on Andor that works pretty good ...
AH! can I see it?
__________________
I think this pretty much sums me up...
Reply With Quote
  #13  
Old 11-29-2001, 07:44 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 nyghtGT
i have a gralat system i tested on Andor that works pretty good ...
Correct me if I'm wrong but I think the gralats are embedded into the NPC Server, you don't even have to script it or ask Stefan for the script since the NPC Server automatically does it
Reply With Quote
  #14  
Old 11-29-2001, 07:48 AM
Draktha Draktha is offline
Registered User
Join Date: Nov 2001
Location: home in front of my computer lol
Posts: 51
Draktha is on a distinguished road
Send a message via AIM to Draktha Send a message via Yahoo to Draktha
Quote:
Originally posted by Python523

Correct me if I'm wrong but I think the gralats are embedded into the NPC Server, you don't even have to script it or ask Stefan for the script since the NPC Server automatically does it
Yeah, but you need a system NPC for non-P2P servers and for offline.
__________________
I think this pretty much sums me up...
Reply With Quote
  #15  
Old 11-29-2001, 08:44 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Would you do:
if (playerlaysitem&&strequals(???,greenrupee)) {
setcharani gralat,1;
}

Something like that?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #16  
Old 11-29-2001, 09:20 AM
Draktha Draktha is offline
Registered User
Join Date: Nov 2001
Location: home in front of my computer lol
Posts: 51
Draktha is on a distinguished road
Send a message via AIM to Draktha Send a message via Yahoo to Draktha
Quote:
Originally posted by SSRobgeta
Would you do:
if (playerlaysitem&&strequals(???,greenrupee)) {
setcharani gralat,1;
}

Something like that?
no its gotta use putnpc 'cause there is a script in each of the gralats.. but im not sure exactly how.. to make it work..
__________________
I think this pretty much sums me up...
Reply With Quote
  #17  
Old 11-29-2001, 09:25 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by Draktha

no its gotta use putnpc 'cause there is a script in each of the gralats.. but im not sure exactly how.. to make it work..
I knew that lolz. I ment is the srequals part right?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #18  
Old 11-29-2001, 09:39 AM
Draktha Draktha is offline
Registered User
Join Date: Nov 2001
Location: home in front of my computer lol
Posts: 51
Draktha is on a distinguished road
Send a message via AIM to Draktha Send a message via Yahoo to Draktha
Quote:
Originally posted by SSRobgeta

I knew that lolz. I ment is the srequals part right?
no idea
__________________
I think this pretty much sums me up...
Reply With Quote
  #19  
Old 11-29-2001, 10:16 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Python523

Correct me if I'm wrong but I think the gralats are embedded into the NPC Server, you don't even have to script it or ask Stefan for the script since the NPC Server automatically does it
well, i have access to edit the script through NPC Control ...
Reply With Quote
  #20  
Old 11-29-2001, 10:18 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
basically ... if you made a gralats system for a free server it would have to be very good cause you could not use the server to control anything and then someone could edit there stuff clientside for the money to go up and so on ...
Reply With Quote
  #21  
Old 11-29-2001, 12:24 PM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
Quote:
Originally posted by SSRobgeta
Would you do:
if (playerlaysitem&&strequals(???,greenrupee)) {
setcharani gralat,1;
}

Something like that?
To detect if someone laid a rupees, you need to do sumptin like

if(created||timeout) {
for(a=0;a!=itemscount;a++) {
if(items[a].type==greenrupee) {
woohoo, I found a gelat!
}
}
timout=0.05;
}
Reply With Quote
  #22  
Old 11-30-2001, 05:54 AM
Draktha Draktha is offline
Registered User
Join Date: Nov 2001
Location: home in front of my computer lol
Posts: 51
Draktha is on a distinguished road
Send a message via AIM to Draktha Send a message via Yahoo to Draktha
Quote:
Originally posted by Andor_NPC-Admin1


To detect if someone laid a rupees, you need to do sumptin like

if(created||timeout) {
for(a=0;a!=itemscount;a++) {
if(items[a].type==greenrupee) {
woohoo, I found a gelat!
}
}
timout=0.05;
}
uhhh could you tell me how exactly that works...
__________________
I think this pretty much sums me up...
Reply With Quote
  #23  
Old 11-30-2001, 06:52 AM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
it searches all the items 4 a green gelat.
If it found one, then it goes through the loop =P
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 05:59 PM.


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