I don't know why. It works for me.
Hm... let me have a look.
Maybe it has some thing to do with the string search of what the craftsman says. Maybe in your language there are special characters in the message such as - that interfere with the search.
Two things you can do.
1. Check if the messages the script is using, matches what the craftsman says. To do this type the following in game.
Code: Select all
/script SendSystemChat(TEXT("SC_PE_ZONE13_01_SMITH01"))
See what it prints. Then try incrementing the last digit upto 5. That will be all the messages used. See if they match what the craftsman says.
2. If it is just a character in the messages messing with the search then you can try changing the following at line 308 of invaders_functions.lua.
Code: Select all
if string.find(msg, RoMScript("TEXT(\"SC_PE_ZONE13_01_SMITH02\")")) then -- Fix that end!
RoMScript("UseExtraAction(2)") yrest(1500)
elseif string.find(msg, RoMScript("TEXT(\"SC_PE_ZONE13_01_SMITH01\")")) then -- It's time to measure that distance!
RoMScript("UseExtraAction(3)") yrest(1500)
elseif string.find(msg, RoMScript("TEXT(\"SC_PE_ZONE13_01_SMITH03\")")) then -- Good! Assemble it!
RoMScript("UseExtraAction(4)") yrest(1500)
elseif string.find(msg, RoMScript("TEXT(\"SC_PE_ZONE13_01_SMITH04\")")) or -- failed
string.find(msg, RoMScript("TEXT(\"SC_PE_ZONE13_01_SMITH05\")")) then -- succeeded
-- Move to next Craftsman
nextCraftsman = true
end
to
Code: Select all
if string.find(msg, RoMScript("TEXT(\"SC_PE_ZONE13_01_SMITH02\")"),nil,true) then -- Fix that end!
RoMScript("UseExtraAction(2)") yrest(1500)
elseif string.find(msg, RoMScript("TEXT(\"SC_PE_ZONE13_01_SMITH01\")"),nil,true) then -- It's time to measure that distance!
RoMScript("UseExtraAction(3)") yrest(1500)
elseif string.find(msg, RoMScript("TEXT(\"SC_PE_ZONE13_01_SMITH03\")"),nil,true) then -- Good! Assemble it!
RoMScript("UseExtraAction(4)") yrest(1500)
elseif string.find(msg, RoMScript("TEXT(\"SC_PE_ZONE13_01_SMITH04\")"),nil,true) or -- failed
string.find(msg, RoMScript("TEXT(\"SC_PE_ZONE13_01_SMITH05\")"),nil,true) then -- succeeded
-- Move to next Craftsman
nextCraftsman = true
end