DE
exp

Arrumar XP - DXP

Por Deadpool, 11 de set. de 2016 em Tutoriais de Scripting

2
7.8k
DeadpoolD
11 de setembro de 2016 às 19:15

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

 

Editado Setembro 11 por Deadpool

3 anos depois...
KaboFlowK
08 de maio de 2020 às 01:16
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