Npcs selling the wrong thing.

If you found a bug in Illarion or need help ask here. / Wenn Du einen Fehler in Illarion gefunden hast oder Hilfe benötigst, frage hier.

Moderator: Developers

Post Reply
snym15
Posts: 2
Joined: Mon Oct 02, 2006 2:27 am

Npcs selling the wrong thing.

Post by snym15 »

Well, I tried to buy a hatchet from Timo for 20 coins.....however, he sold me a hat for 30 coins. I tried typing it a different way and ended up with another hat. I sold one back to find I'd only get 10 coins for it. But still no hatchet. the only thing I can think of as a reason for this is that the keyword for hat is conflicting with the "hat" in hatchet. But i don't know, maybe its just something I did.

has anyone else had this problem?
xEleas

Post by xEleas »

I believe, but I'm not sure, that "Sam" sells hatchets.. And I also believe, yet am not sure that this NPC is found in a castle up north of Troll's Bane..

I hope that helps.
Nerisella Shortankard
Posts: 14
Joined: Mon Sep 25, 2006 2:41 am

Post by Nerisella Shortankard »

try buying a "beil" it will work that way
snym15
Posts: 2
Joined: Mon Oct 02, 2006 2:27 am

Post by snym15 »

ok. thanks
User avatar
Skaalib Drurr
Posts: 1007
Joined: Sat Aug 05, 2006 11:30 pm
Location: A place which I call home......

Post by Skaalib Drurr »

If you try to buy a hatchet from Sam you get a hat aswell. Go to the dwarf outside silverbrand. He will sell you all the tools
User avatar
Miklorius
Posts: 963
Joined: Thu Feb 09, 2006 3:10 pm
Location: Germany

Post by Miklorius »

It is obviously a bug with the keywords (hatchet).

There are some other problems with item names with more than one word.
J S

Post by J S »

As long as 'im Borgate ain't confusin' 'is beer mugs with bloody goat milk, I'll beh fine aye? Arr..


8)
User avatar
Estralis Seborian
Posts: 12308
Joined: Wed Nov 10, 2004 9:14 pm
Location: Sir Postalot
Contact:

Post by Estralis Seborian »

Please post such problems on flyspray. It helps if you include a suggestion how to rename the items.

Example: hat -> slouch hat (hat is included in "hatchet")
crossbow bolt -> bolt (crossbow is included in crossbow bolt)
User avatar
Miklorius
Posts: 963
Joined: Thu Feb 09, 2006 3:10 pm
Location: Germany

Post by Miklorius »

What are the exact limitations of keywords?

The NPCs won't tell you the prices for "more-word-items", but they buy (some of) them; example: The "große leere Flasche" (big empty bottle?).
User avatar
Samantha Meryadeles
Posts: 1879
Joined: Wed Apr 27, 2005 2:48 pm
Contact:

Post by Samantha Meryadeles »

it is not the naming, it is simply a failure in the script. the one who scripted the npc hasn't watched out. in the list of triggerst hat is before hatchet. this way when you say hatchet, he triggers already by hat. hatchet has to be first, than hat.
xEleas

Post by xEleas »

Samantha Meryadeles wrote:it is not the naming, it is simply a failure in the script. the one who scripted the npc hasn't watched out. in the list of triggerst hat is before hatchet. this way when you say hatchet, he triggers already by hat. hatchet has to be first, than hat.
Exactly what I wanted to say.
Basicly, I think.. that for instance, an NPC sells " a hat " and " a hatchet "

the script, in brief, in a way that whenever someone tells the NPC something, he analyzes it in this order:

- If word is "a hat" = give hat.
- end dialogue.
- If word is "a hatchet" = give hatchet.
- end dialogue.

But basicly, whenever you say "a hatchet", the NPC will react to the first part of the word. "a hat-chet".

If the script was inverted, e.g: to detect "hatchet" before "hat", I believe it would work..

But on a second thought, I doubt the developpers didn't watch out for this common mistake..
User avatar
Nitram
Developer
Posts: 7638
Joined: Fri Oct 31, 2003 9:51 am
Contact:

Post by Nitram »

we changed a name of the hat. Should solve the problem ;)
User avatar
Kevin Lightdot
Posts: 2849
Joined: Sun Oct 16, 2005 8:17 pm
Location: Green again

Post by Kevin Lightdot »

Change the name of a crossbow bolt to little pokey thing! :D
Post Reply