Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Marketplace script (https://forums.graalonline.com/forums/showthread.php?t=21200)

Googi 01-15-2002 08:59 AM

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 x_x

Torankusu 01-15-2002 12:32 PM

No.

Mrmicro 01-16-2002 03:58 AM

*Cough*
I do but i wont post

Goboom 01-16-2002 06:43 AM

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....!!!!:p

Googi 01-16-2002 09:10 AM

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....!!!!:p
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.

Faheria_LAT1 01-16-2002 10:21 AM

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.

Kagero 01-16-2002 11:04 AM

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 :\

Ultima_P2P 01-16-2002 09:59 PM

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)

grim_squeaker_x 01-16-2002 10:58 PM

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.

DeathChill 01-16-2002 11:05 PM

or you could make it say "Are you sure you want to buy item 1 for $$$?"

grim_squeaker_x 01-16-2002 11:08 PM

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.

TDO2000 01-17-2002 02:17 AM

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

GrowlZP2P 01-17-2002 02:32 AM

"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.

Googi 01-17-2002 04:17 AM

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.

Slaktmaster 01-17-2002 04:21 AM

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.


All times are GMT +2. The time now is 08:54 AM.

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