Ir para conteúdo

Vodkart

Herói
  • Total de itens

    3406
  • Registro em

  • Última visita

  • Dias Ganhos

    113

Tudo que Vodkart postou

  1. então no caso é só colocar para o jogador só usar o item em PZ =X,oq vc acha?
  2. sua dúvida viro um pedido em fera :< mais ta nome do seu script.lua function onKill(cid, target) local exp = 50000 -- quanto de exp o jogador irá receber if (isPlayer(cid) and isPlayer(target)) then if (getPlayerLevel(cid) < getPlayerLevel(target)) then doPlayerAddExp(cid, exp) return TRUE end end return TRUE end creaturescript.xml <event type="kill" name="ExpKill" script="nome do seu script.lua"/> creaturescript/script/login.lua adiciona registerCreatureEvent(cid, "ExpKill")
  3. ok ai soh da um toque entao
  4. editei o topico ali em cima coloquei os script abraços
  5. mto facil,só usar globalstoragevalue,ai no piso você poe para psssar só se globalstoragevalue for >= 1 ai a talk vc poe pra dar a globalstorage... flw movements/script event_tile.lua function onStepIn(cid, item, position, fromPosition) if getGlobalStorageValue(78900) <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendCancel(cid, "Desculpe,Mais o evento ainda não começou.") return true end return true end movements.xml <movevent type="StepIn" actionid="16421" event="script" value="event_tile.lua"/> ai você põe actionid 16421 em todos os tiles de "largada" talkactions/script evento_onoff.lua function onSay(cid, words, param) if words == "/startevent" then setGlobalStorageValue(78900, 1) doBroadcastMessage("O evento foi iniciado!.", MESSAGE_STATUS_WARNING) elseif words == "/stopevent" then setGlobalStorageValue(78900, 0) doBroadcastMessage("Evento Finalizado! O Administrador decidiu acabar o evento.", MESSAGE_STATUS_WARNING) end return true end talkactions.xml <talkaction log="yes" words="/startevent;/stopevent" access="5" event="script" value="evento_onoff.lua"/>
  6. mto útil brother rep+ parabéns pela função
  7. qual ip do seu ot msm? :P
  8. claro que é possivel amigo,só fazer pelo onKill bjs
  9. Vodkart

    Exp Rig

    movements/script expring.lua local rate = 1.2 -- 20% function onEquip(cid, item, slot) if(item.itemid ~= 7697) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your exp rate + "..((rate - 1)*100).."%.") doPlayerSetExperienceRate(cid, rate) doTransformItem(item.uid, 7708 ) return TRUE end return TRUE end function onDeEquip(cid, item, slot) if(item.itemid ~= 7708) then return TRUE end doPlayerSetExperienceRate(cid, 1.0) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your extra experience rate has ended.") doTransformItem(item.uid,7697) return TRUE end movements.xml <movevent type="Equip" itemid="7697" slot="ring" event="function" value="onEquipItem"/> <movevent type="Equip" itemid="7708" slot="ring" event="script" value="expring.lua"/> <movevent type="DeEquip" itemid="7708" slot="ring" event="script" value="expring.lua"/> no items.xml modifique: Por:
  10. creaturescript/script ai a tag é essa <event type="login" name="AntiAccBomb" script="nome do seu script.lua"/>
  11. tenta isso: function onLogin(cid) local quantidade = 5 -- numero max de acc manager on local b = 0 for _, pid in pairs(getPlayersOnline()) do if(getCreatureName(pid) == 'Account Manager')then b = (b or 0) + 1 if b > quantidade then return FALSE end end end return TRUE end
  12. isso não é movements é globalevents só procurar pelo script lá
  13. reviveu um topico pra nada tenha mais cuidado velho
  14. 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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid if(msgcontains(msg, 'promotion') or msgcontains(msg, 'promote')) then if(getPlayerPromotionLevel(cid) >= 1) then return selfSay('You are already promoted!.', cid) end setPlayerPromotionLevel(cid, 1) selfSay('Congratulations! You are now promoted.', cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  15. nem preciso testar para saber que o script nem vai funcionar :X faz direito a coisa cara,quer postar tudo pela metade que coisa feia menino.
  16. Mto bom cara,essa função será bem aproveitada! REP+
  17. isso pode te ajudar :X http://www.xtibia.com/forum/topic/152827-vocation-oufit/
  18. iajaiajiaaiaauahuahaua tbm n gosto do real serve tem varios scripts meus que não funcionam lá e eu nao sei pq :X abraços e boa sorte ai
  19. Vodkart

    Script Paradox

    caixa.lua function onAddItem(moveitem, tileitem, position, cid) if moveitem.itemid == 1739 then doCreateItem(1386,1,{x=32477, y=31905, z=5, stackpos=1}) end return TRUE end function onRemoveItem(item, tileItem, pos) pos.stackpos = 1 if(getThingfromPos(pos).uid == 0) then local x = getThingfromPos({x=32477, y=31905, z=5, stackpos=1}) doRemoveItem(x.uid, 1) end return TRUE end movements.xml <movevent type="AddItem" tileitem="1" actionid="26400" event="script" value="caixa.lua"/> <movevent type="RemoveItem" tileitem="1" actionid="26400" event="script" value="caixa.lua"/> No tile vc coloca Actionid = 26400 flw
  20. function onSay(cid, words, param, channel) local exhaust = 30 local storage = 9393 local destinations = { ["temple"] = {p = {x=31521, y=31523, z=7}, l = 10, c = 100}, ["trainers"] = {p = {x=32296, y=32224, z=15}, l = 10, c = 200}, ["tps"] = {p = {x=32174, y=32209, z=7}, l = 10, c = 300} } local tp = destinations[param] if(param == "") then doPlayerSendCancel(cid, "Command param required.") return true elseif(getPlayerMoney(cid) < tp.c) then doPlayerSendCancel(cid, "You do not have enough money.") return true elseif(getPlayerLevel(cid) < tp.l) then doPlayerSendCancel(cid, "Your level is not high enough.") return true elseif (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then doPlayerSendCancel(cid, "You are currently in a fight.") return true elseif getPlayerStorageValue(cid, storage) >= os.time() then doPlayerSendCancel(cid, "Sorry, you only can again use this item after "..getPlayerStorageValue(cid, storage) - os.time().." seconds.") return true end doPlayerRemoveMoney(cid, tp.c) doTeleportThing(cid, tp.p) doSendMagicEffect(tp.p, CONST_ME_TELEPORT) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have successfully teleported to ".. param ..".") setPlayerStorageValue(cid, storage, os.time()+exhaust) return true end tbm fiz um teleport por talk mais avaçado,se vc quiser dar uma olhada: http://www.xtibia.com/forum/topic/134593-talkaction-teleport-por-talk-para-vip/
  21. function onUse(cid, item, fromPosition, itemEx, toPosition) local acess,pos = 3,{x=160, y=54, z=7} -- modifique acesso esta 3 e mude a coordenada if getPlayerGroupId(cid) < acess then return false end doTeleportThing(cid, pos) return true end
  22. vai na pasta mods e retira : buypremium_command.xml
  23. Ha bem manero seu script,e acho que ainda n existia um tão completinho igual o seu de alquimia neh? rep + brother abraços
  • Quem Está Navegando   0 membros estão online

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