Ir para conteúdo

SonGoku

Membro
  • Registro em

  • Última visita

Tudo que SonGoku postou

  1. Bom no meu server mudei umas coisas e agora esta aparecendo as skills com letras amarelas e indo para o chat como remover ? isso da mto flood e atrapalha a comunicaçao ;S
  2. Consegui o/ olhei bem na .lua e vi o meu erro local coin = 2157 local lever = { [30000] = {15,2474}, } function onUse(cid,item,fromPosition,itemEx,toPosition) if doPlayerRemoveItem(cid,coin,lever[item.actionid][1]) == FALSE then return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "você precisa de "..lever[item.actionid][1].." " ..getItemNameById(coin)) end doPlayerAddItem(cid,lever[item.actionid][2]) doPlayerSendTextMessage(cid,22,"você comprou um " .. getItemNameById(lever[item.actionid][2])) doSendMagicEffect(getCreaturePosition(cid), math.random(28,30)) doTransformItem(item.uid, item.itemid == 1746 and 1746 or 1746) return true end essa linha que estragou : doTransformItem(item.uid, item.itemid == 1746 and 1746 or 1746) resolvi , mas obrigado pela ajuda eu comparei com o post do Vitin e consegui arrumar
  3. mas esse que vc postou nao é com Crystal coins ?
  4. Bom o titulo ja diz... no meu servidor fiz uma area para que as pessoas comprem itens donate com a moeda vip , mas sempre que eu compro 1 item a alavanca some e aparece um bau no lugar e nao da pra comprar dnv... como arrumo isso ? Obg desde ja
  5. IREI Testar ja edito se Caso funcione ~ Editar Funcionou sim, deixei removeOnUse = "sim" e ficou td blz vlw
  6. Bom eu testei , mas agora ficou infinita.. e n caso eu n queria infinita , só quero que gaste 1 unidade a cada cura :/
  7. Desculpa pelo local errado... e obg por mover \data\actions\scripts\liquids\potions local config = { removeOnUse = "no", usableOnTarget = "yes", splashable = "no", realAnimation = "no", healthMultiplier = 1.0, manaMultiplier = 1.0 } config.removeOnUse = getBooleanFromString(config.removeOnUse) config.usableOnTarget = getBooleanFromString(config.usableOnTarget) config.splashable = getBooleanFromString(config.splashable) config.realAnimation = getBooleanFromString(config.realAnimation) local POTIONS = { [8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion [7618] = {empty = 7636, splash = 2, health = {100, 200}}, -- health potion [7588] = {empty = 7634, splash = 2, health = {200, 300}, level = 50, vocations = {3, 4, 7, 8, 11, 12}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {400, 500}, level = 80, vocations = {4, 8, 12}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {650, 900}, level = 130, vocations = {4, 8, 12}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {70, 130}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {190, 290}, level = 50, vocations = {1, 2, 3, 5, 6, 7, 9, 10, 11}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {300, 450}, level = 80, vocations = {1, 2, 5, 6, 9, 10}, vocStr = "sorcerers and druids"}, -- great mana potion [8472] = {empty = 7635, splash = 3, health = {200, 400}, mana = {110, 190}, level = 80, vocations = {3, 7, 11}, vocStr = "paladins"} -- great spirit potion } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) local potion = POTIONS[item.itemid] if(not potion) then return false end if(not isPlayer(itemEx.uid) or (not config.usableOnTarget and cid ~= itemEx.uid)) then if(not config.splashable) then return false end if(toPosition.x == CONTAINER_POSITION) then toPosition = getThingPos(item.uid) end doDecayItem(doCreateItem(2016, potion.splash, toPosition)) doTransformItem(item.uid, potion.empty) return true end if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return true end if(((potion.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_ORANGE_1) return true end local health = potion.health if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.healthMultiplier))) then return false end local mana = potion.mana if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier))) then return false end doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) if(not realAnimation) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "Nooo...", TALKTYPE_ORANGE_1, false, tid) end end end doAddCondition(cid, exhaust) if(not potion.empty or config.removeOnUse) then doRemoveItem(item.uid) return true end doTransformItem(item.uid, potion.empty) return true end
  8. Eae galera , queria saber como eu arrumo minhas potions do meu OT global... eu não quero deixar infinita , mas tipo eu compro 100 , coloco na hotkey uso 1x e gasta as 100 de uma vez... queria saber como fazer para gastar só 1 a cada vez que usar hotkey.
  9. Bom nao foi isso exatamente a pergunta , mas vc me ajudou com o Data/actions.xml e tive uma noçao no caso adicionei o <action itemid="ID DA NOVA MOEDA" event="script" value="other/changegold.lua"/> e resolveu meu problema vlw
  10. Bom primeiramente nao sei se estou postando na area correta , se eu não estiver alguem muda por favor ? =X nao sou muito de postar ai não sei muito bem as areas corretas. Obg Bom queria saber como adicionar uma moeda nova no jogo, bom isso eu ja fiz mas tenho um problema, eu pego 1kk clico nele e ele vira um gold nugget , normal até ai.... Mas depois que vira gold nugget ele nao volta mais para cristal coins ... e eu queria saber arrumar isso, ja arrumei no Itens.xml o valor do nugget e ja arrumei >> \ data \ ações \ scripts \ other \ changegold, Olha ai em baixo não sei se editei certo --------------------------------------------------------------------------------------------------------------------------------------------------------------- função onUse (cid, item fromPosition, itemEx, toPosition) se item.itemid == ITEM_GOLD_COIN e item.type == ITEMCOUNT_MAX então doChangeTypeItem (item.uid, item.type - item.type) doPlayerAddItem (cid, ITEM_PLATINUM_COIN, 1) doSendAnimatedText (fromPosition, "$ $ $", TEXTCOLOR_PLATINUMBLUE) elseif item.itemid == ITEM_PLATINUM_COIN e item.type == ITEMCOUNT_MAX então doChangeTypeItem (item.uid, item.type - item.type) doPlayerAddItem (cid, ITEM_CRYSTAL_COIN, 1) doSendAnimatedText (fromPosition, "$ $ $", TEXTCOLOR_TEAL) elseif item.itemid == ITEM_CRYSTAL_COIN e item.type == ITEMCOUNT_MAX então doChangeTypeItem (item.uid, item.type - item.type) doPlayerAddItem (cid, 2157, 1) doSendAnimatedText (fromPosition, "$ $ $", TEXTCOLOR_TEAL) elseif item.itemid == ITEM_PLATINUM_COIN e item.type <ITEMCOUNT_MAX então doChangeTypeItem (item.uid, item.type - 1) doPlayerAddItem (cid, ITEM_GOLD_COIN, ITEMCOUNT_MAX) doSendAnimatedText (fromPosition, "$ $ $", TEXTCOLOR_YELLOW) elseif item.itemid == ITEM_CRYSTAL_COIN então doChangeTypeItem (item.uid, item.type - 1) doPlayerAddItem (cid, ITEM_PLATINUM_COIN, ITEMCOUNT_MAX) doSendAnimatedText (fromPosition, "$ $ $", TEXTCOLOR_PLATINUMBLUE) elseif item.itemid == 2157 e item.type <ITEMCOUNT_MAX então doChangeTypeItem (item.uid, item.type - 1) doPlayerAddItem (cid, ITEM_CRYSTAL_COIN, ITEMCOUNT_MAX) doSendAnimatedText (fromPosition, "$ $ $", TEXTCOLOR_YELLOW) outro retornar FALSE final retornar TRUE final --------------------------------------------------------------------------------------------------------------------------------------------------------------- Não sei se esta certo... alguem pode me ajudar a consertar ? (a fazer virar cristal coins depois que virar gold nugget) obg desde ja Skype:matheus3306

Informação Importante

Confirmação de Termo