

Adriez
Visconde-
Total de itens
341 -
Registro em
-
Última visita
Tudo que Adriez postou
-
como resolver ??? function onUse(cid, item, frompos, item2, pos) wall1 = {x=pos.x-1, y=pos.y, z=pos.z, stackpos=1} wall1s1 = {x=pos.x-1, y=pos.y, z=pos.z, stackpos=2} getwall1 = getThingfromPos(wall1) getwall1s1 = getThingfromPos(wall1s1) wall2 = {x=pos.x, y=pos.y-1, z=pos.z, stackpos=1} wall2s1 = {x=pos.x, y=pos.y-1, z=pos.z, stackpos=2} getwall2 = getThingfromPos(wall2) getwall2s1 = getThingfromPos(wall2s1) player = getPlayerPosition(cid) if item.itemid == 1857 or item.itemid == 1860 or item.itemid == 1863 or item.itemid == 1866 or item.itemid == 1869 or item.itemid == 1872 or item.itemid == 1880 or item.itemid == 5616 then --flat tapestry if getwall1.itemid == 1036 or getwall1.itemid == 1040 or getwall1.itemid == 1041 or getwall1.itemid == 1042 or getwall1.itemid == 1043 or getwall1.itemid == 1044 or getwall1.itemid == 1046 or getwall1.itemid == 1049 or getwall1.itemid == 1053 or getwall1.itemid == 1054 or getwall1.itemid == 1055 or getwall1.itemid == 1056 or getwall1.itemid == 1057 or getwall1.itemid == 1059 or getwall1.itemid == 1100 or getwall1.itemid == 1104 or getwall1.itemid == 1105 or getwall1.itemid == 1106 or getwall1.itemid == 1107 or getwall1.itemid == 1108 or getwall1.itemid == 1110 or getwall1.itemid == 1111 or getwall1.itemid == 1115 or getwall1.itemid == 1116 or getwall1.itemid == 1117 or getwall1.itemid == 1119 or getwall1.itemid == 3361 or getwall1.itemid == 3365 or getwall1.itemid == 3366 or getwall1.itemid == 3367 or getwall1.itemid == 3369 or getwall1.itemid == 5261 or getwall1.itemid == 5265 or getwall1.itemid == 5266 or getwall1.itemid == 5267 or getwall1.itemid == 5268 or getwall1.itemid == 5269 or getwall1.itemid == 5271 then --west facing if getwall1s1.itemid > 0 then if getwall2.itemid == 1037 or getwall2.itemid == 1039 or getwall2.itemid == 1040 or getwall2.itemid == 1042 or getwall2.itemid == 1044 or getwall2.itemid == 1045 or getwall2.itemid == 1046 or getwall2.itemid == 1050 or getwall2.itemid == 1052 or getwall2.itemid == 1053 or getwall2.itemid == 1055 or getwall2.itemid == 1057 or getwall2.itemid == 1058 or getwall2.itemid == 1059 or getwall2.itemid == 1061 or getwall2.itemid == 1064 or getwall2.itemid == 1066 or getwall2.itemid == 1068 or getwall2.itemid == 1069 or getwall2.itemid == 1070 or getwall2.itemid == 1039 or getwall2.itemid == 1101 or getwall2.itemid == 1103 or getwall2.itemid == 1104 or getwall2.itemid == 1106 or getwall2.itemid == 1108 or getwall2.itemid == 1109 or getwall2.itemid == 1110 or getwall2.itemid == 1112 or getwall2.itemid == 1114 or getwall2.itemid == 1115 or getwall2.itemid == 1117 or getwall2.itemid == 1118 or getwall2.itemid == 1119 or getwall2.itemid == 3362 or getwall2.itemid == 3364 or getwall2.itemid == 3365 or getwall2.itemid == 3367 or getwall2.itemid == 3368 or getwall2.itemid == 3369 or getwall2.itemid == 5262 or getwall2.itemid == 5264 or getwall2.itemid == 5265 or getwall2.itemid == 5267 or getwall2.itemid == 5269 or getwall2.itemid == 5270 or getwall2.itemid == 5271 then --south facing if getwall2s1.itemid > 0 then else doRemoveItem(item.uid,1) doCreateItem(item.itemid-2,1,wall2) end end else doRemoveItem(item.uid,1) doCreateItem(item.itemid-1,1,wall1) end elseif getwall2.itemid == 1037 or getwall2.itemid == 1039 or getwall2.itemid == 1040 or getwall2.itemid == 1042 or getwall2.itemid == 1044 or getwall2.itemid == 1045 or getwall2.itemid == 1046 or getwall2.itemid == 1050 or getwall2.itemid == 1052 or getwall2.itemid == 1053 or getwall2.itemid == 1055 or getwall2.itemid == 1057 or getwall2.itemid == 1058 or getwall2.itemid == 1059 or getwall2.itemid == 1061 or getwall2.itemid == 1064 or getwall2.itemid == 1066 or getwall2.itemid == 1068 or getwall2.itemid == 1069 or getwall2.itemid == 1070 or getwall2.itemid == 1039 or getwall2.itemid == 1101 or getwall2.itemid == 1103 or getwall2.itemid == 1104 or getwall2.itemid == 1106 or getwall2.itemid == 1108 or getwall2.itemid == 1109 or getwall2.itemid == 1110 or getwall2.itemid == 1112 or getwall2.itemid == 1114 or getwall2.itemid == 1115 or getwall2.itemid == 1117 or getwall2.itemid == 1118 or getwall2.itemid == 1119 or getwall2.itemid == 3362 or getwall2.itemid == 3364 or getwall2.itemid == 3365 or getwall2.itemid == 3367 or getwall2.itemid == 3368 or getwall2.itemid == 3369 or getwall2.itemid == 5262 or getwall2.itemid == 5264 or getwall2.itemid == 5265 or getwall2.itemid == 5267 or getwall2.itemid == 5269 or getwall2.itemid == 5270 or getwall2.itemid == 5271 then --south facing if getwall2s1.itemid > 0 then else doRemoveItem(item.uid,1) doCreateItem(item.itemid-2,1,wall2) end end elseif item.itemid == 1856 or item.itemid == 1859 or item.itemid == 1862 or item.itemid == 1865 or item.itemid == 1868 or item.itemid == 1871 or item.itemid == 1879 or item.itemid == 5615 then --west facing if (player.x == pos.x+1) then doPlayerAddItem(cid, item.itemid+1, 1) doRemoveItem(item.uid,1) end elseif item.itemid == 1855 or item.itemid == 1858 or item.itemid == 1861 or item.itemid == 1864 or item.itemid == 1867 or item.itemid == 1870 or item.itemid == 1878 or item.itemid == 5614 then --south facing if (player.y == pos.y+1) then doRemoveItem(item.uid,1) doPlayerAddItem(cid, item.itemid+2, 1) end end
-
blz galera, como resolver ?? Check server configuration Error occured! Error ID: More info: ERROR: #C-1 : Class::ConfigLUA - Line 37 of LUA config file is not valid [key: violationNameReportActionType 1] File: C:\xampp\xampp\htdocs\classes/configlua.php Line: 59 File: C:\xampp\xampp\htdocs\classes/configlua.php Line: 20 File: C:\xampp\xampp\htdocs\classes/configlua.php Line: 12 File: C:\xampp\xampp\htdocs/install.php Line: 249 consegui instalar vejo meu site tudo certo só q não consigo, abrir o ot da unable to load config.lua consegui resolver agora meu gesior nao cria conta pelo site putz deve ta bugado e pelo jogo tive q instala account maanger na db pqp o cara falou q o gesio deletava bugado nao no post já resolvi isso o problema agora é esse, fala galera na moral desde tarde ate agora procurando e nada meu gesior não acompanha os samples alterei todos os samples pra posição q eu quero q nasça as novas contas, eu crio a conta vou la na db as posição ta tudo 0 0 0 =.=
-
fala galera eu pensando aqui ta bom o cara vai comprar por grana e etc da loja gesior,mais como faço eu pra testar ela ve se ta funcionando a compra a entrega dos items é etc, obrigado
-
blz galera, passei meu ot pra mysql e todos os baus actions parou de funfa e todos itens atras deles tbm não estão dando o efeito q dava, vou ter q refazer um por um ou da pra arrumar de uma vez só, segue o erro
-
fala galera, boa tarde assim q crio o boneco no site ou no account manager da esse erro já resolvi obrigado
-
tu é foda mesmo tinha esquecido reloaded, valeu rep tudo
-
blz galera, criei o site ta funcionando,só q agora na hora de abre o ot da esse erro unable to load config.lua
-
mano mesmo erro, tu pode criar um scrip do seu msm q eu quero é isso só vip fala vermelho e q custe gold a ele e q tenha exauste flws vlw
-
tfs 0.3.6 [Encerrado] Account Manager Criando Dois Nomes Iguais
tópico respondeu ao Adriez de Adriez em Tópicos Sem Resposta
Na source tem uma q chama accounts mais como edito lá pra ele bloquear o (vip) Já procurei pacas isso ate no ot land nada achei -
blz galera, eu tenho um ot eu gostaria de passar ele pra mysql, eu já tenho site gesior e etc
-
funciono mais ta dando erro no console e o player consegue falar sem parar não tem exaustion o erro deve ser referente a isso, eu peguei uma distro crymson version mais nova 8.2 sei la q no ot land ja fiz de tudo mais nao consigo compila em console ai tem ficar tirando fota e postando uhueuhe
-
muito obrigado, foda vai ser testar esse meu vip por pontos não sei aonde fica o comando de remover dias dele e nem ver quanto dias os palyers tem pq meu ot tem dois tipo de vip, se tiver como tu criar um ai pra quem pegar a vip daquele sistema de vip q te passei ia ser muito bom,ai eu editava assim !diasdonate e um comando pra mim retirar elas pra ve ta funfando o teleporte automatico, muito obrigado
-
fala galera blz boa noite, é o seguinte no meu creatures events num tem nenhum anti mc e mesmo assim não consigo logar duas contas no meu ot, qual outro lugar poderia está bloqueado ?? se eu pego a distro e coloco em outro ot funciona o mc do ot então num é na distro certo ?? se for na distro source posso olhar tbm aonde ?? pode fechar já consegui....
-
blz galera boa noite, como conserta esses dois erros aos script aí local GemsConfig = { [2153] = { vocations = {4, 8, 12}, effect = CONST_ME_EXPLOSIONAREA, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SKILL_MELEEPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } }, [2154] = { vocations = {3, 7, 11}, effect = CONST_ME_HOLYDAMAGE, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SKILL_DISTANCEPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } }, [2156] = { vocations = {1, 5, 9}, effect = CONST_ME_MORTAREA, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_STAT_MAGICLEVELPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } }, [2158] = { vocations = {2, 6, 10}, effect = CONST_ME_SMALLPLANTS, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_STAT_MAGICLEVELPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } } } local Conditions = {} for itemid, info in pairs(GemsConfig) do Conditions[itemid] = {} for condition, parameters in pairs(info.conditions) do local new = createConditionObject(condition) for parameter, value in pairs(parameters) do setConditionParam(new, parameter, value) end table.insert(Conditions[itemid], new) end end local function doShowGemAura(cid, type) local position = getThingPosition(cid) doSendMagicEffect(position, type) if isCreature(cid) then if getCreatureCondition(cid, CONDITION_ATTRIBUTES, 200) then addEvent(doShowGemAura, 1 * 1000, cid, type) end end return true end function onUse(cid, item, fromPosition, itemEx, toPosition) if not GemsConfig[item.itemid] then return false end if not isInArray(GemsConfig[item.itemid].vocations, getPlayerVocation(cid)) then return doPlayerSendCancel(cid, "You cannot use this spirit gem.") end if getCreatureCondition(cid, CONDITION_ATTRIBUTES, 200) then return false end for _, condition in pairs(Conditions[item.itemid]) do doAddCondition(cid, condition) end doCreatureSay(cid, "AAAAH! I FEEL THE POWER!", TALKTYPE_ORANGE_1) doSendMagicEffect(toPosition, GemsConfig[item.itemid].effect) addEvent(doShowGemAura, 1 * 1000, cid, GemsConfig[item.itemid].effect) doRemoveItem(item.uid, 1) return true end agora do mount -- [( Mount System 1.4 created by Doidin for XTibia.com )] -- function onUse(cid, item) local outfit = {lookType = 4} -- Outfit da montaria! local exhaust = 60 -- Tempo para player poder usar o item novamente! (tempo em segundos) local time = 60 -- Tempo para ficar na montaria! (tempo em segundos) local speed = 300 -- Velocidade adicionada ao player após usar o item! (300 = velocidade, quanto maior mais rapido...) local mana = 500 -- Quantidade de mana que o player necessita para usar o sistema! local premium = "yes" -- Apenas players premium accounts "yes" or "no"!? local storage = 9393 -- Não mexa aqui! if premium == "yes" and not isPremium(cid) then return doPlayerSendTextMessage(cid, 23, "Sorry, only premium players.") end if(getCreatureMana(cid) < mana) then return doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHMANA) end if (getPlayerStorageValue(cid, storage) <= os.time()) then doCreatureSay(cid, "Yeeeah!!!\nYou went up on his ride.", 19) doSetCreatureOutfit(cid, outfit, time*1000) doChangeSpeed(cid, speed) doSendMagicEffect(getCreaturePosition(cid), 34) setPlayerStorageValue(cid, storage, os.time()+exhaust) doPlayerAddMana(cid, -mana) addEvent(doChangeSpeed, time*1000+40, cid, -speed) addEvent(doPlayerSendTextMessage, time*1000+45, cid, 23, "Mount System is time out!") addEvent(doSendMagicEffect, time*1000+50, getCreaturePosition(cid), 2) else doPlayerSendCancel(cid, "Sorry, you only can again use this item after "..exhaust.." seconds.") end return TRUE end
-
otserv 8.x The Forgotten Server 0.3.6 (Crying Damson) V8.1
tópico respondeu ao LuckinhaSan de Adriez em OTServ Comum
eu quero voltar ao normal na source, esse trem de anti paralyze - Adicionado Paralyze Bot Dedection!, fica subindo no distro toda hora isso bot-anti paralyze isso faz crasha não ???- 9 respostas
-
- otserv
- otservlist
-
(e 5 mais)
Tags:
-
Quando Vip Acabar,ser Teleportado Para O Templo
tópico respondeu ao Vodkart de Adriez em Globalevents e Spells
o endvip testei todos nenhum deu no meu ot alguem poderia me ajudar ??? obrigado -
faça um global events pro cara vip fica subindo uma msg escrita vip nele
-
blz galera bom dia, eu tenho esse talkaction no meu servidor, o meu sistema vip e por storage ai gostaria de bloquear esse comando só pra vips poder falar ou então por uma determinada vocação. ---By Masterpako19--- --Config-- local cash = 500 -- Dinero que se nesecita para hacer el broadcast (en gps) local levelneeded = 8 -- Level necesario para hacer el broadcast local lenght = 100 -- Maximo de caracteres del mensaje local messagesort = MESSAGE_STATUS_WARNING -- can be "MESSAGE_STATUS_WARNING" or "TALKTYPE_ORANGE_1" check your global.lua for more... local exhaustTime = 1 * 60 * 1000 -- tiempo de exausted entre cada mensaje (para cambiar mas minutos cambia el 4 por x cantidad de minutos) local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, exhaustTime) --End of config-- function onSay(cid, words, param) if getCreatureCondition(cid, CONDITION_EXHAUST) == TRUE then doPlayerSendCancel(cid, "Lo siento, nesecitas esperas 1 minutos para mansar otro mensaje") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return TRUE end local name = getPlayerName(cid) local level = getPlayerLevel(cid) if isCreature(cid) == TRUE then if param ~= nil then if string.len(param) < lenght then if level >= levelneeded then if doPlayerRemoveMoney(cid, cash) == TRUE then broadcastMessage( ''..name..' ['..level..'] dice: ' .. param .. '', messagesort) --exhaustion.set(cid, storageValue,exhaustTime) doAddCondition(cid, exhaust) return TRUE else doPlayerSendCancel(cid, 'Tu nesecitas '..cash..' gps para hacer un broadcast!') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return TRUE end else doPlayerSendCancel(cid, 'Tu nesecitas ser level '..levelneeded..' para hacer un broadcast!') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return TRUE end else doPlayerSendCancel(cid, 'No mas de ' .. lenght .. ' caracteres. ') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return TRUE end else doPlayerSendCancel(cid, 'Nesecitas escribir algo!') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return TRUE end else doPlayerSendCancel(cid, 'You haven\'t a target!') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return TRUE end return TRUE end
-
blz galera bom dia, eu tenho esse talkaction no meu servidor, o meu sistema vip e por storage ai gostaria de bloquear esse comando só pra vips poder falar ---By Masterpako19--- --Config-- local cash = 500 -- Dinero que se nesecita para hacer el broadcast (en gps) local levelneeded = 8 -- Level necesario para hacer el broadcast local lenght = 100 -- Maximo de caracteres del mensaje local messagesort = MESSAGE_STATUS_WARNING -- can be "MESSAGE_STATUS_WARNING" or "TALKTYPE_ORANGE_1" check your global.lua for more... local exhaustTime = 1 * 60 * 1000 -- tiempo de exausted entre cada mensaje (para cambiar mas minutos cambia el 4 por x cantidad de minutos) local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, exhaustTime) --End of config-- function onSay(cid, words, param) if getCreatureCondition(cid, CONDITION_EXHAUST) == TRUE then doPlayerSendCancel(cid, "Lo siento, nesecitas esperas 1 minutos para mansar otro mensaje") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return TRUE end local name = getPlayerName(cid) local level = getPlayerLevel(cid) if isCreature(cid) == TRUE then if param ~= nil then if string.len(param) < lenght then if level >= levelneeded then if doPlayerRemoveMoney(cid, cash) == TRUE then broadcastMessage( ''..name..' ['..level..'] dice: ' .. param .. '', messagesort) --exhaustion.set(cid, storageValue,exhaustTime) doAddCondition(cid, exhaust) return TRUE else doPlayerSendCancel(cid, 'Tu nesecitas '..cash..' gps para hacer un broadcast!') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return TRUE end else doPlayerSendCancel(cid, 'Tu nesecitas ser level '..levelneeded..' para hacer un broadcast!') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return TRUE end else doPlayerSendCancel(cid, 'No mas de ' .. lenght .. ' caracteres. ') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return TRUE end else doPlayerSendCancel(cid, 'Nesecitas escribir algo!') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return TRUE end else doPlayerSendCancel(cid, 'You haven\'t a target!') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return TRUE end return TRUE end
-
tfs 0.3.6 [Encerrado] Account Manager Criando Dois Nomes Iguais
tópico respondeu ao Adriez de Adriez em Tópicos Sem Resposta
eu tenho a source que parte delas muda ??? -
boa noite, funciono agora com oq faz pra quando o vip sair o cara ser teleportado pro templo ???
-
pedido VIP no nome, ao usar item que da Vip Time.
pergunta respondeu ao EddyHavaiano de Adriez em Scripts
esse sistema vip no nome é bugado da pra criar um char com mesmo do cara só q fica sem vip no nome -
talkaction Perfect VIP system 2.2 by EddyHavoc
tópico respondeu ao EddyHavaiano de Adriez em Actions e Talkactions
esse vip da pra criar dois char com mesmo nome exemplo VIP SPARTAN ai da pra criar o char spartan ai quando vip acaba buga a db toda.... -
tfs 0.3.6 [Encerrado] Account Manager Criando Dois Nomes Iguais
um tópico no fórum postou Adriez Tópicos Sem Resposta
fala galera boa tarde é o seguinte meu servidor tem vip aí quando o cara pega (VIP) Spartan o account manager deixa criar outro boneco somente com o nome Spartan ai quando o vip do cara sai buga db fica dois nomes Spartan como arrumar segue meu login.lua aí local config = { loginMessage = getConfigValue('loginMessage') } 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 .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) 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, "Mail") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "killer") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "attackguild") registerCreatureEvent(cid, "advance") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "DeathC") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "PlayerKill") registerCreatureEvent(cid, "ZombieAttack") registerCreatureEvent(cid, "DeathBroadcast") registerCreatureEvent(cid, "SkullAmulet") registerCreatureEvent(cid, "BlessDrop") registerCreatureEvent(cid, "DeathList") registerCreatureEvent(cid, "GalaxySkullAmulet") registerCreatureEvent(cid, "BloquearMagia") registerCreatureEvent(cid, "onPrepareDeathinifi") registerCreatureEvent(cid, "Aurea") registerCreatureEvent(cid, "checkNewTop") registerCreatureEvent(cid, "LevelRecompense") if (InitArenaScript ~= 0) then InitArenaScript = 1 end for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) 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 function Vodka(cid) db.executeQuery("UPDATE `players` SET `name` = '"..string.sub(getCreatureName(cid), 7).."' WHERE `id` = "..getPlayerGUID(cid)) doRemoveCreature(cid) end if getCreatureName(cid):find('(VIP)') and getPlayerStorageValue(cid, 85258) - os.time() <= 0 then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) addEvent(Vodka,2000,cid) end registerCreatureEvent(cid, "Rankfrags") setFrags(cid) return true end -
fala galera gostaria q fosse removido do script o tile (VIP) q os players ganha somente isso, pq isso buga da pra criar msm nick do cara depois local lever = { [7045] = {30,30,{2160}} } function onUse(cid,item,fromPosition,itemEx,toPosition) if getPoints(cid) < lever[item.actionid][1] then return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você precisa de "..lever[item.actionid][1].." points.") end removePoints(cid,lever[item.actionid][1]) local add = (lever[item.actionid][2]*86400) setPlayerStorageValue(cid, 85258, getPlayerStorageValue(cid, 85258) - os.time() <= 0 and (os.time() + add) or (getPlayerStorageValue(cid, 85258) + add)) local quantity = math.floor((getPlayerStorageValue(cid, 85258) - os.time())/(24 * 60 * 60)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") for _, items in pairs(lever[item.actionid][3]) do doPlayerAddItem(cid,items,1) end if not getCreatureName(cid):find('(VIP)') then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) db.executeQuery("UPDATE `players` SET `name` = '(VIP) "..getCreatureName(cid).."' WHERE `id` = "..getPlayerGUID(cid)..";") addEvent(doRemoveCreature, 3*1000, cid) end return true end
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.