Em 11/09/2016 em 17:15, Deadpool disse:Eai galerous, vim dizer que, para alterar a EXP que está relativamente alta no server dxp, basta ir em creaturescript/player/pokedeath e procurar está função:
function playerAddExp(cid, exp)if not isCreature(cid) then return true end if isInPartyAndSharedExperience(cid) then local partyPlayers = getPartyMembers(getPlayerParty(cid)) local partyExp = math.ceil(exp / #partyPlayers) for i = 1, #partyPlayers do if isPlayer(partyPlayers[i]) then doPlayerAddExp(partyPlayers[i], partyExp * 30) doSendAnimatedText(getThingPos(partyPlayers[i]), partyExp * 30, 215) end end return true end doPlayerAddExp(cid, exp * 30) doSendAnimatedText(getThingPos(cid), exp * 30, 215)endFunção arrumada para pegar apenas a XP que está configurada para cada pokémon.
function playerAddExp(cid, exp)if not isCreature(cid) then return true end if isInPartyAndSharedExperience(cid) then local partyPlayers = getPartyMembers(getPlayerParty(cid)) local partyExp = math.ceil(exp / #partyPlayers) for i = 1, #partyPlayers do if isPlayer(partyPlayers[i]) then doPlayerAddExp(partyPlayers[i], partyExp) doSendAnimatedText(getThingPos(partyPlayers[i]), partyExp, 215) end end return true end doPlayerAddExp(cid, exp) doSendAnimatedText(getThingPos(cid), exp, 215)end
[07/05/2020 23:42:02] [Error - CreatureScript Interface]
[07/05/2020 23:42:02] data/creaturescripts/scripts/player/pokeDeath.lua:matou
[07/05/2020 23:42:02] Description:
[07/05/2020 23:42:02] (luaDoAddContainerItem) Container not found


info
Grupo: Herói
Registrado: 25/10/11
Posts: 2.2k
Reputação: +862
Gênero: Masculino
Char no Tibia: Sociopata
Eai galerous, vim dizer que, para alterar a EXP que está relativamente alta no server dxp, basta ir em creaturescript/player/pokedeath e procurar está função:
Função arrumada para pegar apenas a XP que está configurada para cada pokémon.
function playerAddExp(cid, exp)if not isCreature(cid) then return true end if isInPartyAndSharedExperience(cid) then local partyPlayers = getPartyMembers(getPlayerParty(cid)) local partyExp = math.ceil(exp / #partyPlayers) for i = 1, #partyPlayers do if isPlayer(partyPlayers[i]) then doPlayerAddExp(partyPlayers[i], partyExp) doSendAnimatedText(getThingPos(partyPlayers[i]), partyExp, 215) end end return true end doPlayerAddExp(cid, exp) doSendAnimatedText(getThingPos(cid), exp, 215)endEditado Setembro 11 por Deadpool