Ir para conteúdo

ramses82

Membro
  • Registro em

  • Última visita

Tudo que ramses82 postou

  1. http://www.halfaway.net/index.php?home
  2. it does not have the new pot on action so add <action itemid="26031" script="other/potions.lua" /> <action itemid="26030" script="other/potions.lua" /> <action itemid="26029" script="other/potions.lua" />
  3. just get them from TFS https://github.com/otland/forgottenserver/archive/master.zip
  4. Mitsiug eu se que já hiso bastante, mas há um erro de clonacion, com o reward treasure chest em ferumbras asc quest a gente pode llevarselo e pôr coisas em o, asi com um novo player só lhe dá clique e recive as coisas dentro e o outro jogador fica com suas coisas, por exemplo podem ser feito 2kk com um es solo un reporte - no falo br ;(
  5. edit on your lua otserv\data\npc\scripts\yaman.lua local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 local shopModule = ShopModule:new() npcHandler:addModule(shopModule) npcHandler:setMessage(MESSAGE_GREET, "Be greeted, human |PLAYERNAME|. How can a humble djinn be of service?") npcHandler:setMessage(MESSAGE_FAREWELL, "Farewell, human.") npcHandler:setMessage(MESSAGE_WALKAWAY, "Farewell, human.") npcHandler:setMessage(MESSAGE_SENDTRADE, 'At your service, just browse through my wares.') npcHandler:setCallback(CALLBACK_ONTRADEREQUEST, onTradeRequest) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) local focusModule = FocusModule:new() focusModule:addGreetMessage('hi') focusModule:addGreetMessage('hello') focusModule:addGreetMessage('djanni\'hah') npcHandler:addModule(focusModule) edit on your lua otserv\data\npc\scripts\yaman.lua
  6. ramses82 postou uma resposta no tópico em Suporte Tibia OTServer
    try changing localhost for 127.0.0.1
  7. ramses82 postou uma resposta no tópico em Suporte Tibia OTServer
    go to config.lua -- MySQL mysqlHost = "127.0.0.1" mysqlUser = "otserv" mysqlPass = "suesenha" mysqlDatabase = "global" mysqlPort = 3306 mysqlSock = "" passwordType = "sha1" put the same in a phpmyadmin account that should work
  8. 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 local function delayMoneyRemoval(item, pos) doRemoveItem(getTileItemById(pos, item).uid) return true end local function placeMoney(amount, table_middle_pos) local remain = amount local crystal_coins = 0 local platinum_coins = 0 if (math.floor(amount / 10000) >= 1) then crystal_coins = math.floor(amount / 10000) remain = remain - crystal_coins * 10000 end if ((remain / 100) >= 1) then platinum_coins = remain / 100 end addEvent(doCreateItem, 550, 2152, platinum_coins, table_middle_pos) addEvent(doCreateItem, 600, 2160, crystal_coins, table_middle_pos) end local function rollDice(roll, cc_count, pc_count, table_left_pos, table_middle_pos, npc) local dice_ids = {5792, 5793, 5794, 5795, 5796, 5797} local random_rollval = math.random(1,6) local total_g = (10000 * cc_count) + (100 * pc_count) local prize_percent = 0.8 -- 80% if ((total_g) <= 300000 and (total_g) >= 5000) then doSendMagicEffect(table_left_pos, CONST_ME_CRAPS) for _, itemId in pairs(dice_ids) do if(getTileItemById(table_left_pos, itemId).uid > 0) then doTransformItem(getTileItemById(table_left_pos, itemId).uid, dice_ids[random_rollval]) end end if (roll == 1 and random_rollval <= 3) then placeMoney(total_g + (total_g * prize_percent), table_middle_pos) addEvent(doSendMagicEffect, 400, table_left_pos, CONST_ME_SOUND_GREEN) addEvent(doSendMagicEffect, 700, table_left_pos, CONST_ME_SOUND_GREEN) addEvent(doCreatureSay, 500, npc, "You win!", TALKTYPE_SAY, false, 0) elseif (roll == 2 and random_rollval >= 4) then placeMoney(total_g + (total_g * prize_percent), table_middle_pos) addEvent(doSendMagicEffect, 400, table_left_pos, CONST_ME_SOUND_GREEN) addEvent(doSendMagicEffect, 700, table_left_pos, CONST_ME_SOUND_GREEN) addEvent(doCreatureSay, 500, npc, "You win!", TALKTYPE_SAY, false, 0) else addEvent(doSendMagicEffect, 400, table_left_pos, CONST_ME_BLOCKHIT) addEvent(doSendMagicEffect, 700, table_left_pos, CONST_ME_BLOCKHIT) addEvent(doCreatureSay, 500, npc, "Better luck next time.", TALKTYPE_SAY, false, 0) end doCreatureSay(npc, string.format("%s rolled a %d.", getCreatureName(npc), random_rollval), TALKTYPE_ORANGE_1, false, 0, table_left_pos) else addEvent(doCreateItem, 100, 2160, cc_count, table_middle_pos) addEvent(doCreateItem, 150, 2152, pc_count, table_middle_pos) doCreatureSay(npc, "The minimum wager is 5K and the maximum wager is 300K.", TALKTYPE_SAY, false, 0) end return true end function creatureSayCallback(cid, type, msg) -- NPC userdata instance local npc = getNpcCid() -- Game table position userdata instances local table_left_pos = {x = 32228, y = 32190, z = 15} -- Pos da frente do Npc onde gira o dado local table_middle_pos = {x = 32228, y = 32191, z = 15} -- Pos do meio onde vai o dinheiro -- Search for coins on the left and middle tables and create item userdata instances local table_middle_cc = getTileItemById(table_middle_pos, 2160) local table_middle_pc = getTileItemById(table_middle_pos, 2152) -- Other variables local cc_count = 0 local pc_count = 0 local ROLL, LOW, HIGH = 0, 1, 2 posplayer = {x=32229, y=32192, z=15} -- Pos onde o player precisa estar local ppos = getPlayerPosition(cid) if ppos.x == posplayer.x and ppos.y == posplayer.y then if isInArray({"H", "HIGH", "high", "h"}, msg) then ROLL = HIGH elseif isInArray({"L", "LOW", "l", "low"}, msg) then ROLL = LOW else return false end if (table_middle_cc.uid ~= 0) then cc_count = table_middle_cc.type doTeleportThing(table_middle_cc.uid, table_left_pos) addEvent(delayMoneyRemoval, 300, 2160, table_left_pos) end if (table_middle_pc.uid ~= 0) then pc_count = table_middle_pc.type doTeleportThing(table_middle_pc.uid, table_left_pos) addEvent(delayMoneyRemoval, 300, 2152, table_left_pos) end addEvent(rollDice, 500, ROLL, cc_count, pc_count, table_left_pos, table_middle_pos, npc) else return false end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) this is only h / l choose your own npc with this file vegas.lua on npc Then on scripts o<?xml version="1.0" encoding="UTF-8"?> <npc name="Vegas" script="Vegas.lua" walkinterval="0" floorchange="0"> <health now="100" max="100"/> <look type="132" head="114" body="0" legs="0" feet="114" addons="3"/> <parameters> <parameter key="message_greet" value="Hello, |PLAYERNAME|. You can bet speaking {H} or {L}, the minimum wager is 5K and the maximum wager is 300K." /> </parameters> </npc>n this npc folder vegas from Absolute
  9. otserv\data\items <item id="2389" article="a" name="spear"> <attribute key="weight" value="2000" /> <attribute key="attack" value="25" /> <attribute key="weaponType" value="distance" /> <attribute key="shootType" value="spear" /> <attribute key="range" value="3" /> <attribute key="duration" value="0" /> </item>
  10. Going to give you an easy fix, go to the config put \otserv\ Put all your server data in c:/otserv/ By the way if poeple try to get in to the server with 10.90 and they try to change their outfit *debugs* tu player
  11. Go to your host file if windows/system32/drivers/etc/host >> open with notepad++ add your (Ipv4 no-ip) open ipchanger with your ipv4 addres
  12. check your config.lua for this -- MySQL mysqlHost = "127.0.0.1" mysqlUser = "otserv" mysqlPass = "***" mysqlDatabase = "***" mysqlPort = 3306 mysqlSock = "" passwordType = "sha1" its to be the same as phpmyadmin usser
  13. if you just want to test just put your real global ip on config.lua ip = "xxx.xxx.xxx.xxx" on ip changer put you ipv4
  14. still you will need to change your host file, better put you global Ip and make no-ip wouldnt it be nice if dijins buys items at some % without quest, and 100 % with quest?
  15. this is great man, just one small thing scripts/scripts.xml great job bro

Informação Importante

Confirmação de Termo