Home Download Forum My Account Store NPC/Item Drop Database

need a script save html form npc

READ FIRST: L2Divine Forum Rules

need a script save html form npc

Post by skyline9394 on Fri Oct 13, 2017 05:38 AM

hi all i found a script thta save npc html but is not for divine
will this script work on it ?
or can someone covert it to work?

HtmlStatus = false;
--------------------------------------------------------------------------------
function OnCreate()
this:RegisterCommand("html", CommandChatType.CHAT_ALLY, CommandAccessLevel.ACCESS_ME);
end;
--------------------------------------------------------------------------------
function OnCommand_html(vCommandChatType, vNick, vCommandParam)
if (HtmlStatus == false) then
HtmlStatus = true;
ShowToClient("Plugin","HTML saved.");
end;
end;
--------------------------------------------------------------------------------
function OnLTick1s()
if(HtmlStatus)then
local file = io.open(GetDir() .. "html.txt", "w");
file:write(tostring(GetDialogHtml()).. "\n");
file:close();
HtmlStatus = false;
end;
end;
Avatar
Registered User
 
Posts: 1
Joined: Thu Oct 12, 2017 09:15 PM


Who is online

In total there is 2 user online
Registered users: malihua, zenithmaster
Legend: , , , Registered User

2006-2017 ☻ L2DIVINE.COM