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 02-02-2002, 03:04 PM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
Trading?

What would be the best way to go about making a trade item for a free server? I was trying to think how to do it and I figured...

1.Text File for each droppable NPC
2.Use PutNPC when fired
3.Find out how to make it destroy the item in the weapons list once dropped

any help?
Reply With Quote
  #2  
Old 02-02-2002, 11:56 PM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
help me please =(
Reply With Quote
  #3  
Old 02-03-2002, 03:19 AM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Quote:
Originally posted by lordhelmut
help me please =(
Use keydown... when keydown detected to
putnpc... in the putnpc do if playerthouch me destroy etc.
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #4  
Old 02-03-2002, 05:13 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
I dont recommend using Putnpc .
b/c if 2 ppl touch it at the same time, they will both get the item.
Its hard to make trading stuff for non p2p .
I would use something like putnpc but making the players separated so they can not both touch the putnpc at the time
__________________
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
  #5  
Old 02-03-2002, 05:19 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 LiquidIce00
I dont recommend using Putnpc .
b/c if 2 ppl touch it at the same time, they will both get the item.
Its hard to make trading stuff for non p2p .
I would use something like putnpc but making the players separated so they can not both touch the putnpc at the time
I agree, unlike 2001, you can't make an NPC for each
individual hat go everywhere.
Reply With Quote
  #6  
Old 02-03-2002, 05:20 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
im sure there is a complicated script you could do with arrays
__________________
Reply With Quote
  #7  
Old 02-03-2002, 08:19 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
well, lets see


if (created) {
this.playerid=-1; }
if (playertouchsme&&this.playerid==-1) {
this.playerid=playerid;
if (this.playerid==playerid) {
toweapons ....; }
}
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #8  
Old 02-03-2002, 09:13 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 TDK_RC6
well, lets see


if (created) {
this.playerid=-1; }
if (playertouchsme&&this.playerid==-1) {
this.playerid=playerid;
if (this.playerid==playerid) {
toweapons ....; }
}
doesnt matter.
Because the this.playerid would be local. So if 2 people touched at the same time it would give this.playerid to both of them .. hehe .its a b*tch i know

u can do w/ save[0] variables. but even those take a second or two to send to the server.
So its not as ez as it looks to make these things on free
__________________
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
  #9  
Old 02-03-2002, 11:00 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
Quote:
Originally posted by LiquidIce00


doesnt matter.
Because the this.playerid would be local. So if 2 people touched at the same time it would give this.playerid to both of them .. hehe .its a b*tch i know

u can do w/ save[0] variables. but even those take a second or two to send to the server.
So its not as ez as it looks to make these things on free
well darn, i didnt know that it was local, o well
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #10  
Old 02-03-2002, 02:07 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
Quote:
Originally posted by LiquidIce00


doesnt matter.
Because the this.playerid would be local. So if 2 people touched at the same time it would give this.playerid to both of them .. hehe .its a b*tch i know

u can do w/ save[0] variables. but even those take a second or two to send to the server.
So its not as ez as it looks to make these things on free
What do you exactly mean local? Be specific plz.
Reply With Quote
  #11  
Old 02-03-2002, 02:29 PM
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
Eye Dee Ah (Idea you *****s)

Make a trade house in which each player enters a secured area (blocking tiles with a door =P). When both players say 'start trade' the doors would close. Each player would lay the item and then when both say 'trade' or 'accept' they get switched from one 'trade box' to the other.

Of course doing this with gralats wont be easy because they can disappear after a short time..
__________________


"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
  #12  
Old 02-03-2002, 03:04 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
Quote:
Originally posted by Faheria_LAT1
Eye Dee Ah (Idea you *****s)

Make a trade house in which each player enters a secured area (blocking tiles with a door =P). When both players say 'start trade' the doors would close. Each player would lay the item and then when both say 'trade' or 'accept' they get switched from one 'trade box' to the other.

Of course doing this with gralats wont be easy because they can disappear after a short time..
We arnt totally stupid here. What if you were in a level where another person is that took you 20 minutes to get too and then you wanted to give him something so he could progress on. Think of realism here. Duh....there is prolly a better exmplanation of what i said but its 3 am...
Reply With Quote
  #13  
Old 02-03-2002, 04:41 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
I would put all of the NPCs that you use into seperate text files for the stuff. Put like a bank item in the trading house, then, if they say "trade <npchere> spot1" and the other person says "trade <npchere> spot2". Then, make it so they have to accept then have it destroy it in the players weapon list and use putnpc to put it in front of them. With the bank use something like "<ammounthere> for spot1" or vica versa. Then it drops the ammount into spot 1 or 2. It may be laggy, but, it should work. As for the trading item itself, it would be kind of hard, because, if the person "lagged" and someone else came by, they both would get it.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #14  
Old 02-04-2002, 01:17 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
There is no way whatsoever to check and see if the npc was recieved in 2 parcels in 1 level on a non-p2p server? There has to be a way of checking for this.
Reply With Quote
  #15  
Old 02-04-2002, 01:30 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
hmmm the main problem is destroying it in the droppers weapons list
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 12:40 PM.


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