Postado Fevereiro 12, 2015 10 anos No meu servidor tem um bug que ta me preocupando muito, quando a pessoa usa um client diferente do meu servidor a senzu fica sem exaustao ai fica foda... o meu servidor tem 40 players diarios e esse bug ta me deixando preocupado. O que tem de errado? script ou o meu client ? o meu client fiz no vapus, marquei todas as opções la ! Hacks (Only MC work with 9.1+!) o meu script é: Mostrar conteúdo oculto function onUse(cid, item, frompos, item2, topos) local level = getPlayerLevel(cid) local mlevel = getPlayerMagLevel(cid) local exhausted_seconds = 0 local exhausted_storagevalue = 10 local mana_minimum = 70000 local mana_maximum = 70000 local mana_add = math.random(mana_minimum, mana_maximum) if(item.type >= 1) then if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then if(isPlayer(cid) == 1) then doSendMagicEffect(topos,5) doPlayerAddMana(cid, mana_add) doPlayerAddHealth(cid, mana_add) doPlayerSay(cid, 'Senzu Bean', TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds) doChangeTypeItem(item.uid, item.type - 0) else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "Você está cansado.") end else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") end else if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue)) then doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") else if(isPlayer(cid) == 1) then doSendMagicEffect(topos,14) doPlayerAddMana(cid, mana_add) doPlayerAddHealth(cid, mana_add*1.5) doPlayerSay(cid,"Senzu Bean",1) setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds) doRemoveItem(item.uid, 1) else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exchausted.") end end end return 1 end o
Postado Fevereiro 12, 2015 10 anos Solução Use essa daqui ! Lembrando nao é seu cliente é apenas o exausted voçe configura por aki local exhausted_seconds = 0.7 Lembrando 0.7 ja esta de bom tamanho Mostrar conteúdo oculto Adiciona esse logo abaixo function onUse(cid, item, frompos, item2, topos) local level = getPlayerLevel(cid) local mlevel = getPlayerMagLevel(cid) local exhausted_seconds = 0.7 local exhausted_storagevalue = 10 local mana_minimum = 70000 local mana_maximum = 70000 local mana_add = math.random(mana_minimum, mana_maximum) if(item.type >= 1) then if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then if(isPlayer(cid) == 1) then doSendMagicEffect(topos,5) doPlayerAddMana(cid, mana_add) doPlayerAddHealth(cid, mana_add) doPlayerSay(cid, 'Senzu Bean', TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds) doChangeTypeItem(item.uid, item.type - 0) else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "Você está cansado.") end else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") end else if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue)) then doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") else if(isPlayer(cid) == 1) then doSendMagicEffect(topos,14) doPlayerAddMana(cid, mana_add) doPlayerAddHealth(cid, mana_add*1.5) doPlayerSay(cid,"Senzu Bean",1) setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds) doRemoveItem(item.uid, 1) else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exchausted.") end end end return 1 end Editado Fevereiro 12, 2015 10 anos por Matheusjpp (veja o histórico de edições)
Postado Fevereiro 12, 2015 10 anos Autor Em 12/02/2015 em 00:44, Matheusjpp disse: Use essa daqui ! Lembrando nao é seu cliente é apenas o exausted voçe configura por aki local exhausted_seconds = 0.7 Lembrando 0.7 ja esta de bom tamanho Mostrar conteúdo oculto Mostrar conteúdo oculto Adiciona esse logo abaixo function onUse(cid, item, frompos, item2, topos) local level = getPlayerLevel(cid) local mlevel = getPlayerMagLevel(cid) local exhausted_seconds = 0.7 local exhausted_storagevalue = 10 local mana_minimum = 70000 local mana_maximum = 70000 local mana_add = math.random(mana_minimum, mana_maximum) if(item.type >= 1) then if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then if(isPlayer(cid) == 1) then doSendMagicEffect(topos,5) doPlayerAddMana(cid, mana_add) doPlayerAddHealth(cid, mana_add) doPlayerSay(cid, 'Senzu Bean', TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds) doChangeTypeItem(item.uid, item.type - 0) else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "Você está cansado.") end else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") end else if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue)) then doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") else if(isPlayer(cid) == 1) then doSendMagicEffect(topos,14) doPlayerAddMana(cid, mana_add) doPlayerAddHealth(cid, mana_add*1.5) doPlayerSay(cid,"Senzu Bean",1) setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds) doRemoveItem(item.uid, 1) else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exchausted.") end end end return 1 end Entendio, obg por me explicar esse bug. Amanha testarei o script ai volto aqui e digo se funcionou ou não.
Postado Fevereiro 12, 2015 10 anos Autor Em 12/02/2015 em 00:59, Matheusjpp disse: te garanto que ira funcionar Mesmo assim pode contar comigo Deu certo aqui, obrigado. !
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.