Ir para conteúdo

SlowK

Membro
  • Registro em

  • Última visita

Solutions

  1. SlowK's post in (Resolvido)Npc Event Points was marked as the answer   
    Esse script é comum em baiaks, mas vou economizar o seu tempo.
     
    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 talkState = {} local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local shopWindow = {} local moeda = 6527 -- id da sua moeda vip local t = { [12396] = {price = 400}, [12575] = {price = 400}, [7440] = {price = 200}, [7443] = {price = 400}, [8981] = {price = 750}, [5468] = {price = 250}, [2346] = {price = 200} } local onBuy = function(cid, item, subType, amount, ignoreCap, inBackpacks) if t[item] and not doPlayerRemoveItem(cid, moeda, t[item].price) then selfSay("You don't have "..t[item].price.." "..getItemNameById(moeda), cid) else doPlayerAddItem(cid, item) selfSay("Here are you.", cid) end return true end if (msgcontains(msg, 'trade') or msgcontains(msg, 'TRADE'))then for var, ret in pairs(t) do table.insert(shopWindow, {id = var, subType = 0, buy = ret.price, sell = 0, name = getItemNameById(var)}) end openShopWindow(cid, shopWindow, onBuy, onSell) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())  
    <?xml version="1.0" encoding="UTF-8"?> <npc name="Event Seller" script="data/npc/scripts/eventcoins.lua" walkinterval="2000" speed="100" walkradius="4" floorchange="0" skull="green"> <health max="100" now="100"/> <look type="160" head="96" body="99" legs="99" feet="115" addons="2" mount="0"/> <parameters> <!--MESSAGES--> <parameter key="message_greet" value="Hello |PLAYERNAME| I change {event coins} for {items}, say {trade}, Ola |PLAYERNAME| Eu troco {event coins} por {items}, diga {trade}."/> <!--KEYWORDS--> <parameter key="module_keywords" value="1"/> </parameters> </npc>  
    O script não é de minha autoria. Só configurar o id da moeda e os items igual está no script
  2. SlowK's post in (Resolvido)PORTAIS QUE MUDAM COORDENADAS 8.60 was marked as the answer   
    Acho que esse script serviria para você, só você colocar o action no teleport e coloca a coordenada que quiser aleatoriamente. No caso se quisesse só duas opções era só apagar e deixar só duas opções de positions, como são dois teleports, cria 2 scripts com actions diferentes.
     
     
  3. SlowK's post in (Resolvido)Script que empurra os Player was marked as the answer   
    Só editar as pos
     
    movements.xml
    <movevent type="StepIn" actionid="10999" event="script" value="antistack.lua"/> local positions = { {x = 1385, y = 1378, z = 7}, {x = 1387, y = 1378, z = 7}, {x = 1387, y = 1379, z = 7}, {x = 1387, y = 1380, z = 7}, {x = 1386, y = 1380, z = 7}, {x = 1385, y = 1380, z = 7}, {x = 1385, y = 1379, z = 7}, {x = 1386, y = 1381, z = 7}, } function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) doTeleportThing(cid, positions[math.random(1, #positions)]) return true end  
  4. SlowK's post in [RESOLVIDO]Quero trocar meu nome was marked as the answer   
    http://www.tibiaking.com/forum/settings/username/
    Mude você mesmo.
  5. SlowK's post in (Resolvido)RME & SPR E DAT was marked as the answer   
    RME:
    http://www.tibiaking.com/forum/topic/56267-site-do-rme-offline-download/#entry336594
     
    Baixa o .spr e .dat nos downloads do otservlist, que funciona igual o do rme...
  6. SlowK's post in (Resolvido)Site do RME offline ~~ Download was marked as the answer   
    RME 2.1...
    http://www.mediafire.com/download/jix3zq1vd69ozvc/RME-win-2.1.msi

Informação Importante

Confirmação de Termo