Destroyed Lua template (textile)

TurmoilToad 2019-09-20 11:48:45 -04:00
parent 261583151b
commit 86829ca11a

@ -1,43 +0,0 @@
<pre><code>
e.self:Say(string.format(" %s ",e.other:GetName())); -- to use player name in place of %s in the text.
local fac = e.other:GetFaction(e.self); -- to use for faction condition in an if statement.
function event_say(e)
if(e.message:findi("")) then
e.self:Say("");
elseif(e.message:findi("")) then
e.self:Say("");
elseif(e.message:findi("")) then
e.self:Say("");
elseif(e.message:findi("")) then
e.self:Say("");
end
end
function event_trade(e)
local item_lib = require("items");
if(item_lib.check_turn_in(e.trade, {item1 = 0})) then
e.self:Say("");
e.other:SummonItem(0);
e.other:Ding();
e.other:Faction(0,0,0);
e.other:Faction(0,0,0);
e.other:Faction(0,0,0);
e.other:Faction(0,0,0);
e.other:Faction(0,0,0);
e.other:AddEXP(0);
e.other:GiveCash(0,0,0,0);
end
item_lib.return_items(e.self, e.other, e.trade)
end
function event_waypoint_arrive(e)
if(e.wp == 0) then
e.self:Say("");
elseif(e.wp == 0) then
e.self:Say("");
end
end
</code></pre>