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 01-15-2002, 08: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
Marketplace script

Does anyone know the script for the marketplace just the stands, not the basket.

I want to see if I can put some type of security script onto it in order to prevent the wave of scammings that I think will begin soon
__________________
Reply With Quote
  #2  
Old 01-15-2002, 12:32 PM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
No.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote
  #3  
Old 01-16-2002, 03:58 AM
Mrmicro Mrmicro is offline
Registered User
Join Date: Mar 2001
Posts: 128
Mrmicro is on a distinguished road
Send a message via AIM to Mrmicro
*Cough*
I do but i wont post
__________________
Reply With Quote
  #4  
Old 01-16-2002, 06:43 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
Red face

OMG!!! That isnt hard to script at all you know you dont want to add a security thing to it...you want to steal the script rename some of the things and try to pass it off as your own....!!!!
__________________
Reply With Quote
  #5  
Old 01-16-2002, 09:10 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
Quote:
Originally posted by Goboom
OMG!!! That isnt hard to script at all you know you dont want to add a security thing to it...you want to steal the script rename some of the things and try to pass it off as your own....!!!!
I don't have a server.

And how exactly can I claim that it's mine, it's kinda obvious that it's not, the marketplace is 1 of the biggest things on Graal2001, if you don't trust me, then install the security yourself, send the script to BirdBird, and hopefully he won't be to damn lazy to install it.
__________________

Last edited by Googi; 01-16-2002 at 09:38 AM..
Reply With Quote
  #6  
Old 01-16-2002, 10:21 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
I already suggested adding a time thing:

When the merchant puts an item on the stand, there is a 5-10 seconds delay before the "buy item x" command works.

It's the best security against those ****ers (scammers) you can have.

Fal also suggested adding a price range on items.
__________________


"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
  #7  
Old 01-16-2002, 11:04 AM
Kagero Kagero is offline
Registered User
Join Date: Dec 2001
Posts: 159
Kagero is on a distinguished road
Send a message via AIM to Kagero
Quote:
Originally posted by Faheria_LAT1

"Drakken: Falados is like jesus, only better at scripting"

<3

5 second delay wouldn't stop the people who lay pearls where you can't see them and put down a hat, but then again, neither would a price range
__________________
Account now used by: Cyanide SR71
Reply With Quote
  #8  
Old 01-16-2002, 09:59 PM
Ultima_P2P Ultima_P2P is offline
Registered User
Join Date: Dec 2001
Location: On Your Doorstep
Posts: 168
Ultima_P2P is on a distinguished road
Send a message via AIM to Ultima_P2P
are you people talking about if the player says the chat text it waits 5 seconds then appear on the stand for sale or it appears on the stand for 5 seconds before you are able to buy it? (with the price showing)
__________________

- ¤*U£†îmå*¤

Forever in my hands
I hold the sword...
Reply With Quote
  #9  
Old 01-16-2002, 10:58 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by Ultima_P2P
are you people talking about if the player says the chat text it waits 5 seconds then appear on the stand for sale or it appears on the stand for 5 seconds before you are able to buy it? (with the price showing)
The second one. As to prevent people selling apples and other such things for absurdly high prices after a couple of free ones.
__________________

Reply With Quote
  #10  
Old 01-16-2002, 11:05 PM
DeathChill DeathChill is offline
Space Monkeys, everywhere
DeathChill's Avatar
Join Date: Sep 2001
Posts: 1,921
DeathChill is on a distinguished road
or you could make it say "Are you sure you want to buy item 1 for $$$?"
__________________
Minoc and DeathChill, defeating communism one step at a time!
Reply With Quote
  #11  
Old 01-16-2002, 11:08 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by DeathChill
or you could make it say "Are you sure you want to buy item 1 for $$$?"
I think people would still just type in yes without actually checking the price then.
__________________

Reply With Quote
  #12  
Old 01-17-2002, 02:17 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by grim_squeaker_x
I think people would still just type in yes without actually checking the price then.
Then it's their own fault... if u never watch the price there will be no security system which would realy work
__________________
No Webhost at the moment
Reply With Quote
  #13  
Old 01-17-2002, 02:32 AM
GrowlZP2P GrowlZP2P is offline
Registered User
Join Date: Dec 2001
Location: Corpadverticus, which in case you don't know is the recently-formed and Blockbuster Video-sponsored Tenth Circle of Hell
Posts: 57
GrowlZP2P is on a distinguished road
Send a message via AIM to GrowlZP2P Send a message via Yahoo to GrowlZP2P
"Are you sure you want to buy item 1 for $$$?", then a sleep command, then set a flag which lets the player buy something? Like:

NPC Code:

if (playersays(#c,buy item 1)){
message Are you sure you want to buy item 1 for $$$?;
sleep 5;
set canbuyitem1;
}
if (playersays(#c,yes) && canbuyitem1){
// buying stuff...
}
if (playersays(#c,no) && canbuyitem1){
message;
unset canbuyitem1;
}



Or am I thinking bad here? :P

Maybe something along the lines of this: (I'm assuming stall control is done by flags, like ownsstall1)

NPC Code:


// For example:
// Player GrowlZ says "sell apple 1 10"

if (playerchats && strcontains(#c,sell) && ownsstall1){
tokenize #c;
if (strequals(#t(2),1)){
stall1.price1=#t(3);
putnpc ,#t(1).txt,x,y;
}
}




Then the player could choose the price before placing and the level would have variables to control the co-ordinates of any item placed. The script of the item to be sold would use the stall1.price1 variable as its cost. Combining the two of these would help stop people charging extortionate rates for things after giving away freebies.
__________________


AIM: GrowlZ1010 | Y! IM: GrowlZ1010 | MSN: [email protected] | Email: [email protected]

- I use obscenely long words to befuddle my adversaries, therefore I am -

Current Favorite Quote: Real programmers don't document. If it was hard to write, it should be hard
to understand.
Reply With Quote
  #14  
Old 01-17-2002, 04:17 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, if you guys don't want to give me the script, then script in the time thing yourself, and send it to the staff, because we all know that the staff are to damn lazy to make it unless someone scripts it for them.
__________________
Reply With Quote
  #15  
Old 01-17-2002, 04:21 AM
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
It won't be added. If someone wanted it to be added it would have been. Just refrain from being stupid and everything will be fine. Getting scammed requires a below-average intelligence.
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 03:44 AM.


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