
Tudo que Vodkart postou
-
Erro no Script da Quest q eu Fiz
ficou show de bola tbm! bem mais clean msm ?
-
(Resolvido)Talkactions !saga
abre todos esses arquivos e depois dessa linha: doCreatureChangeOutfit(cid, outfit) adiciona essa linha embaixo setPlayerStorageValue(cid, 578744, ":"..t[getPlayerVocation(cid)]..",:"..getPlayerVocation(cid)) por exemplo do akatsuki local t = { [1] = 1096, -- [VocID] = lookTypeID [2] = 1372, [3] = 944, [4] = 1424, [5] = 1149, [6] = 1563, [7] = 565, [8] = 735, [9] = 334, [10] = 1297, [11] = 446, [12] = 828, [13] = 608, [14] = 1683, [15] = 1091, [16] = 1702, [17] = 856, [18] = 1545, [19] = 808, [20] = 1198, [21] = 650, [22] = 1616, [23] = 1168, [24] = 547, [25] = 389, [26] = 590, [27] = 1446, [50] = 1318, [52] = 349, [54] = 1049, [56] = 1439, [58] = 1772, [60] = 368, [62] = 313, [64] = 401, [66] = 497, [68] = 1804, [70] = 435, [72] = 1755, [74] = 679, [76] = 1745, [100] = 1774, [103] = 1031, [105] = 633, [107] = 359 } local key = 89785 -- Akatsuki storage local effect = 3 -- Efeito ao transformar function onSay(cid, words, param, channel) local pos = getCreaturePosition(cid) if t[getPlayerVocation(cid)] then if getCreatureStorage(cid, key) >= 1 then local outfit = {lookType = t[getPlayerVocation(cid)]} doCreatureChangeOutfit(cid, outfit) setPlayerStorageValue(cid, 578744, ":"..t[getPlayerVocation(cid)]..",:"..getPlayerVocation(cid)) doCreatureSay(cid, "!akatsuki", TALKTYPE_MONSTER) doSendMagicEffect(pos, effect) return true else doPlayerSendTextMessage(cid, 27, "Voce não fez a quest Akatsuki") doSendMagicEffect(pos, 2) return true end else doPlayerSendTextMessage(cid, 27, "Sua vocation ainda não tem akatsuki transform.") doSendMagicEffect(pos, 2) return true end return true end
-
Erro no Script da Quest q eu Fiz
local t = {[9995] = 2502,[9996] = 7464,[9997] = 2504} local storage = 158454 function onUse(cid,item,fromPosition,itemEx,toPosition) local var = t[item.actionid] if not var then return true elseif getPlayerStorageValue(cid, storage) > 0 then doPlayerSendTextMessage(cid,22,"Voce ja recebeu seu premio.") return true end doPlayerSendTextMessage(cid,22,"Você Acaba De Adquirir Um(a) " .. getItemNameById(var)) doPlayerAddItem(cid, var, 1) -- item que vai dar ao player setPlayerStorageValue(cid, storage, 1) return true end
-
[Dúvida] Registro em item
-- ### CONFIG ### -- message send to player by script "type" (types you can check in "global.lua") SHOP_MSG_TYPE = 19 -- time (in seconds) between connections to SQL database by shop script SQL_interval = 30 -- ### END OF CONFIG ### function onThink(interval, lastExecution) local result_plr = db.getResult("SELECT * FROM z_ots_comunication WHERE `type` = 'login';") if(result_plr:getID() ~= -1) then while(true) do id = tonumber(result_plr:getDataInt("id")) action = tostring(result_plr:getDataString("action")) delete = tonumber(result_plr:getDataInt("delete_it")) cid = getCreatureByName(tostring(result_plr:getDataString("name"))) if isPlayer(cid) == TRUE then local itemtogive_id = tonumber(result_plr:getDataInt("param1")) local itemtogive_count = tonumber(result_plr:getDataInt("param2")) local container_id = tonumber(result_plr:getDataInt("param3")) local container_count = tonumber(result_plr:getDataInt("param4")) local add_item_type = tostring(result_plr:getDataString("param5")) local add_item_name = tostring(result_plr:getDataString("param6")) local final_name = "este item foi comprado pelo jogador "..result_plr:getDataString("name").."." local received_item = 0 local full_weight = 0 if add_item_type == 'container' then full_weight = getItemWeightById(itemtogive_id, 1) end local free_cap = getPlayerFreeCap(cid) if full_weight <= free_cap then if add_item_type == 'container' then local new_container = doCreateItemEx(container_id, 1) doItemSetAttribute(new_container, 'description', 'Bought by ' .. getCreatureName(cid) .. ' [ID:' .. id .. '].') local iter = 0 while iter ~= container_count do doAddContainerItem(new_container, itemtogive_id, itemtogive_count) iter = iter + 1 end received_item = doPlayerAddItemEx(cid, new_container) else local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) doItemSetAttribute(new_item, 'description', 'Bought by ' .. getCreatureName(cid) .. ' [ID:' .. id .. '].') received_item = doPlayerAddItemEx(cid, new_item) end if received_item == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received >> '.. add_item_name ..' << from OTS shop.') db.executeQuery("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.executeQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";") doPlayerSave(cid) else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> The item '.. add_item_name ..' << that you just bought on the website couldnt be added. Han error has ocurred, please wait '.. SQL_interval ..' seconds.. Shop ID: '.. id ..'') end else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> The item '.. add_item_name ..' << that you just bought on the website couldnt be added. Han error has ocurred, please wait '.. SQL_interval ..' seconds.. Shop ID: '.. id ..'') end end if not(result_plr:next()) then break end end result_plr:free() end return true end
-
(Resolvido)Talkactions !saga
ela só salva a voc e a out numa storage pra qndo ele logar ficar a mesma coisa que relogou e remover o bug... vc chegou a testar?
-
[Dúvida] Registro em item
só colocar o script aqui que entrega items ao jogador! fica em globalevents se n me engano
-
No Logout
Este tópico foi movido para a área correta. Esta é uma mensagem automática! Pedimos que leia as regras do fórum!
-
Fazer item adicionar uma descrição a outro item
falha minha, faltou uma virgula kk function onUse(cid, item, fromPosition, itemEx, toPosition) if isCreature(itemEx.uid) then return doPlayerSendCancel(cid, "Use na sua Pokeball.") elseif not getItemAttribute(itemEx.uid, "poke") then return doPlayerSendCancel(cid, "Use na pokebola de seu Pokémon.") elseif not cutItem[getItemAttribute(itemEx.uid, "poke")] then return doPlayerSendCancel(cid, "Esse Pokémon não pode aprender esse HM.") elseif getItemAttribute(getPlayerSlotItem(cid, 8).uid, "flyItem") or getItemAttribute(getPlayerSlotItem(cid, 8).uid, "rideItem") or getItemAttribute(getPlayerSlotItem(cid, 8).uid, "cutItem") or getItemAttribute(getPlayerSlotItem(cid, 8).uid, "flashItem") then return doPlayerSendCancel(cid, "Os Pokémons só aceitam 1 HM.") elseif getItemAttribute(getPlayerSlotItem(cid, 8).uid, "ehditto") or getItemAttribute(getPlayerSlotItem(cid, 8).uid, "ehshinyditto") then return doPlayerSendCancel(cid, "Esse Pokémon não aceita HMs.") end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Agora seu Pokémon possui a habilidade CUT.") doItemSetAttribute(itemEx.uid, "description", "escreva aqui sua mensagem") -- edite aqui doItemSetAttribute(itemEx.uid, "cutItem", true) doRemoveItem(item.uid, 1) return true end
-
(Resolvido)[AJUDA] Spell que remove buff
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 238) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -40.2, 1, -40.2, 1) function onCastSpell(cid, var) local target = getCreatureTarget(cid) local storage = 102053 -- Storage que ta em Todos os BUffs, alguns pode não está, então coloque a mesma storage em todos os buff. if isPlayer(target) then if getPlayerStorageValue(target, storage) == 1 then setPlayerStorageValue(target, storage, 0) doRemoveConditions(target, false) doRemoveCondition(target, CONDITION_ATTRIBUTES, jin_cond_id) return doCombat(cid, combat, var) else doPlayerSendTextMessage(cid, 20, "O Player já está sem Buff.") end else doPlayerSendTextMessage(cid, 20, "Você só pode usar este Jutsu em Players, pois monstros não tem Buff.") end return true end
-
Fazer item adicionar uma descrição a outro item
function onUse(cid, item, fromPosition, itemEx, toPosition) if isCreature(itemEx.uid) then return doPlayerSendCancel(cid, "Use na sua Pokeball.") elseif not getItemAttribute(itemEx.uid, "poke") then return doPlayerSendCancel(cid, "Use na pokebola de seu Pokémon.") elseif not cutItem[getItemAttribute(itemEx.uid, "poke")] then return doPlayerSendCancel(cid, "Esse Pokémon não pode aprender esse HM.") elseif getItemAttribute(getPlayerSlotItem(cid, 8).uid, "flyItem") or getItemAttribute(getPlayerSlotItem(cid, 8).uid, "rideItem") or getItemAttribute(getPlayerSlotItem(cid, 8).uid, "cutItem") or getItemAttribute(getPlayerSlotItem(cid, 8).uid, "flashItem") then return doPlayerSendCancel(cid, "Os Pokémons só aceitam 1 HM.") elseif getItemAttribute(getPlayerSlotItem(cid, 8).uid, "ehditto") or getItemAttribute(getPlayerSlotItem(cid, 8).uid, "ehshinyditto") then return doPlayerSendCancel(cid, "Esse Pokémon não aceita HMs.") end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Agora seu Pokémon possui a habilidade CUT.") doItemSetAttribute(itemEx.uid "description", "escreva aqui sua mensagem") -- edite aqui doItemSetAttribute(itemEx.uid, "cutItem", true) doRemoveItem(item.uid, 1) return true end
-
(Resolvido)Talkactions !saga
é a mesma saga sua que vc postou, só fiz uma alteração nela
-
[Talkactions] Quest/Hunt Por "X" Tempo
faltava uma virgula local config = { quest_name = "charizard", -- nome da quest utilizada no !quest charizard pos_gay = {x=889,y=323,z=7}, -- teleport de ida pra quest tel_back = {x=889,y=319,z=7}, -- teleport de volta (templo) nivel = 1, -- nivel necessario exaust = 300, -- tempo para usar o comando (!quest charizard) (em segundos) time = 60, -- tempo que ficara na quest (em segundos) sto = 20315, -- n mecher sto2 = 20915, -- n mecher message = [[ Informacoes da quest1: Comando para entrar nela: !quest quest1 Nivel necessario: 1 Tempo que tera para completar a quest: 20 segundos Monstros que ira enfrentar: {Charizard}, {Blastoise}, {Venusaur} Premio da quest: 100 TD Experiencia: 100.000xp Sera que voce conseguira passar desse desafio? ]], -- aqui é a mensagem que aparecerá quando digitar : (!quest) } function onSay(cid, words, param, channel) if (param == '') then doPlayerPopupFYI(cid, config.message) return true end if (param == config.quest_name) then if getPlayerLevel(cid) >= config.nivel then if getPlayerStorageValue(cid, config.sto) - os.time() <= 0 and getPlayerStorageValue(cid, config.sto2) - os.time() <= 0 then doTeleportThing(cid, config.pos_gay) doSendMagicEffect(getCreaturePosition(cid),12) setPlayerStorageValue(cid, config.sto, os.time() + config.exaust) setPlayerStorageValue(cid, config.sto2, os.time() + config.time) doPlayerSendTextMessage(cid, 12, "Voce entrou, tera 60 segundos para terminar a missao, caso queira saber quanto tempo falta, fale {!quest time}.") addEvent(doTeleportThing, config.time * 1000, cid, config.tel_back) addEvent(doSendMagicEffect, config.time * 1000, getThingPos(cid), 35) end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "voce nao possui nivel.") end doPlayerSendCancel(cid, "Voce tem que esperar: " ..getPlayerStorageValue(cid, config.sto) - os.time() .." segundos para usar o comando novamente.") end if (param == "time") then if getPlayerStorageValue(cid, config.sto2) - os.time() <= 0 then doSendMagicEffect(getCreaturePosition(cid),3) doPlayerSendCancel(cid, "Voce precisa estar na quest") else doSendMagicEffect(getCreaturePosition(cid),3) doPlayerSendCancel(cid, "Voce tem : " ..getPlayerStorageValue(cid, config.sto2) - os.time() .." segundos para terminar essa quest.") end end return true end
-
(Resolvido)Talkactions !saga
tenta assim: local saga = { [1] = { 1103, 1093, 1141, 1140, 1139, 1095, 1094, 1092, 1128, 1133, 1131, 1129, 1138, 1137, 1148}, [2] = { 1408, 1406, 1398, 1405, 1404, 1403, 1402, 1401, 1409, 1396}, } local level = 50 -- Limite para liberar uma saga nova local sagastor = 578744 function onSay(cid, words, param, channel) if exhaustion.check(cid, 120) == TRUE then doPlayerSendCancel(cid, "You are exhausted.") doSendMagicEffect(getCreaturePosition(cid), 3) return true end if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o número da saga que você deseja.") exhaustion.set(cid, 120, 0.5) return true end if not saga[getPlayerVocation(cid)] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce nao pode trocar de saga.") exhaustion.set(cid, 120, 0.5) return true end local t = string.explode(param, ",") if(t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Could not understand.") return true end if not (tonumber(t[1])) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o número da saga que você deseja.") exhaustion.set(cid, 120, 0.5) return true end if tonumber(t[1]) > #saga[getPlayerVocation(cid)] or tonumber(t[1]) < 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Essa saga não existe.") exhaustion.set(cid, 120, 0.5) return true end if getPlayerLevel(cid) < (tonumber(t[1])*level) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Desculpe, você precisa de level "..(tonumber(t[1]) * level).." usar essa saga.") return true end local out = saga[getPlayerVocation(cid)][tonumber(t[1])] doCreatureChangeOutfit(cid, {lookType = out}) setPlayerStorageValue(cid, sagastor, ":"..out..",:"..getPlayerVocation(cid)) doSendMagicEffect(getThingPos(cid), saga[getPlayerVocation(cid)].effect) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce escolheu uma nova saga!") doPlayerSay(cid, "Saga!!", TALKTYPE_ORANGE_1) exhaustion.set(cid, 120, 0.5) return true end e no login.lua antes do ultimo 'return true' adc isso: local sagastor = 578744 if getPlayerStorageValue(cid, sagastor) ~= -1 then local w = tostring(getPlayerStorageValue(cid, sagastor)):gsub(':', ''):explode(',') doCreatureChangeOutfit(cid, {lookType = tonumber(w[1])}) doPlayerSetVocation(cid, tonumber(w[2])) end
-
(Resolvido)Talkactions !saga
Seu erro foi resolvido então??
-
(Resolvido)Talkactions !saga
adiciona uma storage no script que salva a voc e a outfit, ai não tem como bugar...
- [Sistema] Evento PvP
- [Sistema] Battlefield Event! V.1
- Sistema: Cassino Slots.
-
(Resolvido)error login.lua:onlogin Description:( luadoplayersendtextmessage) Player not found
local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. "Hello ." end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type {account} to manage your account and if you want to start over then type {cancel}.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type {account} to create an account or type {recover} to recover an account.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "critical") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "advance") registerCreatureEvent(cid, "TopFrags") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "attackguild") registerCreatureEvent(cid, "VipReceive") registerCreatureEvent(cid, "expvip") registerCreatureEvent(cid, "PlayerKill") registerCreatureEvent(cid, "AuraLogin") registerCreatureEvent(cid, "Auto Loot") registerCreatureEvent(cid, "vipeffects") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "TopEffect") registerCreatureEvent(cid, "BlessAmulet") registerCreatureEvent(cid, "ProtectLevel") registerCreatureEvent(cid, "hmup") registerCreatureEvent(cid, "Popup1") registerCreatureEvent(cid, "blesscheck") registerCreatureEvent(cid, "AdvEffect") registerCreatureEvent(cid, "CastleExp") registerCreatureEvent(cid, "DesertDeath") registerCreatureEvent(cid, "DesertCombat") registerCreatureEvent(cid, "BattleDeath") registerCreatureEvent(cid, "ZombieThink") registerCreatureEvent(cid, "ZombieDeath") registerCreatureEvent(cid, "BattleCombat") registerCreatureEvent(cid, "FragsGuildLogin") registerCreatureEvent(cid, "FragsGuildKill") registerCreatureEvent(cid, "ctf") registerCreatureEvent(cid, "ga1") registerCreatureEvent(cid, "ga2") registerCreatureEvent(cid, "ga3") registerCreatureEvent(cid, "gv1") registerCreatureEvent(cid, "gv2") registerCreatureEvent(cid, "gv3") if (InitArenaScript ~= 0) then InitArenaScript = 1 -- make arena rooms free for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end -- 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 registerCreatureEvent(cid, "deathchannel") if getPlayerStorageValue(cid, 48913) == -1 then setPlayerStorageValue(cid, 48913, 0) end return true end
-
(Resolvido)error login.lua:onlogin Description:( luadoplayersendtextmessage) Player not found
manda seu login.lua
-
(Resolvido)unexpected sylbol near "´" no meu login.lua. Leiam a descrição.
e ja tentou usar teu login.lua em outro serve pra ve se da esse erro?
-
(Resolvido)unexpected sylbol near "´" no meu login.lua. Leiam a descrição.
kkkkkkkkkkkkkkkkkk loginMessage = "Salve Parceiro (a)! Seja bem vindo ao Baiak Smoking. Ascenda seu baseado e vamos chapar juntos." pode baixar um login.lua de outro serve só pra testar se funciona no seu? ai vc copia e cola e ve se abre por favor
-
Npc Auction Versão 1.0 [Atualizado]
combinado ?
-
(Resolvido)unexpected sylbol near "´" no meu login.lua. Leiam a descrição.
então manda o config.lua pra mim ver como está a msg no inicio
-
(Resolvido)unexpected sylbol near "´" no meu login.lua. Leiam a descrição.
kkkk costume kkkk é login.lua mesmo! pode dar uma olhada na sua pasta e ver se tem mais de um arquivo desses? achoi que descobri. local config = { loginMessage = getConfigValue("loginMessage"), useFragHandler = getBooleanFromString(getConfigValue("useFragHandler")) } function onLogin(cid) local loss = getConfigValue("deathLostPercent") if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. "Hello." doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type {account} to manage your account and if you want to start over then type {cancel}.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type {account} to create an account or type {recover} to recover an account.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "critical") registerCreatureEvent(cid, "recompensa") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "advance") registerCreatureEvent(cid, "TopFrags") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "attackguild") registerCreatureEvent(cid, "VipReceive") registerCreatureEvent(cid, "expvip") registerCreatureEvent(cid, "PlayerKill") registerCreatureEvent(cid, "AuraLogin") registerCreatureEvent(cid, "Auto Loot") registerCreatureEvent(cid, "vipeffects") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "TopEffect") registerCreatureEvent(cid, "BlessAmulet") registerCreatureEvent(cid, "ProtectLevel") registerCreatureEvent(cid, "TiraBattle") registerCreatureEvent(cid, "hmup") registerCreatureEvent(cid, "Popup1") registerCreatureEvent(cid, "blesscheck") registerCreatureEvent(cid, "AdvEffect") registerCreatureEvent(cid, "CastleExp") registerCreatureEvent(cid, "DesertDeath") registerCreatureEvent(cid, "DesertCombat") registerCreatureEvent(cid, "BattleDeath") registerCreatureEvent(cid, "ZombieThink") registerCreatureEvent(cid, "ZombieDeath") registerCreatureEvent(cid, "BattleCombat") registerCreatureEvent(cid, "FragsGuildLogin") registerCreatureEvent(cid, "FragsGuildKill") registerCreatureEvent(cid, "ctf") registerCreatureEvent(cid, "ga1") registerCreatureEvent(cid, "ga2") registerCreatureEvent(cid, "ga3") registerCreatureEvent(cid, "gv1") registerCreatureEvent(cid, "gv2") registerCreatureEvent(cid, "gv3") if (InitArenaScript ~= 0) then InitArenaScript = 1 for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end if getPlayerStorageValue(cid, 42309) < 1 then for i = 42300, 42309 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42319) < 1 then for i = 42310, 42319 do setPlayerStorageValue(cid, i, 0) end end 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) end setPlayerStorageValue(cid, 42350, 0) setPlayerStorageValue(cid, 42352, 0) registerCreatureEvent(cid, "deathchannel") if getPlayerStorageValue(cid, 48913) == -1 then setPlayerStorageValue(cid, 48913, 0) end return true end