Graal Forums

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

Ultima_P2P 02-25-2002 01:20 PM

Another Trading NPC Thread
 
Im trying to make my own trading npc, but its harder than i thought....:(

i need help with...

1. so that it only shows the selected item above your head
2. so that it will place in front of you (non-p2p)
3. it actually works :rolleyes:

Remember this is with multiple items :asleep:

If anybody can HELP and not make the entire npc for me it would be much appreciated. :)

joseyisleet 02-25-2002 02:37 PM

-=Josey=-
Ultima, I'm just now starting my own NPC trading item, I'll happily let you look at the code to learn from it, and not steal it. =P

nyghtGT 02-25-2002 06:08 PM

Re: Re: Another Trading NPC Thread
 
Quote:

Originally posted by Kaimetsu
1. so that it only shows the selected item above your head

#W (or maybe #w, I get them mixed up), showimg and selectedweapon.
...

are you ok Kai, thats quite a bit ...

Saga2001 02-26-2002 12:19 AM

it is not really that hard if you have all the tradible items in .txt files on server...

Ultima_P2P 02-26-2002 11:00 AM

Re: Re: Re: Re: Another Trading NPC Thread
 
Quote:

Originally posted by Kaimetsu


But I always enumerate the commands they need in times like this :(

It's when they fall halfway between asking for scripts and asking how to solve problems, into the realm of asking how to solve scripts. The people who do this are generally more skilled than the script-beggars, but it's still a lazy way to work through an NPC.

I dont know if that was a compliment or not :(
Anyways....
I dont mean Q weapons, i cant say its name(because of thiefs out there :() but its a cool idea. I got it to work anyway :rolleyes:

Quote:

it is not really that hard if you have all the tradible items in .txt files on server...
Umm...I guess ill need to test it online :( , I dont work for no server tho :o

TDK_RC6 02-26-2002 11:03 AM

i love putnpc2

but alas, only p2p :P

ha ha

TDK_RC6 02-26-2002 08:23 PM

Quote:

Originally posted by Kaimetsu
I just remembered that I said I'd always delete posts from this account. Hmm, a moral dilemma...

lol, what to do, what to do??

nyghtGT 02-27-2002 04:58 AM

Re: Re: Re: Re: Another Trading NPC Thread
 
Quote:

Originally posted by Kaimetsu


But I always enumerate the commands they need in times like this :(

It's when they fall halfway between asking for scripts and asking how to solve problems, into the realm of asking how to solve scripts. The people who do this are generally more skilled than the script-beggars, but it's still a lazy way to work through an NPC.

ahh, ic.

nyghtGT 02-27-2002 04:59 AM

Quote:

Originally posted by TDK_RC6
i love putnpc2

but alas, only p2p :P

ha ha

yup its very kool ...

SSRobgeta 02-28-2002 09:16 AM

The trading item is actually easy. You use, Showimg, Strings and stuff, and putnpc or putnpc2. :o

nyghtGT 02-28-2002 09:32 AM

(ACC)Royce:
The only problem with making a trading item that you can carry around is that if the players both touch the layed item at once they will both pick it up. I have absolutly no clue if there is a way to get around it. There is another thread just like this dated from about a month ago that Lord Helmut was asking about which I think was given the guidelines.

-Mr. Chik

Phenom1K 02-28-2002 10:05 AM

Store all the stuff you have in a string, then tokenize, then rotate between the tokens according to the token number, and show the correct token image above head. Ingenius.


All times are GMT +2. The time now is 02:53 AM.

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