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

Upcoming OT Editor (-Visual ot scripter)

Would be better if you don't name it "OT" editor, if it's going to be similar to Notepad ++ it's going to be useful for scripters that aren't familiarized with Open Tibia.

Looks nice (progress).

;)

I'm using MS WordPad, not Notepad++ and it's good tool for me :D
 
Would be better if you don't name it "OT" editor, if it's going to be similar to Notepad ++ it's going to be useful for scripters that aren't familiarized with Open Tibia.

Looks nice (progress).

;)

Suggestions are welcome ^^
 
Not really much to show but..



Atm I'm working on a better autocomple system, the one I have now kindoff sucks, if I remove a character (backspace) and then add one the list starts all over


Edit;
UPDATE:
New autocomplete system done, also it's faster :)
Now working on calltips, they will be used in another way than other editors.
You will press a key combination to make it appear
The hard part will be to make a calltip to every ot function, so when this part is done I'll try to get some help by the community to finish the list.

SS:

Calltip file looks like:
Code:
[Calltip - getPlayerAccess]
w=This function will check how many seconds a player is full
 
Last edited:
Nice Zisly,
But when Revscriptsys is released this will be useless :/
Well, for thoose who will use Revscriptsys.
 
Nice Zisly,
But when Revscriptsys is released this will be useless :/
Well, for thoose who will use Revscriptsys.

why would it be useless?

I fixed the calltips, it now supports multi line tips (max is 2 lines :<).
You select the function name and press ctrl+alt+i and the calltip will show some info about the function.

SS:


I'll now try to optimize a bit
 
Last edited by a moderator:
If you would like to help me out please visit this thread:http://otland.net/f132/request-function-doc-43837/

UPDATE:
  • Code optimized
  • Added a plugins feature, no need to update the main program to add tools.
    Plugins list looks like:
    Code:
    -- NPC Creator 
    <ToolName>"NPC:Creator (Revscriptsys)"</ToolName> <path>"tools\NPC_CREATOR.exe"</path>
    -- Test
    <ToolName>"Test"</ToolName> <path>"tools\test.exe"</path>
  • Added more functions to the NPC Creator and optimized it a bit

Edit: Plugins file changed.
Now looks like:
Code:
-- NPC Creator 
ToolName="NPC:Creator (Revscriptsys)" path="tools\NPC_CREATOR.exe"
 
Last edited:
Any ETA of this editor? ^_^

If you mean beta then no, not for the public :p

Edit;
I changed so most options are set in config.lua

Which now looks like:

PHP:
-- Config file for OT Editor

-- If you want to use autocomple or not, true = enable, false = disable
UseAutoComplete="true"

-- AutoComplete file
AutoCompleteFile="AutoComplete Lib\TFS\Mystic Spirit\V.0.2.5.ini"

-- Calltips file
CallTipsFile="Data\CALLTIPS.calltip"

-- TOOLS/PLUGINS --
-- NPC Creator 
<ToolName="NPC:Creator (Revscriptsys)"> <path="Tools\NPC_CREATOR.exe">

ToolName is the name the menu item will have and path where the tool/plugin is located.
If the plugin/tool isn't in the same folder or in a sub folder as the config file then a full path is needed.
 
Last edited:
If you mean beta then no, not for the public :p

Edit;
I changed so most options are set in config.lua

Which now looks like:

PHP:
-- Config file for OT Editor

-- If you want to use autocomple or not, true = enable, false = disable
UseAutoComplete="true"

-- AutoComplete file
AutoCompleteFile="AutoComplete Lib\TFS\Mystic Spirit\V.0.2.5.ini"

-- Calltips file
CallTipsFile="Data\CALLTIPS.calltip"

-- TOOLS/PLUGINS --
-- NPC Creator 
<ToolName="NPC:Creator (Revscriptsys)"> <path="Tools\NPC_CREATOR.exe">

ToolName is the name the menu item will have and path where the tool/plugin is located.
If the plugin/tool isn't in the same folder or in a sub folder as the config file then a full path is needed.

Why in external file? :huh:

Why don't you just put 'Settings' into application.
 
I think I'm done with the Npc:Creator now ^^


A simple code I did with it:
Lua:
-- Generated by NPC:Creator v.0.1
-- Script Type: NPC
-- Script is written in Revscriptsys

local Noob = NPC:new("Noob")
Noob.outfit = { type = 140,  head = 0, body = 0, legs = 0, feet = 0}

Noob.greeting = "Hello there!"
Noob.farewell = "Hello there!"

Noob.dialog = {
["Tibia"] = "Cipsoft couldn't come up with name so they used a bones name";
["otland"] = "otland rox";
["xml"] = "xml sucks :(";
["noob"] = "you call me a noob?!";
}

Noob.trade = {
{"Sword", id=2530, buy=140};
{"Magic Sword", id=2640, buy=1000000};
}

Item ids are most likely wrong, it's just an example.
 
Back
Top