[King] Adding 4th Horse

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
97
135
UK
Hi guys,
i'm trying to purchase my HORSE4 but every time i purchase it the client just bugs me by not letting me move, i refresh and nothing happens.
I then relog and my horse is gone, i know its not the script because the other 3horses work so i think its something to do with a missing piece in the mud3 or database. Any help?
Thanks
/TDID
 

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
97
135
UK
We tried to make amendments to database by adding "BlackHorse" in items table.
We could buy blackhorse on npc if we made the skin to another horse skin but the 4th and 5th horse skins are both in the client.

I have a feeling its something to do with the Stress.txt



Code:
STR_STDDB_BROWNHORSE:褐色马
STR_STDDB_WHITEHORSE:白马
STR_STDDB_BLACKHORSE:黑马

STR_STDDB_REALBLACKHORSE:Dark horse

STR_STDDB_YELLOWHORSE:Certainly shade horse
Found chinese text for the other 2horses REALBLACK and YELLOWHORSE but made no change :/

Code:
STR_STDDB_REALBLACKHORSE:黑马

STR_STDDB_YELLOWHORSE:绝影马
 
Last edited:
Upvote 0

dagras

LOMCN Veteran
Veteran
Feb 6, 2011
282
3
44
check mobs database make sure they same numbers as in mon files. check the names are correct in mobs database and stress file. then check horse market script for same number or id. it can be something so simple.
 
Upvote 0

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
97
135
UK
i dont quiet understand, because in the MON table there is a mob called HORSE1-3 for horses (i added Horse4).
In the Item database there are items called BrownHorse,WhiteHorse,RedHorse (BlackHorse i added)
and in the Stress.txt there are chinese names for the BROWN, WHITE and BLACK horse (red) so i changed the REALBLACK and YELLOW to chinese names, in the script the horses are HORSE1,HORSE2,HORSE3,HORSE4.

Thing is i cant buy a BlackHorse unless i put his appearance as redhorse, if i go to sell him it sells for the price of redhorse? :/


I dont understand what you mean check mon db to make sure they the same number as mon files
 
Last edited:
Upvote 0

dagras

LOMCN Veteran
Veteran
Feb 6, 2011
282
3
44
in hl_monsters db is
Horse1 150 19 116 100 0 0 0 0 0 70 500 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 4 500 0 1 2000 0 0 华立软件

horse1 150 being race , 19 being raceimage, 116 is the number in mon files 100 being the level.

if u look in horsemarket or wherever file is to buy horse, shud be in convertdef\system\ horsemarket.txt

[Convert]
[@Convert_HorseMarket_0]
{
_Welcome to the Stables, I Sell Horses here.\ \
<Buy/@BuyHorse(Horse1,15,500000)> Brown Horse(500000 Gold-Level 15)\
<Buy/@BuyHorse(Horse2,40,20000000)> {FCOLOR/10}White{FCOLOR/12} Horse(20000000 Gold-Level 40)\
<Buy/@BuyHorse(Horse3,52,90000000)> {FCOLOR/10}Red{FCOLOR/12} Horse(90000000 Gold-Level 52)\
<Buy/@BuyHorse(Horse4,100,99999000)> {FCOLOR/10}Black{FCOLOR/12} Horse(90000000 Gold-Level 100)\
<Sell Horse/@SellHorse> \
<Exit/@exit>


horse1 being the name in hl_monsters, 15 being the level, 500000 being cost to buy

---------- Post Merged at 05:11 PM ---------- Previous Post was at 05:08 PM ----------

and in stress:

STR_STDDB_BROWNHORSE:Horse1
STR_STDDB_WHITEHORSE:Horse2
STR_STDDB_REDHORSE:Horse3
STR_STDDB_BLACKHORSE:Horse4
 
Upvote 0

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
97
135
UK
Found the fix, thanks all for suggestions.
Solution:
From
Code:
Buy: <Black Horse/@BuyHorse(HORSE4,60,70000000)> Cost: {FCOLOR/10}70,000,000{FCOLOR/12}{FCOLOR/2}\
To
Code:
Buy: <Black Horse/@BuyHorse(黑马,60,70000000)> Cost: {FCOLOR/10}70,000,000{FCOLOR/12}{FCOLOR/2}\





and in stress:

STR_STDDB_BROWNHORSE:Horse1
STR_STDDB_WHITEHORSE:Horse2
STR_STDDB_REDHORSE:Horse3
STR_STDDB_BLACKHORSE:Horse4

In my Stress.txt it says

STR_STDDB_BROWNHORSE:褐色马
STR_STDDB_WHITEHORSE:白马
STR_STDDB_BLACKHORSE:黑马
STR_STDDB_REALBLACKHORSE:黑马
STR_STDDB_YELLOWHORSE:绝影马

but brown,white and red horse are all HORSE1,HORSE2,HORSE3 and then my HORSE4 is 黑马
 
  • Like
Reactions: idaBigA
Upvote 0

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
145
Manchester, UK
For future reference for all. (this applies to both holley and king files)

The problem is, you have to have the correct names in a few places.

1: Mon database
Horse1
Horse2
Horse3
Horse4
Horse5

2 Item Database:
BrownHorse
WhiteHorse
RedHorse
BlacKHorse

and so on..
3: StrrRes3g.txt
STR_STDDB_BROWNHORSE:BrownHorse
STR_STDDB_WHITEHORSE:WhiteHorse
STR_STDDB_REDHORSE:RedHorse
STR_STDDB_BLACKHORSE:BlackHorse

The item database names have to match your StrRes3g and the stables script has to match your mon database names. If one or the other is wrong, the horses wont be purchased as they should. So the simple solution for the chinese name of your horse, is find it on the items database and rename it ;)
 
  • Like
Reactions: TheDayIDie
Upvote 0

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
97
135
UK
For future reference for all. (this applies to both holley and king files)

The problem is, you have to have the correct names in a few places.

1: Mon database
Horse1
Horse2
Horse3
Horse4
Horse5

2 Item Database:
BrownHorse
WhiteHorse
RedHorse
BlacKHorse

and so on..
3: StrrRes3g.txt
STR_STDDB_BROWNHORSE:BrownHorse
STR_STDDB_WHITEHORSE:WhiteHorse
STR_STDDB_REDHORSE:RedHorse
STR_STDDB_BLACKHORSE:BlackHorse
Why did you make 5 horses in the mon database if your only using 4horses in the StrrRes3g.txt? ^^
Anyway good guide, was useful. Easier than trying to work it out yourself by looking through the labyrinth of scripts and .txt documents like i did when i first done it :P
+REP
 
Upvote 0

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
145
Manchester, UK
Was an example based on this topic is related to kings. As obviously if they are using king files can have 5 horses... lol. If its Holley (3.55) only 4 horses...
 
Upvote 0