Graal Forums

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

lordhelmut 01-09-2002 05:44 AM

Market
 
would it be possible to make a market type thing for a free server?

thomasward 01-09-2002 06:46 AM

I don't know, would it? :confused: :confused:

BlKnight 01-09-2002 07:37 AM

Yes it would be. Just use triggeraction...

WHIPENIE4 01-09-2002 07:52 AM

[screen_name says:]

what kind of market, the kind on g2k1 where you can rent the lots ??

TDO2000 01-09-2002 09:09 PM

Yay it's possible (no triggeractions!!!)

just visit Londeroth I made a G2K1 like market script for it

u can rent stands (for a time of 45 mins) put your items on special positions (like NM's) and sell them after time is over u can even get it from the baskets (No I don't use putnpc)

lordhelmut 01-10-2002 03:53 AM

Quote:

Originally posted by TDO2000
Yay it's possible (no triggeractions!!!)

just visit Londeroth I made a G2K1 like market script for it

u can rent stands (for a time of 45 mins) put your items on special positions (like NM's) and sell them after time is over u can even get it from the baskets (No I don't use putnpc)

Wow thats pretty good =D I guess u need a time system then huh? I was thinking i would need one for some other stuff. I guess now I will have to have one =D

BlKnight 01-10-2002 06:58 AM

Quote:

Originally posted by lordhelmut


Wow thats pretty good =D I guess u need a time system then huh? I was thinking i would need one for some other stuff. I guess now I will have to have one =D


Time system would be easy, just set a timevar, then whenever they open one you record the current value of the timevar...the you just have it subtract the new by the old, if its => then the value you want it closes.

SSRobgeta 01-11-2002 03:33 AM

I see

SSRobgeta 01-11-2002 03:34 AM

Quote:

Originally posted by SSRobgeta
I see
I am just posting to get 500 =)

SSRobgeta 01-11-2002 03:36 AM

Quote:

Originally posted by SSRobgeta

I am just posting to get 500 =)

Boo

SSRobgeta 01-11-2002 03:38 AM

Quote:

Originally posted by SSRobgeta

Boo

2 more

SSRobgeta 01-11-2002 03:42 AM

Quote:

Originally posted by SSRobgeta

2 more

done

Joe27hunter 01-13-2002 08:44 AM

Boats
 
Can ya give me G2k1 market place or the non-p2p market place thingy lol

Knight_Vincent 01-13-2002 11:47 AM

Hmm,

I think it would be but woundn't it be a lot more lagery then it is now?

-NIght Fox

Yakuna2001 01-13-2002 11:26 PM

Quote:

Originally posted by Knight_Vincent
Hmm,

lagery

-NIght Fox

interesting......use......of......word!

Knight_Vincent 01-14-2002 02:14 AM

Lol,

Yes it is :).

-Night fox

lordhelmut 01-14-2002 09:56 AM

How would a player place an item then? putnpc?

Slaktmaster 01-14-2002 01:47 PM

Something like:
if (playerchats&&strequals(#c,lay down <weaponname>)) {
this.x = {0.5,-0.5,0.5,2.5};
this.y = {-1,1,3,1};
putnpc weaponimage,weaponcode,this.x[playerdir],this.y[playerdir];
destroy;
}

That is just for laying weapons so it would need more code, but it's a good start.

lordhelmut 02-04-2002 12:40 PM

Quote:

Originally posted by Slaktmaster
Something like:
if (playerchats&&strequals(#c,lay down <weaponname>)) {
this.x = {0.5,-0.5,0.5,2.5};
this.y = {-1,1,3,1};
putnpc weaponimage,weaponcode,this.x[playerdir],this.y[playerdir];
destroy;
}

That is just for laying weapons so it would need more code, but it's a good start.

this.x = {0.5,-0.5,0.5,2.5};
this.y = {-1,1,3,1};

what is that

nyghtGT 02-04-2002 01:51 PM

Quote:

Originally posted by lordhelmut


this.x = {0.5,-0.5,0.5,2.5};
this.y = {-1,1,3,1};

what is that

arrays

Saga2001 02-05-2002 12:13 AM

It would be fairly simple, but if you wanted to do a lot of very advanced stuff, it could become a "var hogger".

TDK_RC6 02-05-2002 01:31 AM

Quote:

Originally posted by lordhelmut


this.x = {0.5,-0.5,0.5,2.5};
this.y = {-1,1,3,1};

what is that


setting arrays so that it will put the npc at a certain spot depending on which way you are facing

lordhelmut 02-05-2002 07:46 AM

I MUST LEARN :)

TDK_RC6 02-05-2002 08:26 AM

Quote:

Originally posted by Slaktmaster
Something like:
if (playerchats&&strequals(#c,lay down <weaponname>)) {
this.x = {0.5,-0.5,0.5,2.5};
this.y = {-1,1,3,1};
putnpc weaponimage,weaponcode,this.x[playerdir],this.y[playerdir];
destroy;
}

That is just for laying weapons so it would need more code, but it's a good start.
i was just looking over this script, and it is really buggy

NPC Code:

this.x = {0.5,-0.5,0.5,2.5};
this.y = {-1,1,3,1};
putnpc weaponimage,weaponcode,this.x[playerdir],this.y[playerdir];



this would only put a weapon at those cordinates, you would have to do, playerx+this.x[playerdir] and player.y+this.y[playerdir]
also, if you face left

KuJi2002 08-04-2002 05:55 AM

Markets
 
O kool! lol

Python523 08-04-2002 06:05 AM

Re: Markets
 
Quote:

Originally posted by KuJi2002
O kool! lol
don't revive dead posts....


All times are GMT +2. The time now is 11:31 AM.

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