Ir para conteúdo

[Encerrado] ajuda porfavor


lol08

Posts Recomendados

Galera ontem anoite criei um topico pedindo ajuda em duelo system conseguir desenvolver todinho mais quando chega no final agr um poke nao ataca o outro

 


ajuda porfavor agr so falta o pokemon marcar o target quando da duel as magias de area ja pega

Link para o comentário
Compartilhar em outros sites

Ja tentei isso tb

-- Config Editado e optimizado por Yagoo.!
-- Account manager
accountManager = true
namelockManager = true
newPlayerChooseVoc = false
newPlayerSpawnPosX = 1240
newPlayerSpawnPosY = 1227
newPlayerSpawnPosZ = 15
newPlayerTownId = 1
newPlayerLevel = 5
newPlayerMagicLevel = 0
generateAccountNumber = false
lightInterval = 7500
-- a cada "lightInterval" ms vai passar 1 minuto
lightChange = 1
-- quanto de light ira alterar durante passagem de dia/noite
startupTime = 351
-- quantas horas serão ao ligar o server (360 = 6:00 a.m, 1080 = 6:00 p.m, varia de 0 a 1440)
startupLight = 40
-- quanto de light vai estar ao ligar o server
limitPokeballs = 6 -- deprecated
happyDropTime = 1000 -- a cada "happyDropTime" segundos o pokemon vai perder HAPPINESS
minHappinessEffectDelay = 2500 -- a cada min de "happinessEffectDelay" segundos o pokemon vai mostrar a felicidade
maxHappinessEffectDelay = 4000 -- a cada min de "happinessEffectDelay" segundos o pokemon vai mostrar a felicidade
PokemonStageVeryHappy = 21 -- com quanto de happy o poke precisa pra estar muito feliz
PokemonStageHappy = 16 -- ... pra estar feliz
PokemonStageOK = 11 -- ... pra estar normal
PokemonStageSad = 5 -- ... pra estar triste
PokemonStageMad = 0 -- ... pra estar bravo
maximumHunger = 120 -- maior fome possivel
stateHunger = 100000 -- 19estagio que precisa estar pra ficar com fome
increaseHunger = 100000 -- a cada X segundos (xml do monstro) aumenta o hunger em "increaseHunger"
decreaseHappy = 1 -- HAPPINESS que o pokemon vai perder a cada "happyDropTime"
decreaseHungryHappy = 0 -- 3HAPPINESS a mais que o pokemon vai perder se estiver com fome
useTeleportWithFly = false
dropHappyDuringBattles = true -- HAPPINESS vai cair enquanto estiver batalhando ? true / false
allowBlockSpawn = false
-- Unjustified kills
-- NOTE: *Banishment and *BlackSkull variables are >summed up<
-- (dailyFragsToRedSkull + dailyFragsToBanishment) with their
-- *RedSkull equivalents.
-- Auto banishing works only if useBlackSkull set to negative.
-- advancedFragList is not advised if you use huge frags
-- requirements.
redSkullLength = 30 * 24 * 60 * 60
blackSkullLength = 45 * 24 * 60 * 60
dailyFragsToRedSkull = 3
weeklyFragsToRedSkull = 5
monthlyFragsToRedSkull = 10
dailyFragsToBlackSkull = dailyFragsToRedSkull
weeklyFragsToBlackSkull = weeklyFragsToRedSkull
monthlyFragsToBlackSkull = monthlyFragsToRedSkull
dailyFragsToBanishment = dailyFragsToRedSkull
weeklyFragsToBanishment = weeklyFragsToRedSkull
monthlyFragsToBanishment = monthlyFragsToRedSkull
blackSkulledDeathHealth = 40
blackSkulledDeathMana = 0
useBlackSkull = true
useFragHandler = true
advancedFragList = false
-- Banishments
-- violationNameReportActionType 1 = just a report, 2 = name lock, 3 = player banishment
-- killsBanLength works only if useBlackSkull option is disabled.
notationsToBan = 3
warningsToFinalBan = 2
warningsToDeletion = 3
banLength = 7 * 24 * 60 * 60
killsBanLength = 7 * 24 * 60 * 60
finalBanLength = 30 * 24 * 60 * 60
ipBanishmentLength = 1 * 24 * 60 * 60
broadcastBanishments = true
maxViolationCommentSize = 200
violationNameReportActionType = 2
autoBanishUnknownBytes = false
-- Battle
-- NOTE: showHealingDamageForMonsters inheritates from showHealingDamage.
-- loginProtectionPeriod is the famous Tibia anti-magebomb system.
-- deathLostPercent set to nil enables manual mode.
worldType = "pvp"
protectionLevel = 1000
pvpTileIgnoreLevelAndVocationProtection = true
pzLocked = 10 * 1000
huntingDuration = 30 * 1000
criticalHitChance = 7
criticalHitMultiplier = 1
displayCriticalHitNotify = false
removeWeaponAmmunition = true
removeWeaponCharges = true
removeRuneCharges = true
whiteSkullTime = 15 * 60 * 1000
noDamageToSameLookfeet = false
showHealingDamage = false
showHealingDamageForMonsters = false
fieldOwnershipDuration = 5 * 1000
stopAttackingAtExit = false
oldConditionAccuracy = false
loginProtectionPeriod = 10 * 1000
deathLostPercent = 1
stairhopDelay = 0 * 1000
pushCreatureDelay = 1 * 1000
deathContainerId = 0
gainExperienceColor = 214
addManaSpentInPvPZone = true
squareColor = 0
allowFightback = true
-- Connection config
worldId = 1
ip = "198.27.95.174"
bindOnlyConfiguredIpAddress = false
loginPort = 7373
gamePort = 7474
adminPort = 7373
statusPort = 7373
loginTries = 10
retryTimeout = 5 * 1000
loginTimeout = 60 * 1000
maxPlayers = 500
motd = "Bem-Vindo(a) Ao Pokémon System"
displayOnOrOffAtCharlist = false
onePlayerOnlinePerAccount = true
allowClones = true
serverName = "P.S"
loginMessage = "Welcome to Pokémon System"
statusTimeout = 5 * 60 * 1000
replaceKickOnLogin = true
forceSlowConnectionsToDisconnect = false
loginOnlyWithLoginServer = false
premiumPlayerSkipWaitList = true
-- Database
-- NOTE: sqlFile is used only by sqlite database, and sqlKeepAlive by mysql database.
-- To disable sqlKeepAlive such as mysqlReadTimeout use 0 value.
sqlType = "sqlite"
sqlHost = "localhost"
sqlPort = 3306
sqlUser = "root"
sqlPass = ""
sqlDatabase = "forgottenserver.s3db"
sqlFile = "forgottenserver.s3db"
sqlKeepAlive = 0
mysqlReadTimeout = 10
mysqlWriteTimeout = 10
encryptionType = "plain"
-- Deathlist
deathListEnabled = true
deathListRequiredTime = 1 * 60 * 1000
deathAssistCount = 19
maxDeathRecords = 10
-- Guilds
ingameGuildManagement = true
levelToFormGuild = 40
premiumDaysToFormGuild = 0
guildNameMinLength = 2
guildNameMaxLength = 25
-- Highscores
highscoreDisplayPlayers = 15
updateHighscoresAfterMinutes = 60
-- Houses
buyableAndSellableHouses = true
houseNeedPremium = true
bedsRequirePremium = true
levelToBuyHouse = 1
housesPerAccount = 0
houseRentAsPrice = false
housePriceAsRent = false
housePriceEachSquare = 2975
houseRentPeriod = "never"
houseCleanOld = 0
guildHalls = false
-- Item usage
timeBetweenActions = 500
timeBetweenExActions = 500
hotkeyAimbotEnabled = true
-- Map
-- NOTE: storeTrash costs more memory, but will perform alot faster cleaning.
mapName = "mastermap-spawn"
mapAuthor = "Edita por Yagoo"
randomizeTiles = true
storeTrash = false
cleanProtectedZones = true
mailboxDisabledTowns = "1"
-- Process
-- NOTE: defaultPriority works only on Windows and niceLevel on *nix
-- coresUsed are seperated by comma cores ids used by server process,
-- default is -1, so it stays untouched (automaticaly assigned by OS).
defaultPriority = "high"
niceLevel = 5
coresUsed = "-1"
-- Startup
optimizeDatabaseAtStartup = true
removePremiumOnInit = true
confirmOutdatedVersion = false
-- Spells
formulaLevel = 5.0
formulaMagic = 1.0
bufferMutedOnSpellFailure = false
spellNameInsteadOfWords = false
emoteSpells = false
-- Outfits
allowChangeOutfit = true
allowChangeColors = true
allowChangeAddons = true
disableOutfitsForPrivilegedPlayers = false
addonsOnlyPremium = false
-- Miscellaneous
-- NOTE: promptExceptionTracerErrorBox works only with precompiled support feature,
-- called "exception tracer" (__EXCEPTION_TRACER__ flag).
dataDirectory = "data/"
bankSystem = true
displaySkillLevelOnAdvance = true
promptExceptionTracerErrorBox = true
separateViplistPerCharacter = false
maximumDoorLevel = 500
maxMessageBuffer = 4
-- Saving-related
-- useHouseDataStorage usage may be found at README.
saveGlobalStorage = false
useHouseDataStorage = false
storePlayerDirection = false
-- Loot
-- monsterLootMessage 0 to disable, 1 - only party, 2 - only player, 3 - party or player (like Tibia's)
checkCorpseOwner = true
monsterLootMessage = 3
monsterLootMessageType = 25
-- Ghost mode
ghostModeInvisibleEffect = true
ghostModeSpellEffects = true
-- Limits
idleWarningTime = 14 * 60 * 1000
idleKickTime = 15 * 60 * 1000
expireReportsAfterReads = 1
playerQueryDeepness = 2
maxItemsPerPZTile = 0
maxItemsPerHouseTile = 0
-- Premium-related
freePremium = true
premiumForPromotion = true
-- Blessings
-- NOTE: blessingReduction* regards items/containers loss.
-- eachBlessReduction is how much each bless reduces the experience/magic/skills loss.
blessingOnlyPremium = true
blessingReductionBase = 30
blessingReductionDecreament = 5
eachBlessReduction = 8
-- Rates
-- NOTE: experienceStages configuration is located in data/XML/stages.xml.
-- rateExperienceFromPlayers 0 to disable.
experienceStages = false
rateExperience = 1
rateExperienceFromPlayers = 1
rateSkill = 3
rateMagic = 1.0
rateLoot = 8
rateSpawn = 3
-- Monster rates
rateMonsterHealth = 1.0
rateMonsterMana = 1.0
rateMonsterAttack = 1.0
rateMonsterDefense = 1.0
-- Experience from players
-- NOTE: min~Threshold* set to 0 will disable the minimum threshold:
-- player will gain experience from every lower leveled player.
-- max~Threshold* set to 0 will disable the maximum threshold:
-- player will gain experience from every higher leveled player.
minLevelThresholdForKilledPlayer = 0.9
maxLevelThresholdForKilledPlayer = 1.1
-- Stamina
-- NOTE: Stamina is stored in miliseconds, so seconds are multiplied by 1000.
-- rateStaminaHits multiplies every hit done a creature, which are later
-- multiplied by player attack speed.
-- rateStaminaGain is divider of every logged out second, eg:
-- 60000 / 3 = 20000 milliseconds, what gives 20 stamina seconds for 1 minute being logged off.
-- rateStaminaThresholdGain is divider for the premium stamina.
-- staminaRatingLimit* is in minutes.
rateStaminaLoss = 1
rateStaminaGain = 3
rateStaminaThresholdGain = 12
staminaRatingLimitTop = 41 * 60
staminaRatingLimitBottom = 14 * 60
rateStaminaAboveNormal = 1.0
rateStaminaUnderNormal = 1.0
staminaThresholdOnlyPremium = true
-- Party
-- NOTE: experienceShareLevelDifference is float number.
-- experienceShareLevelDifference is highestLevel * value
experienceShareRadiusX = 30
experienceShareRadiusY = 30
experienceShareRadiusZ = 1
experienceShareLevelDifference = 200 * 200
extraPartyExperienceLimit = 20
extraPartyExperiencePercent = 20
experienceShareActivity = 2 * 60 * 1000
-- Global save
-- NOTE: globalSaveHour means like 03:00, not that it will save every 3 hours,
-- if you want such a system please check out data/globalevents/globalevents.xml.
globalSaveEnabled = false
globalSaveHour = 6
shutdownAtGlobalSave = false
cleanMapAtGlobalSave = false
-- Spawns
deSpawnRange = 2
deSpawnRadius = 25
-- Summons
maxPlayerSummons = 1
teleportAllSummons = true
teleportPlayerSummons = true
-- Status
ownerName = "Patrick"
ownerEmail = "patrick.correa@@Hotmail.com"
url = ""
location = "Brazil"
displayGamemastersWithOnlineCommand = false
-- Logs
-- NOTE: This kind of logging does not work in GUI version.
-- For such, please compile the software with __GUI_LOGS__ flag.
adminLogsEnabled = false
displayPlayersLogging = true
prefixChannelLogs = ""
runFile = ""
outLogName = ""
errorLogName = ""
truncateLogsOnStartup = false
Link para o comentário
Compartilhar em outros sites

 

 

function onJoinChannel(cid, channelId, users, isTv)
if channelId == 10 then
doShowPokemonStatistics(cid)
return false
end
if channelId == 11 then
if reloadHighscoresWhenUsingPc then
doReloadHighscores()
end
doPlayerPopupFYI(cid, getHighscoreString(8))
return false
end
if channelId == 12 then
if reloadHighscoresWhenUsingPc then
doReloadHighscores()
end
doPlayerPopupFYI(cid, getHighscoreString(6))
return false
end
--////////////////////////////////////////////////////////////////////////////////////////--
if channelId >= 19 and channelId <= 21 then --alterado v1.8 \/
setPlayerStorageValue(cid, 52480, (channelId-18))
setPlayerStorageValue(cid, 52484, ((channelId-18)*2)-1)
doSendAnimatedText(getThingPosWithDebug(cid), (channelId-18).."x"..(channelId-18), COLOR_BURN)
doPlayerSetVocation(cid, 8)
openChannelDialog(cid)
return false
end
if channelId >= 13 and channelId <= 18 then
local sid = getPlayerByName(getPlayerStorageValue(cid, 52483):match("(.*),"))
---------------- Proteçao para ter um oponente valido!
if not isCreature(sid) then
doPlayerSendTextMessage(cid, 20, "The other player isn't online! Duel is canceled!")
doPlayerSetVocation(cid, 1)
for i = 1, #storagesDuel do
setPlayerStorageValue(cid, storagesDuel, -1)
end
doCreatureSetSkullType(cid, 0)
return false
end
---------------- Proteçao para os 2 players terem a qntdade de pokes pro duel
local pokes1 = getLivePokeballs(cid, getPlayerSlotItem(cid, 3).uid, true)
local pokes2 = getLivePokeballs(sid, getPlayerSlotItem(sid, 3).uid, true)
if #pokes1 < (channelId-12) or #pokes2 < (channelId-12) then
local tpw = getPlayerStorageValue(cid, 52480) > 1 and "ally" or "opponent"
doPlayerSendTextMessage(cid, 20, "You or your "..tpw.." doesn't have that amount of pokemons in their bags! Duel are canceled!")
doPlayerSetVocation(cid, 1)
for i = 1, #storagesDuel do
setPlayerStorageValue(cid, storagesDuel, -1)
end
doCreatureSetSkullType(cid, 0)
return false
end
----------------
if getPlayerStorageValue(cid, 52480) > 1 then
setPlayerStorageValue(cid, 52482, getPlayerStorageValue(cid, 52482).. getCreatureName(sid)..",")
setPlayerStorageValue(cid, 52483, "")
end
----------------
doSendAnimatedText(getThingPos(cid), (channelId-12).." Poke"..(channelId > 13 and "s" or ""), COLOR_BURN)
setPlayerStorageValue(cid, 52481, (channelId-12))
setPlayerStorageValue(sid, 52485, getCreatureName(cid))
setPlayerStorageValue(sid, 52481, (channelId-12))
local players, pokes = getPlayerStorageValue(cid, 52480), getPlayerStorageValue(cid, 52481)
local str = {} --alterado v1.9 \/
table.insert(str, getCreatureName(cid).." is inviting you to a duel! Use order in him to accept it!\n")
table.insert(str, "Info Battle: Duel "..players.."x"..players.." - "..pokes.." pokes.")
doPlayerSendTextMessage(sid, 20, table.concat(str))
addEvent(doSendAnimatedText, 1000, getThingPos(cid), "BATTLE", COLOR_ELECTRIC)
doPlayerSetVocation(cid, 1)
return false
end
--////////////////////////////////////////////////////////////////////////////////////////--
if channelId >= 100 and channelId <= 10000 then
local owner = getPlayerByGUID(getChannelOwner(channelId))
if isChannelTv(channelId) then
if isCreature(owner) then
if owner ~= cid then
doPlayerWatchOther(cid, owner)
local plural = #users == 1 and "" or "s"
doPlayerSendChannelMessage(owner, "TV Channel", getCreatureName(cid)..' is now watching your channel (currently '..#users..' player'..plural..' watching this channel).', 15, channelId)
else
setPlayerStorageValue(cid, 99284, 1)
end
end
elseif owner == cid then
setPlayerStorageValue(cid, 99284, 2)
end
return true
end
return true
end
function onLeaveChannel(cid, channelId, users)
if channelId >= 100 and channelId <= 10000 then
local owner = getPlayerByGUID(getChannelOwner(channelId))
if isChannelTv(channelId) then
if owner ~= cid and getCreatureOutfit(cid).lookType == 814 then
doPlayerStopWatching(cid)
local plural = #users == 2 and "" or "s"
doPlayerSendChannelMessage(owner, "TV Channel", getCreatureName(cid)..' is not watching your channel anymore (currently '..#users - (1)..' player'..plural..' watching this channel).', 15, channelId)
elseif owner == cid then
setPlayerStorageValue(cid, 99284, -1)
doSendAnimatedText(getThingPos(cid), "CAM OFF", 180)
for stops = 1, #users do
if users[stops] ~= owner then
doPlayerStopWatching(users[stops])
end
end
end
elseif owner == cid then
setPlayerStorageValue(cid, 99284, -1)
end
return true
end
return true
end
function onWalk(cid, fromPosition, toPosition)
-- Código não é mais necessário, feito em c++
-- Code deprecated, made in c++
--if not canWalkOnPos(toPosition, false, false, false, true, false) and getPlayerStorageValue(cid, 17000) >= 1 then
-- doTeleportThing(cid, fromPosition, false)
-- doPlayerSendCancel(cid, "Sorry, not possible.")
--end
if getPlayerStorageValue(cid, 99284) <= 0 then return true end
local speed = getCreatureSpeed(cid)
local a = getWatchingPlayersFromPos(cid, fromPosition)
for b = 1, #a do
if getCreatureSpeed(a) ~= speed then
doChangeSpeed(a, - getCreatureSpeed(a))
doChangeSpeed(a, speed)
end
doTeleportThing(a, toPosition, true)
end
return true
end
local permited = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s",
"t", "u", "v", "x", "w", ",", "'", '"',
"y", "z", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", ".", "!", "@", "#", "$", "%", "&", "*", "(", ")",
"-", "_", "+", "/", ";", ":", "?", "^", "~", "{", "[", "}", "]", ">", "<", "£", "¢", "¬"}
function onTextEdit(cid, item, newText)
if item.itemid == 12330 then
if getPlayerStorageValue(cid, 99284) >= 1 then
doPlayerSendCancel(cid, "You are already on air!")
return false
end
local channelName = getCreatureName(cid).."'s TV Channel"
if string.len(newText) <= 0 then
doPlayerSendCancel(cid, "Your channel is going to be shown as \""..getCreatureName(cid).."'s TV Channel\".")
elseif string.len(newText) > 25 then
doPlayerSendCancel(cid, "Your channel name can't have more than 25 characters.")
return false
else
channelName = newText
end
setPlayerStorageValue(cid, 99284, 1)
setPlayerStorageValue(cid, 99285, "")
setPlayerStorageValue(cid, 99285, channelName)
doPlayerCreatePrivateChannel(cid, channelName)
doSendAnimatedText(getThingPos(cid), "ON AIR!", COLOR_GRASS)
return false
end
return true
end

Voce teria skype ?☻ po

up

Link para o comentário
Compartilhar em outros sites

@@nociam,não é necessário mexer em nada de pvp

 

@topic

a base que você usa chama pokemon system?


estou tentando te ajudar pois já conseguir adicionar duel system no pda 1.6 stigal pegando os códigos do pokemon skyfall mas demorei um bom tempo

Link para o comentário
Compartilhar em outros sites

@MaxxSilva vc teria skype ?

Server sem duel system http://www.xtibia.com/forum/topic/236889-atualizado-servidor-pokemon-system/

server com duel system http://www.xtibia.com/forum/topic/232969-server-pokexcyan-v30/(NAO E ESSE MAIS ESSE AQUI TAMBEM VALE)

Quero pegar duel system do cyan e botar no system


Descobri que nem na area pvp eu consigo atacar o outro pokemon pf alguem ajuda

serio esse forum ja foi bem melhor quando voltou agr pra variar ninguem ajuda


TAMBEM DESCOBRIR QUE NENHUMA MAGIIA EM AREA PEGA NO OUTRO POKEMON

Link para o comentário
Compartilhar em outros sites

@MaxxSilva vc teria skype ?

Server sem duel system http://www.xtibia.com/forum/topic/236889-atualizado-servidor-pokemon-system/

server com duel system http://www.xtibia.com/forum/topic/232969-server-pokexcyan-v30/(NAO E ESSE MAIS ESSE AQUI TAMBEM VALE)

Quero pegar duel system do cyan e botar no system

Descobri que nem na area pvp eu consigo atacar o outro pokemon pf alguem ajuda

 

serio esse forum ja foi bem melhor quando voltou agr pra variar ninguem ajuda

Não é questão de não ajudar,se visualizamos e não respondemos é porque não sabemos.
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

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