Ir para conteúdo

notle2012

Conde
  • Total de itens

    884
  • Registro em

  • Última visita

  • Dias Ganhos

    8

Tudo que notle2012 postou

  1. muito bom ótimos scripts esses mais nas Alavancas não seria assim a linha 15 não seria na linha 10 pra mover a alavancas só se tiver a grana, o item doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
  2. não entendi muito bem oq vc quer? save fast só ir em data\globalevents\globalevents.xml <globalevent name="save" interval="800" event="script" value="save.lua"/> alterar red
  3. ver assim function onUse(cid, item, frompos, item2, topos) local level = getPlayerLevel(cid) local mlevel = getPlayerMagLevel(cid) local exhausted_seconds = 1 local exhausted_storagevalue = 7480 local mana_minimum = 40000 local mana_maximum =40000 local mana_add = math.random(mana_minimum, mana_maximum) if(item.type >= 1) then if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then if(isPlayer(cid) == 1) then doSendMagicEffect(topos,12) doPlayerAddMana(cid, mana_add) doPlayerAddHealth(cid, mana_add) doPlayerSay(cid,"I feel the best",1) setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds) doChangeTypeItem(item.uid, item.type - 1) else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exchausted.") end else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") end else if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue)) then doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") else if(isPlayer(cid) == 1) then doSendMagicEffect(topos,12) doPlayerAddMana(cid, mana_add) doPlayerAddHealth(cid, mana_add*1.5) doPlayerSay(cid,"I feel the best",1) setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds) else doSendMagicEffect(frompos, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exchausted.") end end end return 1 end
  4. notle2012

    Itibia

    fisso um aqui rapidinho acho q fica pequena a imagem
  5. não entendeu tenta ai ou vai precisa de imagens? edit Newtonnotwen ja posto imagens rsrs
  6. abre map editor la em cima em pallet seleciona creature pallet seleciona mostro la em baixo tem nome place spawn depois clica no chao depois clica no nome place creature
  7. não entendi ali não ja ta te ensinando? tenta esse então http://www.xtibia.com/forum/topic/174349-action-vip-system-com-o-nome-vip-no-char/
  8. pronto aqui todas vocations pode usa local config = { removeOnUse = "yes", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "no", range = -1, realAnimation = "no", -- make text effect visible only for players in range 1x1 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, 400}, level = 50, vocations = {1,2,3, 4,5,6,7, 8,9,10,11,12}, vocStr = "sorcerers and knights and paladins and druids"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {1,2,3, 4,5,6,7, 8,9,10,11,12}, vocStr = "sorcerers and knights and paladins and druids"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {800, 1000}, level = 130, vocations = {1,2,3, 4,5,6,7, 8,9,10,11,12}, vocStr = "sorcerers and knights and paladins and druids"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {70, 130}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {110, 190}, level = 50, vocations = {1,2,3, 4,5,6,7, 8,9,10,11,12}, vocStr = "sorcerers and knights and paladins and druids"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {200, 300}, level = 80, vocations = {1,2,3, 4,5,6,7, 8,9,10,11,12}, vocStr = "sorcerers and knights and paladins and druids"}, -- great mana potion [8472] = {empty = 7635, splash = 3, health = {200, 400}, mana = {110, 190}, level = 80, vocations = {1,2,3, 4,5,6,7, 8,9,10,11,12}, vocStr = "sorcerers and knights and paladins and druids"} -- great spirit potion } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (1000)) 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)) doRemoveItem(item.uid, 1) doPlayerAddItem(cid, potion.empty, 1) return true end if(hasCondition(cid, CONDITION_EXHAUST)) 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_MONSTER) return true end if(config.range > 0 and cid ~= itemEx.uid and getDistanceBetween(getCreaturePosition(cid), getCreaturePosition(itemEx.uid)) > config.range) then return false 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 config.realAnimation) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_MONSTER) else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_MONSTER, false, tid) end end end doAddCondition(cid, exhaust) doRemoveItem(item.uid, 1) if(not potion.empty or config.removeOnUse) then return true end doPlayerAddItem(cid, potion.empty, 1) return true end agora pra editar nome vc tem que ir em data\items\items.xml procurar por 7588-7591;8472-8473;7618;7620;8704;7488 um de cada vez exemplo 7588 <item id="7588" article="a" name="strong health potion"> <attribute key="description" value="This potion can only be consumed by paladins and knights of level 50 or higher." /> <attribute key="weight" value="200" /> </item> e edita como quiser edita só oq eu deixei em red EDIT se quiser reala mais edita essa parte [8473]={empty =7635, splash =2, health ={800,1000}
  9. vai em data\actions\scripts\liquids\potions.lua se não tiver pasta liquids cria uma pasta com nome liquids e aquivo.lua la local config = { removeOnUse = "yes", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "no", range = -1, realAnimation = "no", -- make text effect visible only for players in range 1x1 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, 400}, level = 50, vocations = {3, 4, 7, 8}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4, 8}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {800, 1000}, level = 130, vocations = {4, 8}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {70, 130}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {110, 190}, level = 50, vocations = {1, 2, 3, 5, 6, 7}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {200, 300}, level = 80, vocations = {1, 2, 5, 6}, vocStr = "sorcerers and druids"}, -- great mana potion [8472] = {empty = 7635, splash = 3, health = {200, 400}, mana = {110, 190}, level = 80, vocations = {3, 7}, vocStr = "paladins"} -- great spirit potion } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (1000)) 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)) doRemoveItem(item.uid, 1) doPlayerAddItem(cid, potion.empty, 1) return true end if(hasCondition(cid, CONDITION_EXHAUST)) 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_MONSTER) return true end if(config.range > 0 and cid ~= itemEx.uid and getDistanceBetween(getCreaturePosition(cid), getCreaturePosition(itemEx.uid)) > config.range) then return false 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 config.realAnimation) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_MONSTER) else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_MONSTER, false, tid) end end end doAddCondition(cid, exhaust) doRemoveItem(item.uid, 1) if(not potion.empty or config.removeOnUse) then return true end doPlayerAddItem(cid, potion.empty, 1) return true end data\actions\actions.xml e adiciona isso <action itemid="7588-7591;8472-8473;7618;7620;8704;7488" event="script" value="liquids/potions.lua"/>
  10. notle2012

    Sistem Vip

    tenta assim, -- Script SYtem vip 2.0 -- function onSay(cid, words, param) if(words == "!vipdays") then local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(cid, 4003) - timenow)/(24 * 60 * 60)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. (quantity < 0 and 0 or quantity) .." dias de VIP no seu character.") if getPlayerVocation(cid) <= 4 then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) elseif(words == "/checkvip") then if getPlayerAccess(cid) == 5 then if not param then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") end end local player = getPlayerByName(param) if not isPlayer(player) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player "..player.." not found.") end local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(player, 4003) - timenow)/(24 * 60 * 60)) doPlayerPopupFYI(cid, "O jogador tem ".. (quantity < 0 and 0 or quantity) .." dias de VIP no character.") return TRUE end elseif(words == "/addvip") then if getPlayerAccess(cid) == 5 then local t = string.explode(param, ",") if not t[2] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") end local player = getPlayerByName(t[1]) local name = getCreatureName(player) local days = t[2] local pid = getPlayerByNameWildcard(t[1]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return TRUE end local daysvalue = days*3600*24 local storageplayer = getPlayerStorageValue(player, 4003) local timenow = os.time() local time = storageplayer <= 0 and (timenow + daysvalue) or (storageplayer + daysvalue) if string.find(tostring(getCreatureName(pid)),"[[Vip]]") then doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Foram adicionados "..days.." dias de VIP no seu character.") setPlayerStorageValue(player, 4003, time) local quantity = math.floor((getPlayerStorageValue(player,13540) - timenow)/(3600*24)) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Você tem "..quantity.." dias de VIP restantes.") else setPlayerStorageValue(player, 4003, time) db.executeQuery("UPDATE `players` SET `name` = '[Vip] "..name.."' WHERE `id` = "..getPlayerGUID(player)..";") doRemoveCreature(player) end end elseif(words == "/delvip") then if getPlayerAccess(cid) == 5 then local dec = MESSAGE_INFO_DESCR if(param == "") then return TRUE,doPlayerSendTextMessage(cid,18,"Command param required.")end local C,t = {},string.explode(param, ",") C.pos = getPlayerPosition(cid) C.uid = getCreatureByName(t[1]) C.time = ((tonumber(t[2]) == nil) and 1 or tonumber(t[2]))*3600*24 --Tempo da vip por dia. C.days = (tonumber(t[2]) == nil) and 1 or tonumber(t[2]) --Dias de vip. if(getPlayerStorageValue(C.uid,4003) < C.time)then doPlayerSendTextMessage(cid,dec,'O jogador '..t[1]..' não possui '..C.days..' dias de vip.') else doPlayerSendTextMessage(cid,dec,'Você removeu '..C.days..' dias de vip do player '..t[1]..'.') setPlayerStorageValue(C.uid,4003,getPlayerStorageValue(C.uid,13540)-C.time) end doSendMagicEffect(C.pos, math.random(28,30)) end end return TRUE end
  11. pois só level 120+ e mesmo Character Information Name: Kyara Dreaming Sex: female Vocation: Elite Knight Level: 104 Achievement Points: 9 World: Empera Residence: Carlin Guild membership: Leader of the Forgotten Heroes Last login: Aug 18 2012, 05:27:25 CEST Comment: Hello ! ::Skills:: Sword Fighting - 90 Shield Fighting - 88 Magic Level - 5 Best Hit: 382 ! Account Status: Premium Account
  12. notle2012

    Tile Vip

    vip function onStepIn(cid, item, pos) -- teleports config teleport1 ={x=, y=, z=} -- edita if isPlayer(cid) then if item.actionid == 19999 then vip = getPlayerStorageValue(cid,19999) if vip == -1 then doPlayerSendCancel(cid,"Desculpe,Camelôs Apenas Para Jogadores Vips.") doTeleportThing(cid,teleport1) else end end end end vip2 function onStepIn(cid, item, position, fromPosition) local tileConfig = { kickPos = fromPosition, kickEffect = CONST_ME_POFF, kickMsg = "Desculpe,Camelôs Apenas Para Jogadores Vips.", enterMsg = "Bem-vindo à área vip!", enterEffect = CONST_ME_MAGIC_BLUE, vipStorage = 19999, } if(getPlayerStorageValue(cid, tileConfig.vipStorage) <= 0) then doTeleportThing(cid, tileConfig.kickPos) doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect) doPlayerSendCancel(cid, tileConfig.kickMsg) return end doPlayerSendTextMessage(cid, 25, tileConfig.enterMsg) doSendMagicEffect(position, tileConfig.enterEffect) return true end <movevent event="StepIn" actionid="19999" script="vip.lua" /> <movevent type="StepIn" actionid="20000" event="script" value="vip2.lua"/> actionid="20000" coloca no chao com map editor
  13. notle2012

    Target

    @weverton1559 usa script do caotic data\creaturescripts\scripts\ aqui vc coloca blockpz.lua e abre o login.lua que fica em data\creaturescripts\scripts\login.lua adiciona isso registerCreatureEvent(cid, "blockpz") em data\creaturescripts\creaturescripts.xml adiciona isso <event type="think" name="blockpz" event="script" value="blockpz.lua"/>
  14. pokemon centurion e PDA do brun123 brun123 tiro essa trava das sources já faz tempo
  15. vai procurar um mapa com respaw que esse ot um dos melhores que vc pode achar aqui no xtibia
  16. aposta o scripts ta em data\globalevents\record.lua
  17. notle2012

    {Resolvido}

    @OtheReality mais facil editar o seu script tava querendo dizer isso ta 100% dei uma editada rápida deixei hp function onUse(cid, item) local amount_storage = 19901 local hp_storage = 19902 local playerhp_storage = getPlayerStorageValue(cid, hp_storage) -- config. local max_runes = 3 -- maximo de runas que o jogador pode usar. local efeito = 28 -- magic efect ao usar uma runa. local removedor = 6547 -- id do removedor. local hp_rune = 6550 -- id da runa de HP. local hp_amount = 150 -- HP max aumentada. if (item.itemid == hp_rune) then if getPlayerStorageValue(cid, amount_storage) < max_runes then if (item.itemid == hp_rune) then local hp_max = getCreatureMaxHealth(cid) setCreatureMaxHealth(cid, hp_max + hp_amount) doCreatureAddHealth(cid,-hp_amount-10) doPlayerSetStorageValue(cid, hp_storage, playerhp_storage + 1) doPlayerSave(cid) doCreatureAddHealth(cid,hp_amount*2+10) end else doPlayerSendTextMessage(cid, 22, 'Agora você possui '..max_runes..' runas.') end end if ((item.itemid == hp_rune)) and (getPlayerStorageValue(cid, amount_storage) < 1) then doPlayerSetStorageValue(cid, amount_storage, 1) doPlayerSetStorageValue(cid, hp_storage, 1) doPlayerSetStorageValue(cid, ml_storage, 1) doSendMagicEffect(getPlayerPosition(cid), efeito) doRemoveItem(item.uid, 1) elseif ((item.itemid == hp_rune)) and (getPlayerStorageValue(cid, amount_storage) > 0) and (getPlayerStorageValue(cid, amount_storage) < max_runes) then local runas = getPlayerStorageValue(cid, amount_storage) doPlayerSetStorageValue(cid, amount_storage, runas + 1) doSendMagicEffect(getPlayerPosition(cid), efeito) doRemoveItem(item.uid, 1) elseif (item.itemid == removedor) then local hp_max = getCreatureMaxHealth(cid) setCreatureMaxHealth(cid, hp_max -(playerhp_storage * hp_amount)) doCreatureAddHealth(cid,-max_runes*hp_amount) doPlayerSetStorageValue(cid, amount_storage, 0) doPlayerSetStorageValue(cid, hp_storage, 0) local new_amount = getPlayerStorageValue(cid, amount_storage) doPlayerSendTextMessage(cid, 22, 'Agora você possui '..new_amount..' runas.') doSendMagicEffect(getPlayerPosition(cid), efeito) doRemoveItem(item.uid, 1) doPlayerSave(cid) end return TRUE end @Oneshot interessante essas condition não sabia disso ainda rsrs to me esforçando pra aprende mais não sei onde achar mais Conteúdo sobre linguagem.lua só acho aquele manual muito ruim e aqui no xtibia que salva pátria rsrs
  18. notle2012

    Ajuda Com Npc

    muito sono tenta assim to saindo aqui flw local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end npcHandler:setMessage(MESSAGE_GREET, "O meu amigo está muito doente e precisa de ajuda pode ajuda-lo??") function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end Sto = getPlayerStorageValue(cid,2491) local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid -- Conversa Jogador/NPC if(msgcontains(msg, 'yes')) and getPlayerItemCount(cid,2515)>=2 and getPlayerItemCount(cid,2391)>=300 then if Sto == -1 then doPlayerAddItem(cid,2152,10) doPlayerRemoveItem(cid,2515,2) doPlayerRemoveItem(cid,2391,300) setPlayerStorageValue(cid,5001,1) setPlayerStorageValue(cid,2491,1) selfSay('Obrigado por me ajudar, pegue essa recompensa.',cid) talkState[talkUser] = 1 else selfSay('Ele está piorando, rapido por favor..',cid) talkState[talkUser] = 1 end return TRUE end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  19. muitoooooo bom gostei muito do video vou ate tentar fazer aqui HAUShusuhahs
  20. notle2012

    Deleta

    [.spoiler]Contéudo[./spoiler] sem ponto ....
  21. muito bom mais ficaria melhor se tivesse separados type , name,weapontype,slottype,ammotype
  22. notle2012

    {Resolvido}

    @OtheReality acho que pra fica certo tem que adiciona isso assim que usa vai aumenta 150 mais vai perde 160 ai player vai nota diferença sem desloga faz teste ai doCreatureAddHealth(cid,-160) doPlayerAddMana(cid,-160)
  23. qual quer duvida só pergunta
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...