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 09-22-2001, 07:17 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
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?
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #2  
Old 09-22-2001, 08:11 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
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
Reply With Quote
  #3  
Old 09-22-2001, 08:17 AM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
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.
__________________
Graal2001 NPC Maker
Frolic Owner
Aim: C Y B N E X T
Reply With Quote
  #4  
Old 09-22-2001, 08:36 AM
Faheria_Admin5 Faheria_Admin5 is offline
Registered User
Join Date: Sep 2001
Posts: 70
Faheria_Admin5 is on a distinguished road
Send a message via AIM to Faheria_Admin5
Putnpc = BAD

Putnpc2 = Good

__________________

Reply With Quote
  #5  
Old 09-22-2001, 08:56 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
Quote:
Originally posted by Faheria_Admin5
Putnpc = BAD

Putnpc2 = Good

Reply With Quote
  #6  
Old 09-23-2001, 12:16 AM
Death_Sythe Death_Sythe is offline
Registered User
Join Date: Aug 2001
Location: PA:USA
Posts: 81
Death_Sythe is on a distinguished road
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?
__________________
Trunks
Manatra2001 Owner
GP Asst. Chief on Sanstrata
Reply With Quote
  #7  
Old 09-23-2001, 12:47 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 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.
__________________
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
  #8  
Old 09-23-2001, 07:28 PM
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
i got ...

i got some trading item thingy from a friend if you want it i will post it ....
Reply With Quote
  #9  
Old 09-24-2001, 05:01 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Go ahead Nyght
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #10  
Old 09-24-2001, 05:14 AM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
[ 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
__________________
Xerphier Dintch
Featuring
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 01:35 AM.


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