• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[REQUEST] - Change of Script

jNo

New Member
Joined
Oct 4, 2012
Messages
12
Reaction score
0
Hello, I have these good following script is not working more on my server 8.60 "BAIAK." Would you like some help:


1 Script - was supposed to leave the effect as shown in the link below, but I put the storage and 65534 did not work, I was able to modify someone to work with who has the (VIP) at the beginning of the nick, thanks.


Code:
local effect = 30 -- Efeito que vai usar
local storage = 65534 -- Storage que o player precisa ter
local tempo =  30 -- Tempo em segundos

function onLogin(cid)
if getPlayerStorageValue(cid, storage) == 1 then
SendEffect(cid)
end
return TRUE
end

function SendEffect(cid)
doCreatureSay(cid, "VIP" , 19)
addEvent(SendEffect, tempo*1000, cid)
return TRUE
end


2 Script - It was supposed to later add the addon in the Wisp char, but it did not work:


Code:
--[[  Script by EddyHavoc ]]--

function onUse(cid, item, frompos, item2, topos)
if item.uid == 8913 then
queststatus = getPlayerStorageValue(cid,1500)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found first wisp addon.")
doPlayerAddOutfit(cid, 294, 1)
doPlayerAddOutfit(cid, 294, 1)
setPlayerStorageValue(cid,1500,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
  end
end


3 Script - This script below invasion was to switch to NON PVP before the invasion and after bixo be killed back to PVP normal.


Code:
local i = {
["20:14"] = {nome = "The Demon Invasion", pos = {x=32369, y=32167, z=7}, monster = {"50 Demon", "1 The Imperor"}},
["14:35"] = {nome = "The Massive Dragon Invasion", pos = {x=32368, y=32188, z=8}, monster = {"200 Dragon"}},
}

function onThink(interval, lastExecution)
hours = tostring(os.date("%X")):sub(1, 5)
tb = i[hours]
if tb then
doBroadcastMessage(hours .. " - " .. tb.nome .. " iníciou.")
for _,x in pairs(tb.monster) do
for s = 1, tonumber(x:match("%d+")) do
doSummonCreature(x:match("%s(.+)"), tb.pos)
end
end
end
return true
end

- - - Updated - - -

Up.
 
Back
Top