Ir para conteúdo

egyptPOWER

Membro
  • Total de itens

    117
  • Registro em

  • Última visita

  • Dias Ganhos

    1

egyptPOWER venceu a última vez em Fevereiro 12

egyptPOWER teve o conteúdo mais curtido!

1 Seguidor

Sobre egyptPOWER

  • Rank
    Minha alma eterna hiberna, no meu corpo que é só embalagem

Informação de Perfil

  • Genero
    Masculino
  • Eu sou
    Designer

Últimos Visitantes

250 visualizações
  1. Claro, só não pode esquecer que seu "executavel" deve estar compilado para linux de acordo com linux que você for usar
  2. @ManoelMagebott Você pode colocar o servidor que quiser dentro de seu vps, seja ele otmanager ou otpanel. Ambos oferecem também uma interface para você executar seu servidor, sem a necessidade de fazer isso via SSH. Recomendo apenas que use um WinSCP ou Filezilla para estar enviando seus arquivos e organizando-os corretamente.
  3. @Sttorm Agora funcionou, porem agora não consigo jogar fluid no chao, oque vai interferir em algumas quests.
  4. @Sttorm Funcionou sim, tenho mais um pra você agora. Estou com problema com as potions, na verdade ela funcionam bem porém está dando pra fazer o seguinte: Eu estou usando as pots nelas mesmas, elas ficam EMPTY porém em retorna esse erro no console. Tem como desabilitar esse uso em cima delas mesmas para evitar esse erro? potions.lua local ITEM_RUM_FLASK = 5553 local TYPE_EMPTY = 0 local TYPE_WATER = 1 local TYPE_BLOOD = 2 local TYPE_BEER = 3 local TYPE_SLIME = 4 local TYPE_LEMONADE = 5 local TYPE_MILK = 6 local TYPE_MANA_FLUID = 7 local TYPE_LIFE_FLUID = 10 local TYPE_OIL = 11 local TYPE_URINE = 13 local TYPE_COCONUT_MILK = 14 local TYPE_WINE = 15 local TYPE_MUD = 19 local TYPE_FRUIT_JUICE = 21 local TYPE_LAVA = 26 local TYPE_RUM = 27 local TYPE_SWAMP = 28 local TYPE_TEA = 35 local oilLamps = {[2046] = 2044} local casks = {[1771] = TYPE_WATER, [1772] = TYPE_BEER, [1773] = TYPE_WINE} local alcoholDrinks = {TYPE_BEER, TYPE_WINE, TYPE_RUM} local poisonDrinks = {TYPE_SLIME, TYPE_SWAMP} local drunk = createConditionObject(CONDITION_DRUNK) setConditionParam(drunk, CONDITION_PARAM_TICKS, 60000) local poison = createConditionObject(CONDITION_POISON) setConditionParam(poison, CONDITION_PARAM_DELAYED, true) -- Condition will delay the first damage from when it's added setConditionParam(poison, CONDITION_PARAM_MINVALUE, -50) -- Minimum damage the condition can do at total setConditionParam(poison, CONDITION_PARAM_MAXVALUE, -120) -- Maximum damage setConditionParam(poison, CONDITION_PARAM_STARTVALUE, -5) -- The damage the condition will do on the first hit setConditionParam(poison, CONDITION_PARAM_TICKINTERVAL, 4000) -- Delay between damages setConditionParam(poison, CONDITION_PARAM_FORCEUPDATE, true) -- Re-update condition when adding it(ie. min/max value) local burn = createConditionObject(CONDITION_FIRE) setConditionParam(burn, CONDITION_PARAM_DELAYED, true) -- Condition will delay the first damage from when it's added setConditionParam(burn, CONDITION_PARAM_MINVALUE, -70) -- Minimum damage the condition can do at total setConditionParam(burn, CONDITION_PARAM_MAXVALUE, -150) -- Maximum damage setConditionParam(burn, CONDITION_PARAM_STARTVALUE, -10) -- The damage the condition will do on the first hit setConditionParam(burn, CONDITION_PARAM_TICKINTERVAL, 10000) -- Delay between damages setConditionParam(burn, CONDITION_PARAM_FORCEUPDATE, true) -- Re-update condition when adding it(ie. min/max value) function onUse(cid, item, fromPosition, itemEx, toPosition) if(doComparePositions(getCreaturePosition(cid), toPosition))then itemEx.uid = cid end if(itemEx.uid == cid) then if(item.type == TYPE_EMPTY) then doPlayerSendCancel(cid, "It is empty.") return true end if(item.type == TYPE_MANA_FLUID) then if(not doPlayerAddMana(itemEx.uid, math.random(40, 80))) then return false end doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_MONSTER_SAY) doSendMagicEffect(toPosition, CONST_ME_MAGIC_BLUE) elseif(item.type == TYPE_LIFE_FLUID) then if(not doCreatureAddHealth(itemEx.uid, math.random(40, 80))) then return false end doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_MONSTER_SAY) doSendMagicEffect(toPosition, CONST_ME_MAGIC_BLUE) elseif(isInArray(alcoholDrinks, item.type)) then if(not doTargetCombatCondition(0, cid, drunk, CONST_ME_NONE)) then return false end doCreatureSay(cid, "Aaah...", TALKTYPE_MONSTER_SAY) elseif(isInArray(poisonDrinks, item.type)) then if(not doTargetCombatCondition(0, cid, poison, CONST_ME_NONE)) then return false end doCreatureSay(cid, "Urgh!", TALKTYPE_MONSTER_SAY) elseif(item.type == TYPE_LAVA) then if(not doTargetCombatCondition(0, cid, burn, CONST_ME_NONE)) then return false end doCreatureSay(cid, "Urgh!", TALKTYPE_MONSTER_SAY) else doCreatureSay(cid, "Gulp.", TALKTYPE_MONSTER_SAY) end doChangeTypeItem(item.uid, TYPE_EMPTY) return true end if(not isCreature(itemEx.uid)) then if(item.type == TYPE_EMPTY) then if(isItemFluidContainer(itemEx.itemid) and itemEx.type ~= TYPE_EMPTY) then doChangeTypeItem(item.uid, itemEx.type) doChangeTypeItem(itemEx.uid, TYPE_EMPTY) return true end local tmp = casks[itemEx.itemid] if(tmp == nil) then tmp = getFluidSourceType(itemEx.itemid) end if(tmp) then doChangeTypeItem(item.uid, tmp) return true end doPlayerSendCancel(cid, "It is empty.") return true end local tmp = oilLamps[itemEx.itemid] if(item.type == TYPE_OIL and tmp ~= nil) then doTransformItem(itemEx.uid, tmp) doChangeTypeItem(item.uid, TYPE_NONE) return true end if(isItemFluidContainer(itemEx.itemid) and itemEx.type == TYPE_EMPTY) then doChangeTypeItem(itemEx.uid, itemEx.type) doChangeTypeItem(item.uid, TYPE_EMPTY) return true end if(hasProperty(itemEx.uid, CONST_PROP_BLOCKSOLID)) then return false end end if(item.type == TYPE_EMPTY) then doPlayerSendCancel(cid, "It is empty.") return true end doDecayItem(doCreateItem(POOL, item.type, toPosition)) doChangeTypeItem(item.uid, TYPE_EMPTY) return true end
  5. @Sttorm Tem sim, verifiquei aqui!
  6. TFS 0.4 OTX Preciso de um script que proibe o player de jogar items em determinados tile ids.
  7. Após você editar os atributos dentro do Object Builder, você foi no seu item editor e atualizou os atributos dos items do seu items.otb?
  8. Veja se agora esta indo: function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end if getPlayerLevel(cid) > 1 then doSendMagicEffect(position, 36) player:say('Melhor Servidor!', TALKTYPE_MONSTER_SAY) end return true end
  9. function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end if getPlayerLevel(cid) > 1 then doSendMagicEffect(position, 36) doPlayerSay(cid, "Melhor Servidor", TALKTYPE_MONSTER_SAY) end return true end
  10. Não tive tempo de testar. Veja ai se funfa promoteitems.lua -- Created by egyptPOWER -- function onUse(cid, item, fromPosition, itemEx, toPosition) local item1 = ID ITEM SORC local item2 = ID ITEM DRUID local item3 = ID ITEM PALADIN local item4 = ID ITEM KNIGHT -- CONFIG MS if (getPlayerLevel(cid) == 8) then if (getPlayerVocation(cid) == 1 and item.itemid == item1) then doRemoveItem(item.uid, 1) doPlayerSetPromotionLevel(cid, getPlayerVocation(cid)+4) doPlayerSay(cid, "You are promoted to ".. getPlayerVocationName(cid) .."!", TALKTYPE_MONSTER_SAY) doSendMagicEffect(getPlayerPosition(cid),10) else doPlayerSay(cid, "To use it, you need be a master sorcerer.", TALKTYPE_MONSTER_SAY) end else doPlayerSay(cid, "You need level 8 to do it!", TALKTYPE_MONSTER_SAY) end -- CONFIG ED if (getPlayerLevel(cid) == 8) then if (getPlayerVocation(cid) == 2 and item.itemid == item2) then doRemoveItem(item.uid, 1) doPlayerSetPromotionLevel(cid, getPlayerVocation(cid)+4) doPlayerSay(cid, "You are promoted to ".. getPlayerVocationName(cid) .."!", TALKTYPE_MONSTER_SAY) doSendMagicEffect(getPlayerPosition(cid),10) else doPlayerSay(cid, "To use it, you need be a elder druid.", TALKTYPE_MONSTER_SAY) end else doPlayerSay(cid, "You need level 8 to do it!", TALKTYPE_MONSTER_SAY) end -- CONFIG RP if (getPlayerLevel(cid) == 8) then if (getPlayerVocation(cid) == 3 and item.itemid == item3) then doRemoveItem(item.uid, 1) doPlayerSetPromotionLevel(cid, getPlayerVocation(cid)+4) doPlayerSay(cid, "You are promoted to ".. getPlayerVocationName(cid) .."!", TALKTYPE_MONSTER_SAY) doSendMagicEffect(getPlayerPosition(cid),10) else doPlayerSay(cid, "To use it, you need be a royal paladin.", TALKTYPE_MONSTER_SAY) end else doPlayerSay(cid, "You need level 8 to do it!", TALKTYPE_MONSTER_SAY) end -- CONFIG EK if (getPlayerLevel(cid) == 8) then if (getPlayerVocation(cid) == 4 and item.itemid == item4) then doRemoveItem(item.uid, 1) doPlayerSetPromotionLevel(cid, getPlayerVocation(cid)+4) doPlayerSay(cid, "You are promoted to ".. getPlayerVocationName(cid) .."!", TALKTYPE_MONSTER_SAY) doSendMagicEffect(getPlayerPosition(cid),10) else doPlayerSay(cid, "To use it, you need be a elite knight.", TALKTYPE_MONSTER_SAY) end else doPlayerSay(cid, "You need level 8 to do it!", TALKTYPE_MONSTER_SAY) end return true end action.xml <action itemid="ID ITEM MS" event="script" value="promoteitem.lua"/> <action itemid="ID ITEM ED" event="script" value="promoteitem.lua"/> <action itemid="ID ITEM RP" event="script" value="promoteitem.lua"/> <action itemid="ID ITEM EK" event="script" value="promoteitem.lua"/>
  11. @Kyllini Deixe me ver se entendi, você quer um script para 4 itens diferentes cada um só pode ser usado pela vocação certa e promove o cara. É isso?
  12. -- Created by egyptPOWER -- function onUse(cid, item, fromPosition, itemEx, toPosition) if (getPlayerLevel(cid) <= 8) then if (getPlayerVocation(cid) >= 1 and getPlayerVocation(cid) <=4) then doRemoveItem(item.uid, 1) doPlayerSetPromotionLevel(cid, getPlayerVocation(cid)+4) doSendMagicEffect(getPlayerPosition(cid),10) doPlayerSay(cid, "You are promoted to ".. getPlayerVocationName(cid) .."!", TALKTYPE_MONSTER_SAY) else doPlayerSay(cid, "You already promoted.", TALKTYPE_MONSTER_SAY) end else doPlayerSay(cid, "You don\'t have level to do it.", TALKTYPE_MONSTER_SAY) return false end return true end Agora vai! Dei uma incrementada. Testei aqui e funcionou 100%
×
Close