Gothic Online Forums
All about addons - Printable Version

+- Gothic Online Forums (https://archive.gothic-online.com)
+-- Forum: Scripting (English) (https://archive.gothic-online.com/forum-11.html)
+--- Forum: Tutorials (https://archive.gothic-online.com/forum-13.html)
+--- Thread: All about addons (/thread-2671.html)



All about addons - Quarchodron - 21.08.2019

          

Hey, guys


Let's talk about addons. You had many questions and lets answer all of them in this one simple thread.
It is topic for server creators.

How can i add addon to server?

Okey, first of all you don`t have to specify addon name in config or anywhere else. All you got to do is register items from addon (or mds if u have one) in items.xml on your server files. That`s from server side. Clients dont need to do anything beside install this addon on Data folder.
So clear conclusion is that G2O don't register any addons. It only register items u decide to use. No matter if player have one or no.
If u want to register any item in items.xml or mds.xml just follow the pattern of alredy existing items.

I have addon source, is there any faster method to register this items?

You can use Tool made by Patrix. It will improve ur work. 

Okey, but i wanna werify that player have addon when he join server.

No problem, just use fileMd5 function. Function check if player have specify item in given path. Also function return md5 of given file so we can version check system.

Like this: Tool made by Quarchodron Smile.