Jump to content

Arrumar XP - DXP


Deadpool

Recommended Posts

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)end

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)end

 

Edited by Deadpool
Link to comment
Share on other sites

  • 3 years later...
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)end

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)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

Link to comment
Share on other sites

×
×
  • Create New...