Solutions
-
Smart Maxx's post in (Resolvido)Potions estão infinitas! was marked as the answerTFS 1.0 :
potions.lua :
local ultimateHealthPot = 8473 local greatHealthPot = 7591 local greatManaPot = 7590 local greatSpiritPot = 8472 local strongHealthPot = 7588 local strongManaPot = 7589 local healthPot = 7618 local manaPot = 7620 local smallHealthPot = 8704 local antidotePot = 8474 local greatEmptyPot = 7635 local strongEmptyPot = 7634 local emptyPot = 7636 local antidote = Combat() antidote:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING) antidote:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) antidote:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, true) antidote:setParameter(COMBAT_PARAM_AGGRESSIVE, false) antidote:setParameter(COMBAT_PARAM_DISPEL, CONDITION_POISON) local exhaust = Condition(CONDITION_EXHAUST_HEAL) exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition, isHotkey) if itemEx.itemid ~= 1 or itemEx.type ~= THING_TYPE_PLAYER then return true end local player = Player(cid) if player:getCondition(CONDITION_EXHAUST_HEAL) then player:sendTextMessage(MESSAGE_STATUS_SMALL, Game.getReturnMessage(RETURNVALUE_YOUAREEXHAUSTED)) return true end if item.itemid == antidotePot then if not doCombat(cid, antidote, numberToVariant(cid)) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) player:addItem(emptyPot, 1) elseif item.itemid == smallHealthPot then if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 60, 90, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) player:addItem(emptyPot, 1) elseif item.itemid == healthPot then if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 125, 175, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) player:addItem(emptyPot, 1) elseif item.itemid == manaPot then if not doTargetCombatMana(0, cid, 75, 125, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) player:addItem(emptyPot, 1) elseif item.itemid == strongHealthPot then if(not isInArray({3,4,7,8}, player:getVocation():getId()) or player:getLevel() < 50) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by paladins and knights of level 50 or higher.", TALKTYPE_MONSTER_SAY) return true end if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 250, 350, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) player:addItem(strongEmptyPot, 1) elseif item.itemid == strongManaPot then if(not isInArray({1,2,3,5,6,7}, player:getVocation():getId()) or player:getLevel() < 50) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by sorcerers, druids and paladins of level 50 or higher.", TALKTYPE_MONSTER_SAY) return true end if not doTargetCombatMana(0, cid, 115, 185, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) player:addItem(strongEmptyPot, 1) elseif item.itemid == greatSpiritPot then if(not isInArray({3, 7}, player:getVocation():getId()) or (player:getLevel() < 80)) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by paladins of level 80 or higher.", TALKTYPE_MONSTER_SAY) return true end if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 250, 350, CONST_ME_MAGIC_BLUE) or not doTargetCombatMana(0, cid, 100, 200, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) player:addItem(greatEmptyPot, 1) elseif item.itemid == greatHealthPot then if(not isInArray({4, 8}, player:getVocation():getId()) or player:getLevel() < 80) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by knights of level 80 or higher.", TALKTYPE_MONSTER_SAY) return true end if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 425, 575, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) player:addItem(greatEmptyPot, 1) elseif item.itemid == greatManaPot then if(not isInArray({1,2,5,6}, player:getVocation():getId()) or player:getLevel() < 80) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by sorcerers and druids of level 80 or higher.", TALKTYPE_MONSTER_SAY) return true end if not doTargetCombatMana(0, cid, 150, 250, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) player:addItem(greatEmptyPot, 1) elseif item.itemid == ultimateHealthPot then if(not isInArray({4, 8}, player:getVocation():getId()) or player:getLevel() < 130) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by knights of level 130 or higher.", TALKTYPE_MONSTER_SAY) return true end if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 650, 850, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) player:addItem(greatEmptyPot, 1) end return true end actions.xml :
<action itemid="7588" script="other/potions.lua"/> <action itemid="7589" script="other/potions.lua"/> <action itemid="7590" script="other/potions.lua"/> <action itemid="7591" script="other/potions.lua"/> <action itemid="7618" script="other/potions.lua"/> <action itemid="7620" script="other/potions.lua"/> <action itemid="8472" script="other/potions.lua"/> <action itemid="8473" script="other/potions.lua"/> <action itemid="8474" script="other/potions.lua"/> <action itemid="8704" script="other/potions.lua"/>
@Orochi e partir do 1.1 só tende a piorar rsrsrs
-
Smart Maxx's post in (Resolvido)EFEITO NEVE WEBSITE was marked as the answerhttp://www.tibiaking.com/forum/topic/47052-efeito-snow-no-gesior/
-
Smart Maxx's post in (Resolvido)Configurar Skulls & Frags. was marked as the answer
-
Smart Maxx's post in (Resolvido)Database Bugada was marked as the answerposta seu config.lua
-
Smart Maxx's post in (Resolvido)Database Duvida was marked as the answerDeixa eu ver se eu entendi vc está tentando importar esse arquivo.s3db pro phpmyadmin ? se sim creio que seja impossível ...
Usa esse arquivo >Db Limpa< vai funcionar perfeitamente sem erro
-
Smart Maxx's post in (Resolvido)Piggy Bank was marked as the answerfunction onUse(cid, item, fromPosition, itemEx, toPosition) if(math.random(1, 6) == 1) then doSendMagicEffect(fromPosition, CONST_ME_POFF) doPlayerAddItem(cid, ITEM_GOLD_COIN, 1) doTransformItem(item.uid, 2115) else doSendMagicEffect(fromPosition, CONST_ME_SOUND_YELLOW) doPlayerAddItem(cid, ITEM_PLATINUM_COIN, 1) end return true end
-
Smart Maxx's post in (Resolvido)Linha page_acess was marked as the answerALTER TABLE `accounts` ADD `page_acess` int(11) not null default '0'
-
Smart Maxx's post in (Resolvido)ajuda gesior onde os players que criam conta vão nascer was marked as the answereu coloquei seus anexos também so que quando vou logar a conta aparece a mensagem "templo position is wrong contact with the administration"
no accountmanagement.php, verifique se o
$player->setPosX(32369); $player->setPosY(32241); $player->setPosZ(7); está com as coordenadas corretas, se sim :
Siga esse breve tutorial pra adicionar as posx, posy, posz na database do phpmyadmin;
Para versões de servidores com banco de dados MySQL:
Abra a pagina do phpMyadmim, localhost/phpmyadmin ou seusite.com/phpmyadmin e faça login.
Agora selecione seu banco de dados a esquerda do painel
Clique na coluna players:
Agora olhe o nome do personagem e clique em editar no começo da mesma linha.
E por ultimo, desce a pagina até achar os campos town_id, posX, posY e posZ.
Ao terminar de digitar dê enter ou clique em executar no final da pagina.
créditos : gpedro;
" Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in C:\xampp\htdocs\classes\databaselist.php on line 105 "
Você usa a versão 1.7.3 do xampp ? se não baixe;
-
Smart Maxx's post in (Resolvido)WebSite com problema! was marked as the answerAi sim teria como, pois vc estaria usando a net e o ip do VPS , para deixar tanto o server como o website online;
Obs :Se tiver sources hospede em linux
-
Smart Maxx's post in (Resolvido)[PEDIDO] Aumentando o level de 717217. para 2000000 was marked as the answerRsrsrsrs isso é algo bem complicado de fazer, primeiramente que não é por script é nas sources :
em player.h :
static uint64_t getExpForLevel(uint32_t lv) troque por :
static uint64_t getExpForLevel(uint32_t lv) { static std::map<uint32_t, uint64_t> cache; lv--; std::map<uint32_t, uint64_t>::iterator it = cache.find(lv); if(it != cache.end()) return it->second; uint64_t exp = ((50ULL * (lv+1ULL) / 3ULL - 100ULL) * (lv+1ULL) + 850ULL / 3ULL) * (lv+1ULL) - 200ULL; cache[lv] = exp; return exp; } em protocolgame.cpp :
if(experience > 0x7FFFFFFF) // client debugs after 2,147,483,647 exp msg->put<uint32_t>(0x7FFFFFFF); troque por :
if(experience > 2147483647) // client debugs after 2,147,483,647 exp msg->put<uint32_t>(2147483647); Dps dou as explicações que vou dormir agr;
-
Smart Maxx's post in (Resolvido)BUG DE CAP was marked as the answerEu adicionei capsystem = "no" , no config.lua , que ai seu serve não possuirá mais cap system(pelo menos eu acho), ai vai resolver o problema por enquanto, pois nunca ví nenhum problema do tipo, se possível me fale qual a base do seu servidor pra dps eu baixar e dar uma olhada quando não tiver nada pra fazer;
-
Smart Maxx's post in (Resolvido)Ajuda [Script] dinheiro por item was marked as the answerlocal config = { promotion = 2, -- promotion level, default = 1 . Ignore if you don't have new vocations. minLevel = 250, -- Level needed to buy promotion count = 5, -- Quantidade premium = "yes", -- is premium needed to buy promotion? gold_id = 7633, -- Id do dinheiro } local disabledVocations = {0} config.premium = getBooleanFromString(config.premium) function onSay(cid, words, param) if isInArray(disabledVocations, getPlayerVocation(cid)) then doPlayerSendCancel(cid, "Your vocation cannot buy promotion.") return false end if config.premium and not isPremium(cid) then doPlayerSendCancel(cid, "You need a premium account.") return false end if getPlayerPromotionLevel(cid) >= config.promotion then doPlayerSendCancel(cid, "You are already promoted.") return false end if getPlayerLevel(cid) < config.minLevel then doPlayerSendTextMessage(cid, 21, "You need " .. config.minLevel .. " to get promotion.") return false end if not doPlayerRemoveItem(cid, config.gold_id, config.count) then doPlayerSendTextMessage(cid, 21, "You do not have enough item! (Promotion count " .. config.count .. " .)") return false end setPlayerPromotionLevel(cid, config.promotion) doPlayerSendTextMessage(cid, 25, "You have been succesful promoted to " .. getVocationInfo(getPlayerVocation(cid)).name .. ".") return true end
-
Smart Maxx's post in (Resolvido)Error no WebSite was marked as the answerColoca esse aqui :
T+
-
Smart Maxx's post in (Resolvido)Facebook Gesior 2012 was marked as the answerResolvi o problema...
-
Smart Maxx's post in (Resolvido)Como colocar Level Max was marked as the answerPronto;
<?xml version="1.0" encoding="UTF-8"?> <stages> <config enabled="1"/> <stage minlevel="1" maxlevel="80" multiplier="500"/> <stage minlevel="81" maxlevel="100" multiplier="400"/> <stage minlevel="101" maxlevel="150" multiplier="300"/> <stage minlevel="151" maxlevel="250" multiplier="200"/> <stage minlevel="251" maxlevel="350" multiplier="150"/> <stage minlevel="351" maxlevel="400" multiplier="100"/> <stage minlevel="401" maxlevel="500" multiplier="50"/> <stage minlevel="501" maxlevel="600" multiplier="25"/> <stage minlevel="601" multiplier="0"/> </stages>