Ir para conteúdo
Banner com Efeitos

leandroslim

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    leandroslim deu reputação a Povildo em NPC de Vende Itens de Addon - [10.41]   
    NPC de Vende Itens de Addon
    Patch v1.0
     
     
    AVISO: Esse projeto meu é para eu sempre está atualizando o NPC quando sair coisa novas e atualiza aqui no tropico sempre ele atualizado.
    <?xml version="1.0" encoding="UTF-8"?> <npc name="Bulma" script="default.lua" walkinterval="2000" speed="100" walkradius="4" floorchange="0"> <health max="100" now="100"/> <look type="131" head="113" body="57" legs="95" feet="113" addons="3" mount="0"/> <parameters> <!--MESSAGES--> <parameter key="message_greet" value="Oi |PLAYERNAME|, Eu posso vender alguns items necessarios para seus addons, diga-me {trade} para ver o que eu posso lhe vender."/> <parameter key="message_farewell" value="Good bye, |PLAYERNAME|."/> <parameter key="message_buy" value="Do you want to buy |ITEMCOUNT| |ITEMNAME| for |TOTALCOST| gold coins?"/> <parameter key="message_onbuy" value="Here you are."/> <parameter key="message_bought" value="Bought |ITEMCOUNT|x |ITEMNAME| for |TOTALCOST| gold."/> <parameter key="message_sell" value="Do you want to sell |ITEMCOUNT| |ITEMNAME| for |TOTALCOST| gold coins?"/> <parameter key="message_onsell" value="Here you are, |TOTALCOST| gold."/> <parameter key="message_sold" value="Sold |ITEMCOUNT|x |ITEMNAME| for |TOTALCOST| gold."/> <parameter key="message_missingmoney" value="You don't have enough money."/> <parameter key="message_needmoney" value="You don't have enough money."/> <parameter key="message_missingitem" value="You don't have so many."/> <parameter key="message_needitem" value="You do not have this object."/> <parameter key="message_needspace" value="You do not have enough capacity."/> <parameter key="message_needmorespace" value="You do not have enough capacity for all items."/> <parameter key="message_idletimeout" value="Good bye."/> <parameter key="message_decline" value="Then not."/> <parameter key="message_sendtrade" value="Of course, just browse through my wares."/> <parameter key="message_noshop" value="Sorry, I'm not offering anything."/> <parameter key="message_oncloseshop" value="Thank you, come back whenever you're in need of something else."/> <parameter key="message_alreadyfocused" value="|PLAYERNAME|, I am already talking to you."/> <parameter key="message_walkaway_male" value="Good bye."/> <parameter key="message_walkaway_female" value="Good bye."/> <!--SHOP--> <parameter key="module_shop" value="1"/> <parameter key="shop_buyable" value="ankh,2193,5000;ape fur,5883,500;banana staff,3966,2000;bat wing,5894,200;bear paw,5896,3000;behemoth claw,5930,10000;blue piece of cloth,5912,5000;bonelord eye,5898,3000;brown piece of cloth,5913,1000;Brutus Bloodbeard's hat,6099,50000;chicken feather,5890,400;Deadeye Devious' eye patch,6102,70000;demonic essence,6500,900;dragon claw,5919,100000;dream warden claw,22609,5000000;dream warden mask,22610,7000000;dubious piece of cloth,13541,100000;elemental spikes,13940,30000000;enchanted chicken wing,5891,20000;eye patch,6098,1000;Ferumbras' hat,5903,50000000;fish fin,5895,2000;green piece of cloth,5910,200;hardened bone,5925,70;heaven blossom,5921,250;holy orchid,5922,400;honeycomb,5902,40;hook,6097,600;huge chunk of crude iron,5892,15000;iron ore,5880,500;legion helmet,2480,22;lizard leather,5876,150;lizard scale,5881,120;ludicrous piece of cloth,13544,5000;luminous piece of cloth,13545,5000;magic sulphur,5904,8000;mandrake,5015,30000;minotaur leather,5878,80;nose ring,5804,40000;obvious piece of cloth,13543,5000;ominous piece of cloth,13540,5000;peg leg,6126,600;perfect behemoth fang,5893,500;piece of draconian steel,5889,4000;piece of hell steel,5888,1000;piece of royal steel,5887,10000;pirate voodoo doll,5810,500;plague bell,13926,10000;plague mask,13925,2000;red dragon leather,5948,300;red dragon scale,5882,200;red piece of cloth,5911,300;Ron the Ripper's sabre,6101,90000;shard,7290,2000;slime mould,13758,5000;sniper gloves,5875,2000;soul stone,5809,250000;spider silk,5879,4000;spirit container,5884,40000;spool of yarn,5886,50000;the Lethal Lissy's shirt,6100,30000;tribal mask,3967,250;turtle shell,5899,200;voluminous piece of cloth,13542,5000;white piece of cloth,5909,500;wolf paw,5897,70;yellow piece of cloth,5914,150;mage's cap,13756,10000000"/> </parameters> </npc> CREDITO do Sistema:
    Elime's NPC Editor
     
     
    REPORTE BUG's
    Agradeço a Todo que viu o Tropico
    Que DEUS TE ABENÇOE
  2. Gostei
    leandroslim deu reputação a Qwizer em [Actions] Potions Heal Friend TFS 1.0   
    Potions Heal Friend TFS 1.0
     
    Em alguns ots que usam tfs 1.0 as potions tem um bug que não da pra healar outros players, então vou postar o scripts desbugado funcionando 100%
    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 = 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, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 100)) -- 1000 - 100 due to exact condition timing. -100 doesn't hurt us, and players don't have reminding ~50ms exhaustion. function onUse(cid, item, fromPosition, itemEx, toPosition) if itemEx.itemid ~= 1 or itemEx.type ~= THING_TYPE_PLAYER 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 doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) setPlayerStorageValue(cid, 14582, getPlayerStorageValue(cid, 14582) + 1) elseif(item.itemid == smallHealthPot) then if(doTargetCombatHealth(0, itemEx.uid, COMBAT_HEALING, 75, 125, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) setPlayerStorageValue(cid, 14582, getPlayerStorageValue(cid, 14582) + 1) elseif(item.itemid == healthPot) then if(doTargetCombatHealth(0, itemEx.uid, COMBAT_HEALING, 130, 180, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) setPlayerStorageValue(cid, 14582, getPlayerStorageValue(cid, 14582) + 1) elseif(item.itemid == manaPot) then if(doTargetCombatMana(0, itemEx.uid, 70, 130, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) setPlayerStorageValue(cid, 14582, getPlayerStorageValue(cid, 14582) + 1) 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, itemEx.uid, COMBAT_HEALING, 270, 320, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) setPlayerStorageValue(cid, 14582, getPlayerStorageValue(cid, 14582) + 1) 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, itemEx.uid, 115, 185, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) setPlayerStorageValue(cid, 14582, getPlayerStorageValue(cid, 14582) + 1) 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, itemEx.uid, COMBAT_HEALING, 250, 350, CONST_ME_MAGIC_BLUE) == LUA_ERROR or doTargetCombatMana(0, cid, 100, 200, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) setPlayerStorageValue(cid, 14582, getPlayerStorageValue(cid, 14582) + 1) 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, itemEx.uid, COMBAT_HEALING, 425, 575, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) setPlayerStorageValue(cid, 14582, getPlayerStorageValue(cid, 14582) + 1) 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, itemEx.uid, 150, 250, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) setPlayerStorageValue(cid, 14582, getPlayerStorageValue(cid, 14582) + 1) 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, itemEx.uid, COMBAT_HEALING, 650, 850, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) setPlayerStorageValue(cid, 14582, getPlayerStorageValue(cid, 14582) + 1) end return TRUE end e isso pessoal.

Informação Importante

Confirmação de Termo