maligno 13 Postado Janeiro 16, 2009 Share Postado Janeiro 16, 2009 Bom,eu tenho um Enforced,to editando ele interinho,ja criei todos os char,botei os itens deles tudo!!,botei as runa full,mais não consigo bota as potion full tambem ;/ Euquero bota ela full por que da muinto trabalho bota as potions nas bp em mais de 30 char ;/ Se alguem sabe como fase ela full!!! Agradeço des de já! Cyaaaa.......M@IiGho// Link para o comentário Compartilhar em outros sites More sharing options...
Merchant 0 Postado Janeiro 17, 2009 Share Postado Janeiro 17, 2009 Olá, encontrei sua resposta, local ultimateHealthPot = 8473local 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 = createCombatObject() setCombatParam(antidote, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(antidote, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(antidote, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE) setCombatParam(antidote, COMBAT_PARAM_AGGRESSIVE, FALSE) setCombatParam(antidote, COMBAT_PARAM_DISPEL, CONDITION_POISON) local exhaust = createConditionObject(CONDITION_EXHAUST_HEAL) setConditionParam(exhaust, CONDITION_PARAM_TICKS, getConfigInfo('timeBetweenExActions')) function onUse(cid, item, fromPosition, itemEx, toPosition) if(itemEx.uid ~= cid or itemEx.itemid ~= 1) then return TRUE end if(getCreatureCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end if(item.itemid == antidotePot) then if(doCombat(cid, antidote, numberToVariant(cid)) == LUA_ERROR) then return FALSE end doRemoveCondition(cid, CONDITION_PARALYZE) doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, antidotePot) elseif(item.itemid == smallHealthPot) then if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 50, 100, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doRemoveCondition(cid, CONDITION_PARALYZE) doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, smallHealthPot) elseif(item.itemid == healthPot) then if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 100, 200, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, healthPot) elseif(item.itemid == manaPot) then if(doTargetCombatMana(0, cid, 70, 130, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doRemoveCondition(cid, CONDITION_PARALYZE) doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, manaPot) elseif(item.itemid == strongHealthPot) then if(not(isKnight(cid) or isPaladin(cid)) or (getPlayerLevel(cid) < 50)) and not(getPlayerGroupId(cid) >= 2) then doCreatureSay(cid, "This potion can only be consumed by paladins and knights of level 50 or higher.", TALKTYPE_ORANGE_1) return TRUE end if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 200, 400, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, strongHealthPot) elseif(item.itemid == strongManaPot) then if(not(isSorcerer(cid) or isDruid(cid) or isPaladin(cid)) or (getPlayerLevel(cid) < 50)) and not(getPlayerGroupId(cid) >= 2) then doCreatureSay(cid, "This potion can only be consumed by sorcerers, druids and paladins of level 50 or higher.", TALKTYPE_ORANGE_1) return TRUE end if(doTargetCombatMana(0, cid, 110, 190, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doRemoveCondition(cid, CONDITION_PARALYZE) doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, strongManaPot) elseif(item.itemid == greatSpiritPot) then if(not(isPaladin(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then doCreatureSay(cid, "This potion can only be consumed by paladins of level 80 or higher.", TALKTYPE_ORANGE_1) return TRUE end if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 200, 400, CONST_ME_MAGIC_BLUE) == LUA_ERROR or doTargetCombatMana(0, cid, 110, 190, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doRemoveCondition(cid, CONDITION_PARALYZE) doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, greatSpiritPot) elseif(item.itemid == greatHealthPot) then if(not(isKnight(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then doCreatureSay(cid, "This potion can only be consumed by knights of level 80 or higher.", TALKTYPE_ORANGE_1) return TRUE end if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 500, 700, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, greatHealthPot) elseif(item.itemid == greatManaPot) then if(not(isSorcerer(cid) or isDruid(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then doCreatureSay(cid, "This potion can only be consumed by sorcerers and druids of level 80 or higher.", TALKTYPE_ORANGE_1) return TRUE end if(doTargetCombatMana(0, cid, 200, 300, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doRemoveCondition(cid, CONDITION_PARALYZE) doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, greatManaPot) elseif(item.itemid == ultimateHealthPot) then if(not(isKnight(cid)) or (getPlayerLevel(cid) < 130)) and not(getPlayerGroupId(cid) >= 2) then doCreatureSay(cid, "This potion can only be consumed by knights of level 130 or higher.", TALKTYPE_ORANGE_1) return TRUE end if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 800, 1000, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, ultimateHealthPot) end return TRUE end Espero ter tirado sua dúvida, qualquer informação, pode me enviar um PM. Abraços Link para o comentário Compartilhar em outros sites More sharing options...
maligno 13 Postado Janeiro 17, 2009 Autor Share Postado Janeiro 17, 2009 (editado) Humm....Valeu ^^,mais aonde eu boto isso dai? Eu fis um negósio aque,dai quando eu fui ve se deu certo da debug m@iIgHo// Editado Janeiro 17, 2009 por maligno Link para o comentário Compartilhar em outros sites More sharing options...
PedrinhuHenrique 7 Postado Janeiro 18, 2009 Share Postado Janeiro 18, 2009 Cara se eu não me engano é assim: Vá até os scripts das potions aqui: OT/DATA/ACTIONS/POTIONS/ Vai ta lá, se não ti ver procura... Aí abre um arquivo e tenta tirar isso: doTransformItem(item.uid,7635) Tire isso de todos os scripts dos potions e teste, se não der poste aqui para eu ver. Obrigado. Link para o comentário Compartilhar em outros sites More sharing options...
maligno 13 Postado Janeiro 18, 2009 Autor Share Postado Janeiro 18, 2009 Ok,mais tarde eu faso isso,agora eu estou ocupado M@IiGho// Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados