Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: Externalised Merchants
Re: New feature: Externalised Merchants[message #360398 is a reply to message #360393]
|
Wed, 17 June 2020 23:24
|
|
Flugente |
|
Messages:3507
Registered:April 2009 Location: Germany |
|
|
Well, as of r8821 & GameDir r2550, this is now a thing. I added the function to Overhead.lua, and also added the shopkeeper's bodytype as an argument, so we can determine the gender:
-- (relevant) bodytypes
Bodytype =
{
REGMALE = 0,
BIGMALE = 1,
STOCKYMALE = 2,
REGFEMALE = 3,
FATCIV = 11,
MANCIV = 12,
MINICIV = 13,
DRESSCIV = 14,
HATKIDCIV = 15,
KIDCIV = 16,
CRIPPLECIV = 17,
}
-- shopkeeper quotes while in the shop interface
Shopkeeperquote =
{
SK_QUOTES_DEALER_OFFERED_MONEY_AS_A_GIFT = 10,
SK_QUOTES_PLAYER_FIRST_ENTERS_SKI = 11,
SK_QUOTES_RANDOM_QUOTE_WHILE_PLAYER_DECIDING_1 = 12,
SK_QUOTES_RANDOM_QUOTE_WHILE_PLAYER_DECIDING_2 = 13,
SK_QUOTES_RANDOM_QUOTE_WHILE_ITEMS_CHOSEN_TO_TRADE = 14,
SK_QUOTES_RANDOM_QUOTE_WHILE_ITEMS_CHOSEN_TO_SELL_OR_REPAIR = 15,
SK_QUOTES_PLAYER_REQUESTED_EVALUATION = 16,
SK_QUOTES_DURING_EVALUATION_STUFF_REJECTED = 17,
SK_QUOTES_EVALUATION_RESULT_VALUE_OF_ZERO = 18,
SK_QUOTES_EVALUATION_RESULT_SOME_REALLY_DAMAGED_ITEMS = 19,
SK_QUOTES_EVALUATION_RESULT_NORMAL = 20,
SK_QUOTES_EVAULATION_PLAYER_DOESNT_HAVE_ENOUGH_VALUE = 21,
SK_QUOTES_PLAYER_HAS_EXACTLY_ENOUGH_MONEY_FOR_TRANSACTION = 22,
SK_QUOTES_PLAYER_HAS_TOO_MUCH_MONEY_FOR_TRANSACTION = 23,
SK_QUOTES_PRESSES_DONE_HAS_AT_LEAST_1_TRANSACTION = 24,
SK_QUOTES_PRESSED_DONE_HASNT_MADE_TRANSACTION = 25,
SK_QUOTES_PRESSED_DONE_STILL_HAS_STUFF_IN_OFFER_AREA = 26,
SK_QUOTES_CANT_AFFORD_TO_BUY_OR_TOO_MUCH_TO_REPAIR = 27,
}
-- functions used here:
--
-- path: path and name of soundfile we want to play (in .wav, .ogg or .mp3 format)
-- volume: optional sound volume (65: medium volume, 127: loud), default 65
-- PlaySound(path, volume)
-- handle
-- sSectorX, sSectorY and bSectorZ indicate the sector coordinates
-- ubMerchantID is the ID of the merchant for whom this is called
-- ubBodyType is the character model the merchant uses
-- usQuoteNum is the event of the dialogue that is supposed to be called
function HandleNPCMerchantQuote(sSectorX, sSectorY, bSectorZ, ubMerchantID, ubBodyType, usQuoteNum )
-- do stuff here!
end
You should post what you come up with using this, btw.
I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.
If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.Report message to a moderator
|
|
|
|
|
|
New feature: Externalised Merchants
By: Flugente on Thu, 20 December 2012 02:04
|
|
|
Re: New feature: Externalised Merchants
By: Kitty on Tue, 04 June 2019 06:02
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
By: ZedJA2 on Thu, 16 January 2020 02:37
|
|
|
Re: New feature: Externalised Merchants
By: Vritran on Mon, 15 June 2020 12:02
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
By: Vritran on Tue, 16 June 2020 00:14
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
By: Kitty on Tue, 16 June 2020 02:00
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
By: Vritran on Tue, 16 June 2020 16:54
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
By: Vritran on Wed, 17 June 2020 11:32
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
By: Vritran on Wed, 24 June 2020 20:17
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
By: Vritran on Thu, 25 June 2020 11:00
|
|
|
Re: New feature: Externalised Merchants
By: Kitty on Mon, 29 June 2020 03:38
|
|
|
Re: New feature: Externalised Merchants
By: Vritran on Mon, 29 June 2020 12:35
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
By: Kitty on Mon, 29 June 2020 23:33
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
By: kodamaqq on Mon, 08 August 2022 03:12
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
By: Kitty on Tue, 25 July 2023 01:27
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
By: smeagol on Thu, 20 December 2012 11:26
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
By: Wil473 on Thu, 20 December 2012 18:44
|
|
|
Re: New feature: Externalised Merchants
By: Clarkew on Fri, 21 December 2012 03:59
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
By: Clarkew on Fri, 29 March 2013 07:41
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
By: navaroe on Thu, 27 August 2015 19:21
|
|
|
Re: New feature: Externalised Merchants
|
|
|
Re: New feature: Externalised Merchants
By: Flugente on Thu, 27 August 2015 20:22
|
|
|
Re: New feature: Externalised Merchants
By: navaroe on Thu, 27 August 2015 21:59
|
|
|
Re: New feature: Externalised Merchants
By: Flugente on Fri, 28 August 2015 02:22
|
|
|
Re: New feature: Externalised Merchants
By: navaroe on Fri, 28 August 2015 16:38
|
|
|
Re: New feature: Externalised Merchants
By: Flugente on Fri, 28 August 2015 22:22
|
|
|
Re: New feature: Externalised Merchants
By: navaroe on Sat, 29 August 2015 01:33
|
|
|
Re: New feature: Externalised Merchants
By: 88vs1984 on Sun, 31 December 2017 21:06
|
|
|
Re: New feature: Externalised Merchants
By: todd0001 on Fri, 05 January 2018 05:00
|
Goto Forum:
Current Time: Fri Nov 29 04:44:47 GMT+2 2024
Total time taken to generate the page: 0.02406 seconds
|