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

Creaturescripts

Taqers

New Member
Joined
Mar 18, 2021
Messages
35
Reaction score
1
Location
Germany
GitHub
Taqers
Hello,

i am creating new server with Canary 12.91. Trying to add modal window helper, but there is no creaturescripts.xml file in the folder. Can i somehow bypass it or whats the solution?

 
From what I see they moved from legacy way to link things in XML to revscript approach where you just pust a code into lua and they're self-registered once they're called on server init.

 
Thanks, i think its working so far.

Can you tell me how to do nr. 2 of Craft system?

ed3c8aa21fed0f9fc627104b8132b75f.png

Gyazo (https://gyazo.com/ed3c8aa21fed0f9fc627104b8132b75f)


I have no actions.xml either. Wondering how i can do that

Regards
 

Attachments

  • ed3c8aa21fed0f9fc627104b8132b75f.png
    ed3c8aa21fed0f9fc627104b8132b75f.png
    6.6 KB · Views: 2 · VirusTotal
@Taqers
Lua:
local action = Action()

function action.onUse(player, item, fromPosition, target, toPosition, isHotkey)
    -- put logic there
end

action:id(ITEMID)
action:register()
 
Back
Top Bottom