TH

Item "exp Bonus" Para Pvp Enforced

Por Thiach, 20 de abr. de 2012 em Scripts

script
5
1.5k
ThiachT
22 de abril de 2012 às 00:26

Olá amigos,

 

Venho pedir ajuda de voces, um script de um item que aumentase o ganho da experiencia quando matase o player.

 

No config lua tem lá, rateExperienceFromPlayers = 10

 

Tipo, gostaria que ao usar o tal "item" aumentase a rate dessa exp do player para 11, exemplo.

 

 

Fico no aguardo Obrigado!

 

UP! Alguem ajuda por favor?

caoticC
26 de abril de 2012 às 20:11

Bem eu fiz o script pelo o que eu entendi ele aumenta a rate se um determinado player tiver um item e derrotar um player

Crie um arquivo chamado rateexp.lua e coloque isso:

 

local config = {

expbonus = 2

}

 

function onKill(cid, target, lastHit)

local item = COLOQUE O ID DO ITEM AKII

local storageexp = 66622

if getPlayerItemCount(cid, item) => 1 then

doPlayerSendTextMessage(cid, "Voce precisa do item")

return true

end

if isPlayer(target) then

doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*rate)

doPlayerSendTextMessage(cid, "Sua exp subiu")

setPlayerStorageValue(cid, storageexp, 1)

end

return true

end

 

agora a tag em creaturescrips.xml

<event type="kill" name="ratexp" event="script" value="rateexp.lua"/>

 

abra creaturescripts/scripts e abra login.lua e coloque esta frase embaixo de Fuction Onlogin

 

registerCreatureEvent(cid, "rateexp")

VildenV
27 de abril de 2012 às 01:03

Acho que deveria ser assim pelo que entendi.. ele quer q dobre a em combate player vs player

e não na exp de monsters.

 

local config = {

expbonus = 2

}

 

function onKill(cid, target, lastHit)

local item = COLOQUE O ID DO ITEM AKII

local storageexp = 66622

if getPlayerItemCount(cid, item) => 1 then

doPlayerSendTextMessage(cid, "Voce precisa do item")

return true

end

if isPlayer(target) then

doPlayerSetExperienceRate(cid, getConfigValue("rateExperienceFromPlayers")*rate)

doPlayerSendTextMessage(cid, "Sua exp subiu")

setPlayerStorageValue(cid, storageexp, 1)

end

return true

end

caoticC
27 de abril de 2012 às 13:29

Eu tbm nao entendi direito.

 

Vamos aguardar se ele responde.

2 meses depois...
SaakeS
06 de junho de 2012 às 19:10

local config = {

expbonus = 2

}

 

function onKill(cid, target, lastHit)

local item = COLOQUE O ID DO ITEM AKII

local storageexp = 66622

if getPlayerItemCount(cid, item) => 1 then

doPlayerSendTextMessage(cid, "Voce precisa do item")

return true

end

if isPlayer(target) then

doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*rate)

doPlayerSendTextMessage(cid, "Sua exp subiu")

setPlayerStorageValue(cid, storageexp, 1)

end

return true

end

 

EU FIZ TUDO CERTIN!

GALERA EU QUERIA PEDIR UM INTEN QUE ME DESSE MAIS EXP, MAIS PORCENTAGEM AO MATAR MOSNTROS EU QUERIA PRA PVP E PODE SER TAMBEM PRA PVPE,PORQUE ESTE AI EM CIMA QUE PEGEI DO CAOTIC E DO VILDEN NAO FUNFO AQUI PORFAVOR ALGUEM PODE ME AJUDAR COM ISTO DO REP E

ABRASSOSSSSS