Graal Forums

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

ownerofbabylon 09-22-2001 07:17 AM

Trading
 
Anyone have any idea how to make a trading item? I wanna make a item sorta like the hat thing on 2001 that shows the items over the head and allows them to choose what NPC to drop. Does anyone know how hard and if its possible for free servers?

Merlin 09-22-2001 08:11 AM

since i am not an advanced scripter i would just do with what i learn use strings like
client.item1=3

so you can use like showimg for item 1

and use putnpc for the items like
item1.txt
if (timeout) {
if (weaponfired) {
if (this.mode==lay) {
setstring client.item1,#v(client.item1(-1));
putnpc item1.txt,playerx,playery+1;
}
}
}
sort of like that i don't know just comprimise for the info you know

Cybnext_Design 09-22-2001 08:17 AM

Re: Trading
 
Quote:

Originally posted by ownerofbabylon
Anyone have any idea how to make a trading item? I wanna make a item sorta like the hat thing on 2001 that shows the items over the head and allows them to choose what NPC to drop. Does anyone know how hard and if its possible for free servers?
I made a pretty nice one for Frolic last week.

A fruit trade, and weapon trader, they both were quite easy to do.

Faheria_Admin5 09-22-2001 08:36 AM

Putnpc = BAD

Putnpc2 = Good

:D

Merlin 09-22-2001 08:56 AM

Quote:

Originally posted by Faheria_Admin5
Putnpc = BAD

Putnpc2 = Good

:D

:(

Death_Sythe 09-23-2001 12:16 AM

what is...
 
I was tring to amke one of the item traders for trading drugs and food, but I couldnt do it, what is putnpc2 any ways it isnt in the script bank?

LiquidIce00 09-23-2001 12:47 AM

i just made like that for Bravo and UN (p2p and free) versions.. I had the free version using putnpc but the destroy command sometimes may lag so 2 ppl could pick up the item dropped. so I switched to a triggeraction where u can only drop if some1 is infront of you.

nyghtGT 09-23-2001 07:28 PM

i got ...
 
i got some trading item thingy from a friend if you want it i will post it ....

SSRobgeta 09-24-2001 05:01 AM

Go ahead Nyght

Knightoffrost 09-24-2001 05:14 AM

[ Delph Inc. ]
I have attempted at making one for free servers, but I'm just really hopeless at arrays.
The rest is fine, all I need is something that can add the item to an array and keep it there whilst the image in the weapons gets destroyed (if It's possible).
Also how to only show 3 images at one time and make them scroll through so if you press left you would see something like this:
BEFORE:
+=@

AFTER:
=@%

so all the images moved to the left.
As always I'm quite hopeless at explaining things but if you understand that would be good :)


All times are GMT +2. The time now is 05:23 PM.

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