local config = {
useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}
function onLogin(cid)
local text = "- Welcome to Servera, here's a list of commands:\n!aol -> Buy an amulet of loss\n!bless -> Get blessed by the Gods\n!exp -> Experience for next level\n!spells -> List of spells available\n!kills -> See your current frags\n!explorer -> Buy a bp with shovel, pick, rope for 500gps\nCtrl+R -> Report bugs to staff\n- Visit our webpage for a complete list of commands.\n//Servera Staff"
local useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end
local lastLogin = getPlayerLastLoginSaved(cid)
if(lastLogin > 0) then
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE, text)
else
doPlayerSendOutfitWindow(cid)
end
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildEvents")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "ThankYou")
registerCreatureEvent(cid, "AdvanceSave")
registerCreatureEvent(cid, "Idle")
if(config.useFragHandler) then
registerCreatureEvent(cid, "SkullCheck")
end
registerCreatureEvent(cid, "inquisitionPortals")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "AdvanceSave")
registerCreatureEvent(cid, "ArenaKill")
registerCreatureEvent(cid, "reward")
registerCreatureEvent(cid, "PythiusTheRotten")
registerCreatureEvent(cid, "levelUp")
registerCreatureEvent(cid, "forever amulet")
registerCreatureEvent(cid, "charge amulet")
-- if he did not make full arena 1 he must start from zero
if getPlayerStorageValue(cid, 42309) < 1 then
for i = 42300, 42309 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 2 he must start from zero
if getPlayerStorageValue(cid, 42319) < 1 then
for i = 42310, 42319 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 3 he must start from zero
if getPlayerStorageValue(cid, 42329) < 1 then
for i = 42320, 42329 do
setPlayerStorageValue(cid, i, 0)
end
end
if getPlayerStorageValue(cid, 42355) == -1 then
setPlayerStorageValue(cid, 42355, 0) -- did not arena level
end
setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
setPlayerStorageValue(cid, 42352, 0) -- is not in arena
return true
end
local config = {
useFragHandler = getBooleanFromString(getConfigValue('useFragHandle r'))
}
function onLogin(cid)
if getPlayerStorageValue(cid, 30031) == -1 then -- Storages for doors that should be opened --
setPlayerStorageValue(cid, 30031, 1)
end
local text = "- Welcome to Servera, here's a list of commands:\n!aol -> Buy an amulet of loss\n!bless -> Get blessed by the Gods\n!exp -> Experience for next level\n!spells -> List of spells available\n!kills -> See your current frags\n!explorer -> Buy a bp with shovel, pick, rope for 500gps\nCtrl+R -> Report bugs to staff\n- Visit our webpage for a complete list of commands.\n//Servera Staff"
local useFragHandler = getBooleanFromString(getConfigValue('useFragHandle r'))
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end
local lastLogin = getPlayerLastLoginSaved(cid)
if(lastLogin > 0) then
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE _BLUE, text)
else
doPlayerSendOutfitWindow(cid)
end
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildEvents")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "ThankYou")
registerCreatureEvent(cid, "AdvanceSave")
registerCreatureEvent(cid, "Idle")
if(config.useFragHandler) then
registerCreatureEvent(cid, "SkullCheck")
end
registerCreatureEvent(cid, "inquisitionPortals")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "AdvanceSave")
registerCreatureEvent(cid, "ArenaKill")
registerCreatureEvent(cid, "reward")
registerCreatureEvent(cid, "PythiusTheRotten")
registerCreatureEvent(cid, "levelUp")
registerCreatureEvent(cid, "forever amulet")
registerCreatureEvent(cid, "charge amulet")
-- if he did not make full arena 1 he must start from zero
if getPlayerStorageValue(cid, 42309) < 1 then
for i = 42300, 42309 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 2 he must start from zero
if getPlayerStorageValue(cid, 42319) < 1 then
for i = 42310, 42319 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 3 he must start from zero
if getPlayerStorageValue(cid, 42329) < 1 then
for i = 42320, 42329 do
setPlayerStorageValue(cid, i, 0)
end
end
if getPlayerStorageValue(cid, 42355) == -1 then
setPlayerStorageValue(cid, 42355, 0) -- did not arena level
end
setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
setPlayerStorageValue(cid, 42352, 0) -- is not in arena
return true
end
30031 ~= 100Need a script so that all players on the server can open quest doors with action id 100. Rep++ for help.