• 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!

Lua How do I attach custom scripts to weapons in otservbr?

Hoskital

New Member
Joined
Mar 27, 2022
Messages
4
Reaction score
0
When I was on TFS, could just specify my script in the weapons.xml like
XML:
<melee id="7424" level="30" unproperly="1" script="whatever.lua"/>

On otservbr however, there is no longer a weapons.xml, just a lua with all the unscripted weapons. If possible, I'd like to attach the same script to many different weapons like I could do before. Is this possible?

I've checked the scripts under weapons/scripts and tried to replicate them with melee weapons but were unsuccessful. And even if I did succeed, the scripts there have an item ID attached to them which makes is hard/tedious to use the same script for many different weapons.

 
Back
Top