Ir para conteúdo

Rusherzin

Membro
  • Registro em

  • Última visita

Tudo que Rusherzin postou

  1. Simples, mas legal.. Eu botava a moeda na HotKey pra fazer isso no global aeahiuea.
  2. Olha aí no spoiler, eu copiei esse conteúdo de um post do Daaniel, não faço ideia de quem é os creditos: Link do Post.
  3. ALTER TABLE `players` ADD `castViewers` INT( 11 ) NOT NULL DEFAULT '0', ADD `castDescription` VARCHAR( 255 ) NOT NULL
  4. Rusherzin postou uma resposta no tópico em Suporte Tibia OTServer
    Fiz o script junto e outro separado, o separado e mais seguro para players não deslogarem e se trancarem ali ou para outro player que ficar atrás não trancar o player.. Em data/movements/scripts crie dois arquivos lua wallcreate -- Depot Wall by: Rusherzin function onStepIn(cid, item, position, fromPosition) local pos1 = {x= getCreaturePosition(cid).x-2, y= getCreaturePosition(cid).y, z= getCreaturePosition(cid).z} if item.actionid == 1235 then doCreateItem(1499, 1, pos1) end return true end wallremove -- Depot Wall by: Rusherzin function onStepIn(cid, item, position, fromPosition) local wall = {x= getCreaturePosition(cid).x-1, y= getCreaturePosition(cid).y, z= getCreaturePosition(cid).z, stackpos= 1} local wall2 = getThingFromPos(wall) if item.actionid == 1236 then doRemoveItem(wall2.uid, 1) end return true end E, no movemens.xml adicione estas tags: <movement type="StepIn" actionid="1235" event="script" value="wallcreate.lua"/> <movement type="StepIn" actionid="1236" event="script" value="wallremove.lua"/> E por fim adicione a actionid 1235 no tile que vai criar a wall, e adicione actionid 1236 no tile que vai remover a wall
  5. Tenta esse, é só adicionar a posição pra onde serão teletransportados. function onStepIn(cid, item, position, fromPosition) local position1 = {x= 439, y=49, z=7} if isPremium(cid) == false then doTeleportThing(cid, position1) doPlayerSendTextMessage(cid, 25, "Only vip accounts can acess this area.") else doPlayerSendTextMessage(cid, 25, "Welcome to Vip Area.") end return true end
  6. Tenta com esse: function onStepIn(cid, item, position, fromPosition) if getPlayerPremiumDays(cid) < 1 then doTeleportThing(cid, fromPosition) doPlayerSendTextMessage(cid, 25, "MSG SE NAO FOR VIP.") else doPlayerSendTextMessage(cid, 25, "MSG SE FOR VIP.") end return true end
  7. Qual a versão do teu server?
  8. Rusherzin postou uma resposta no tópico em Suporte Tibia OTServer
    E depois como ele vai fazer pra sair? Se for fazer como era no dawinbi, é 2 sqm's atrás..
  9. Mas eu botei a função pra remover e depois adicionar o item function onUse(cid, item, fromPosition, itemEx, toPosition) local cfg = {} cfg.refuel = 42 * 60 * 1000 if(getPlayerStamina(cid) >= cfg.refuel) then doPlayerSendCancel(cid, "Your stamina is already full.") elseif(not isPremium(cid)) then doPlayerSendCancel(cid, "You must have a premium account.") else doPlayerSetStamina(cid, cfg.refuel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.") doRemoveItem(item.uid) doPlayerAddItem(cid, 1234, 1) end return true end Ali em "1234" , substitui o id do Rec..
  10. Não faz sentido, tenta assim: function onUse(cid, item, fromPosition, itemEx, toPosition) local cfg = {} cfg.refuel = 42 * 60 * 1000 if(getPlayerStamina(cid) >= cfg.refuel) then doPlayerSendCancel(cid, "Your stamina is already full.") elseif(not isPremium(cid)) then doPlayerSendCancel(cid, "You must have a premium account.") else doPlayerSetStamina(cid, cfg.refuel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.") doRemoveItem(item.uid) doPlayerAddItem(item.uid) end return true end
  11. Antes de deixá-lo infinito funcionava?
  12. Baixa a versão mais nova do SQLite, link AQUI
  13. Rusherzin postou uma resposta no tópico em Suporte Tibia OTServer
    Olhei aqui, http://www.tibiaking.com/forum/topic/1988-lista-de-funcoes-lua/ E acho que essa função não existe.
  14. Rusherzin postou uma resposta no tópico em Suporte Tibia OTServer
    ALTER TABLE `players` ADD column `marrystatus` int(10) unsigned NOT NULL DEFAULT '0';
  15. Em data/movements/scripts/ crie um arquivo lua e renomeie para premiumtile E, adicione isso: function onStepIn(cid, item, position, fromPosition) if isPremium(cid) == false then doTeleportThing(cid, fromPosition) doPlayerSendTextMessage(cid, 25, "MSG SE NAO FOR VIP.") else doPlayerSendTextMessage(cid, 25, "MSG SE FOR VIP.") end return true end Depois adicione esta tag no movements.xml <movevent type="StepIn" actionid="1242" event="script" value="premiumtile.lua"/> E por fim adicione a actionid 1242 nos tiles premiums.
  16. Na sua database, veja qual é o townid do sample
  17. Rusherzin postou uma resposta no tópico em Suporte Tibia OTServer
    Executa lá na db do phpmyadmin INSERT INTO `players` (`id`, `name`, `world_id`, `group_id`, `account_id`, `level`, `vocation`, `health`, `healthmax`, `experience`, `lookbody`, `lookfeet`, `lookhead`, `looklegs`, `looktype`, `lookaddons`, `maglevel`, `mana`, `manamax`, `manaspent`, `soul`, `town_id`, `posx`, `posy`, `posz`, `conditions`, `cap`, `sex`, `lastlogin`, `lastip`, `save`, `skull`, `skulltime`, `rank_id`, `guildnick`, `lastlogout`, `blessings`, `balance`, `stamina`, `direction`, `loss_experience`, `loss_mana`, `loss_skills`, `loss_containers`, `loss_items`, `premend`, `online`, `marriage`, `marrystatus`, `promotion`, `deleted`, `description`, `created`, `nick_verify`, `old_name`, `hide_char`, `worldtransfer`, `comment`, `show_outfit`, `show_eq`, `show_bars`, `show_skills`, `show_quests`, `goals`, `wins`, `total`, `exphist_lastexp`, `exphist1`, `exphist2`, `exphist3`, `exphist4`, `exphist5`, `exphist6`, `exphist7`, `onlinetimetoday`, `onlinetime1`, `onlinetime2`, `onlinetime3`, `onlinetime4`, `onlinetime5`, `onlinetime6`, `onlinetime7`, `onlinetimeall`, `frags`) VALUES (1, 'Account Manager', 6, 1, 1, 1, 0, 150, 150, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 32360, 31782, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, '', 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (2, 'Rook Sample', 1, 1, 1, 1, 0, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, '', 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (3, 'Sorcerer Sample', 1, 1, 1, 10, 1, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, '', 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (4, 'Druid Sample', 1, 1, 1, 10, 2, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, '', 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (5, 'Paladin Sample', 1, 1, 1, 10, 3, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, '', 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (6, 'Knight Sample', 1, 1, 1, 10, 4, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, '', 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
  18. Está certo, o townid dos samples está 1?
  19. A townid dos Samples e no config.lua estão certas? Veja no rme se a townid corresponde as coordenadas.
  20. É poketibia?
  21. Ponha 103000
  22. Checa o actions.xml e verifique arquivos que você não conheça a função, ele pode ter colocado um action em algum lugar que ao clicar ganhará GOD..
  23. Tenta usar o config.lua assim:
  24. Creio que sejam globalevents, é só encontrar o arquivo LUA dentro da pasta scripts e depois retirar a tag dele do globalevents.xml..

Informação Importante

Confirmação de Termo