• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

CreatureEvent [TFS 1.3 / 1.4] Upgrade System

Thank you!
About that item info on mouse hover. This is my old tooltips system, which is now way better and really popular on many servers.
You can learn coding and make it yourself. I'll leave you a private message for 2nd option cause rules of this forum are preventing me to talk about it publicly.
I am also very interested in this system.
is it possible to add a couple more rarities to the items? (how hard is this? or should I just edit upgrade_system_const)
maxresdefault (1).jpg
 
All works beside of exp. After installing this script (events.xml too), my exp on bar did stop count.
Any help? Please
 
Some errors os eventcallback:

[2022-15-05 11:48:51.962] [error] Lua script error:
scriptInterface: [Scripts Interface]
scriptId: [C:\vcpkg\canary\data\scripts\UpgradeSystem\core.lua]
timerEvent: []
callbackId:[]
function: []
error [C:\vcpkg\canary\data\scripts\UpgradeSystem\core.lua:14: attempt to index local 'TargetCombatEvent' (a nil value)
stack traceback:
[C]: in function '__newindex'
C:\vcpkg\canary\data\scripts\UpgradeSystem\core.lua:14: in main chunk]
 
Is there a way to implement this in 8.6 client? I installed everything and only attack and armor on items are working. Am I doing something wrong?
(TFS 1.5 downgraded by Nekiro)
 
Hello @oen432, is there a way to add an effect when identifying? I think it is in the core.lua? or maybe its the config one? Thank you for sharing this system! It is really well done
 
Hey @oen432 Cool system,

I did everything as followed but my 1 issue is.. I cannot seem to be able to shift + click items or (look) at them, nothing ever shows up.

Any idea? :)

TFS1.4.2 with OTClientv8
 
[2022-30-08 19:48:54.033] [error] Lua script error: /home/otservbr-global/data/scripts/UpgradeSystem/core.lua
[2022-30-08 19:48:54.034] [error] otservbr-global/data/scripts/UpgradeSystem/core.lua:14: attempt to index local 'TargetCombatEvent' (a nil value)
stack traceback:
[C]: in function '__newindex'
/otservbr-global/data/scripts/UpgradeSystem/core.lua:14: in main chunk
[2022-30-08 19:48:54.034] [error] core.lua
[2022-30-08 19:48:54.034] [error]
 
[2022-30-08 19:48:54.033] [error] Lua script error: /home/otservbr-global/data/scripts/UpgradeSystem/core.lua
[2022-30-08 19:48:54.034] [error] otservbr-global/data/scripts/UpgradeSystem/core.lua:14: attempt to index local 'TargetCombatEvent' (a nil value)
stack traceback:
[C]: in function '__newindex'
/otservbr-global/data/scripts/UpgradeSystem/core.lua:14: in main chunk
[2022-30-08 19:48:54.034] [error] core.lua
[2022-30-08 19:48:54.034] [error]
I'm not supporting OTServ-BR.
 
I have one problem with "20% to chance to cast spell..." all spell hits are healing the monsters... pls help me1662937963956.png
1662938070487.png
1662938114658.png
 
Why's this, 10.98 latest stable build. Latest Possible build at 12.87 and Latest OTBR build all gives the same message.
Using build 3.0.3
1667098668228.png

Lua:
if not target or not target:isItem() or not target:getType():isUpgradable() then
        return false
    end
 
translator has anyone done this in TFS1.5 ?
Post automatically merged:

translator has anyone done this in TFS1.5 ?
C++:
[14/11/2022 22:19:43] [Error - Lua Script - Event Interface]: data/events/scripts/creature.lua
data/events/scripts/creature.lua:45: attempt to index global 'target' (a nil value)
stack traceback:
        [C]: in function '__index'
        data/events/scripts/creature.lua:45: in main chunk

[14/11/2022 22:19:43] [Error - Events::load]: Unable to load creature!
[14/11/2022 22:19:43] [Error - Events::load]: Unable to load player!
[14/11/2022 22:19:43] [Error - Events::load]: data/events/scripts/player.lua:54: 'end' expected (to close 'function' at line 48) near 'return'
Post automatically merged:

translator has anyone done this in TFS1.5 ?
Post automatically merged:


C++:
[14/11/2022 22:19:43] [Error - Lua Script - Event Interface]: data/events/scripts/creature.lua
data/events/scripts/creature.lua:45: attempt to index global 'target' (a nil value)
stack traceback:
        [C]: in function '__index'
        data/events/scripts/creature.lua:45: in main chunk

[14/11/2022 22:19:43] [Error - Events::load]: Unable to load creature!
[14/11/2022 22:19:43] [Error - Events::load]: Unable to load player!
[14/11/2022 22:19:43] [Error - Events::load]: data/events/scripts/player.lua:54: 'end' expected (to close 'function' at line 48) near 'return'
not correctly added (there are no errors on the server, but the client does not show information about the item)

C++:
Startup done :]
ERROR: ProtocolGame parse message exception (58 bytes unread, last opcode is 205, prev opcode is -1): unable to create item with invalid id 0
ERROR: ProtocolGame parse message exception (58 bytes unread, last opcode is 205, prev opcode is -1): unable to create item with invalid id 0
ERROR: ProtocolGame parse message exception (58 bytes unread, last opcode is 205, prev opcode is -1): unable to create item with invalid id 0
ERROR: ProtocolGame parse message exception (58 bytes unread, last opcode is 205, prev opcode is -1): unable to create item with invalid id 0
 

Attachments

  • Скриншот 14-11-2022 231346.jpg
    Скриншот 14-11-2022 231346.jpg
    38 KB · Views: 3 · VirusTotal
Last edited:
I didn't get it, how do I get itens from better quality then common? All my itens are coming as common, can somebody explain to me?
@oen432, can you implement a crystal that can increase the rarity?
 
Hi there! I wonder if someone can do little addition to this system. I want to know how to add the item tier on the loot message, on this function
Lua:
local text = ("Loot of %s: %s"):format(mType:getNameDescription(), corpse:getContentDescription())

and here
Lua:
party:broadcastPartyLoot(text:gsub("your (bank)", player:getName():lower().."'s %1"))

Show if it is unidentified, legendary, common, etc... This way you avoid being looking every item if it has some tier when you're running out of capacity. Thanks in advance!
 
There's another little thing, the spears are allowed to get stacked because they're dropped with Item Level.
If the spears have different Item Level, they won't be able to stack. How can I possibly fix this?

Regards!
 
There's another little thing, the spears are allowed to get stacked because they're dropped with Item Level.
If the spears have different Item Level, they won't be able to stack. How can I possibly fix this?

Regards!
Stackable items do not have item level or anything, simply ignored by the script.
 
Back
Top