Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem






https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3242920330
(Still have to test if it works with this Addon)
this is the best result out of three attempts
this doesnt like life when one is nil lmao
Ive had so many check nil problems myself this is just humbling tbh haha
im just going to comment all dlogs cause tbh I wont need them for now for what Im doing lmao
function shopSellCancel(peerid, npc)
clearUI(peerid, "shop")
local player = G_players[getsteam(peerid)]
shopEncounter(player, npc)
end
ontick is always a huge challenge since the for loops actually bog the performance down a bunch since its adding time complexity for every object in the table
which is why I recommend building ArrayLists (table.insert/table.remove) for the stuff specifically to be ran on onTick, so you can have a counter just itterate through the list so only one object gets updated per tick. Ive done this with my gas stations, works well enough, just gotta pick a counter max thats well above object count
if nearship == nil then
S.notify(peerid, npc.name , "There's no ship to unload!", 2)
return
end
in the function
harbourmasterEncounter
after nearship gets initialized, harbormaster breaks if there isnt a ship nearby