Hey Guys just some scripts i made today, if someone would like to post them on Pastebin and send me the links ill give ya credits its just to late at night for me to do it
Code
--[[
Made by Denidov
]]--
local delay = 60000
local ServerName = "ServerName"
local ServerType = "Funserver"
local ServerWebsite = "http://www.my-server.com/"
local ServerSummary = "This server is a funserver.$B$BWe hope you enjoy your stay."
local announcetype = 2
--[[ type 1 is across the screen and type 2 is chatbox]]--
function AutoAnnouncer(event, player, unit)
RandomAnnounce=math.random(1,4)
if RandomAnnounce==1 then
SendWorldMessage("Welcome to "..ServerName.."", announcetype)
end
if RandomAnnounce==2 then
SendWorldMessage("This is a "..ServerType.."", announcetype)
end
if RandomAnnounce==3 then
SendWorldMessage("Please Visit "..ServerWebsite.."", announcetype)
end
if RandomAnnounce==4 then
SendWorldMessage(""..ServerSummary.."", announcetype)
end
end
RegisterTimedEvent("AutoAnnouncer", delay, 0)
Code
--[[ Made by Denidov
]]--
--[[Local Ports]]--
local Map = 0
local X = -13260.228516
local Y = 160.768799
local Z = 36.332066
--[[Local Zones]]--
local zone = 33
function OnDeath(event, player)
if (player:IsDead() == true) then
if (player:GetZoneId() == zone) then
player:CastSpell(24341)
player:Teleport(Map, X, Y, Z)
player:CastSpellOnTarget(48068, player)
player:CastSpellOnTarget(48161, player)
player:CastSpellOnTarget(20217, player)
player:CastSpellOnTarget(48469, player)
player:CastSpellOnTarget(42995, player)
player:CastSpellOnTarget(48073, player)
end
end
end
RegisterServerHook(6, "OnDeath")
Code
--[[ Made by Denidov
]]--
--[[Banned Named]]--
local name1 = Denidov
local name2 = Denidov
local name3 = Denidov
local name4 = Denidov
local name5 = Denidov
local name6 = Denidov
local name7 = Denidov
---------------------
function OnEnterWorld(event, player, unit)
if player:GetName("name1, name2, name3, name4, name5, name6, name7") == true) then
player:SetHealth(-1)
end
end
RegisterServerHook(4, "OnEnterWorld")
Code
--[[ Made by Denidov
]]--
--[[Configs]]--
local map =
local x =
local y =
local z =
local token =
---------------
function OnJail(event, player, unit)
if (player:GetHealth() =< 25000) then
player:SetHealth(20000)
player:Teleport(map, x, y, z)
player:AddItem (token, 1)
end
if (player:GetMana() =< 30000) then
player:SetMana(25000)
player:Teleport(map, x, y, z)
player:AddItem (token, 1)
end
if (player:GetPlayerLevel() =< 81) then
player:SetLevel(80)
player:Teleport(map, x, y, z))
player:AddItem (token, 1)
end
if (unit:IsFlying(player) == true) then
if (player:IsGM(3) == false) then
elseif (player:IsGM(a) == false) then
elseif (player:IsGM(az) == false) then
player:SetFlying(0)
player:Teleport(map, x, y, z))
player:AddItem (token, 1)
end
if (player:GetItemCount(token) > 5) then
player:SoftDisconnect
end
end
RegisterServerHook(4, "OnJail")