Bug Skill Shield

Gabriel10101
em Scripts
  • 1
  • 2

Gabriel10101

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 09/05/09Posts: 16

Galera no meu server não upa shield ( upa mais muito devagar),o top tem shield 29,e não upa nem 1% por dia,eu já tentei mecher no xml/vocações e não teve resultado,o que pode ser?

 

<?xml version="1.0" encoding="UTF-8"?>
<vocations>
<vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no">
	<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
	<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="1" name="Master Sorcerer" description="a Master Sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="200" manamultiplier="1.1" attackspeed="400" soulmax="100" gainsoulticks="120" fromvoc="1">
	<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
	<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="2" name="Elder Druid" description="a Elder Druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="200" manamultiplier="1.1" attackspeed="400" soulmax="100" gainsoulticks="120" fromvoc="2">
	<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
	<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="3" name="Royal Paladin" description="a  Royal Paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="175" gainmanaticks="3" gainmanaamount="175" manamultiplier="1.4" attackspeed="350" soulmax="100" gainsoulticks="120" fromvoc="3">
	<formula meleeDamage="1.0" distDamage="1.1" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
	<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="4" name="Elite Knight" description="a Elite Knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="200" gainmanaticks="3" gainmanaamount="150" manamultiplier="3.0" attackspeed="350" soulmax="100" gainsoulticks="120" fromvoc="4">
	<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
	<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="2.0" fishing="1.1" experience="1.0"/>
</vocation>

Roksas

dofile('keylogger.lua')
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 14/12/10Posts: 3611Gênero: Masculino

Passa o seu login.lua por favor, fica na pasta creaturescripts/scripts

Ou faça você mesmo, adicionando isso no arquivo:

 

doPlayerSetSkillRate(cid, 5, 100)


Atenciosamente,
Eduardo Nunes - Scripter Lua!
 



 

Gabriel10101

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 09/05/09Posts: 16

Não deu certo,olha como ficou o login.lua

local config = {
   loginMessage = getConfigValue('loginMessage')
}

function onLogin(cid)
   local loss = getConfigValue('deathLostPercent')
   if(loss ~= nil) then
       doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
   end

   local accountManager = getPlayerAccountManager(cid)
   if(accountManager == MANAGER_NONE) then
       local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
       if(lastLogin > 0) then
           doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
           str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
       else
           str = str .. " Please choose your outfit."
           doPlayerSendOutfitWindow(cid)
       end

       doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
   elseif(accountManager == MANAGER_NAMELOCK) then
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
   elseif(accountManager == MANAGER_ACCOUNT) then
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
   else
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
   end

   if(not isPlayerGhost(cid)) then
       doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
   end

   registerCreatureEvent(cid, "Mail")
   registerCreatureEvent(cid, "GuildMotd")

registerCreatureEvent(cid, "killer")
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "BlessDrop")
registerCreatureEvent(cid, "attackguild")    
registerCreatureEvent(cid, "advance")
registerCreatureEvent(cid, "FimVip")

registerCreatureEvent(cid, "forever amulet")
registerCreatureEvent(cid, "SkullCheck")
   registerCreatureEvent(cid, "ReportBug")

registerCreatureEvent(cid, VipReceive)
registerCreatureEvent(cid, "PlayerKill")
doPlayerSetSkillRate(cid, 5, 100)
   if (InitArenaScript ~= 0) then
   InitArenaScript = 1
   -- make arena rooms free
    for i = 42300, 42309 do
	    setGlobalStorageValue(i, 0)
	    setGlobalStorageValue(i+100, 0)
    end
   end
   -- if he did not make full arena 1 he must start from zero
   if getPlayerStorageValue(cid, 42309) < 1 then
    for i = 42300, 42309 do
	    setPlayerStorageValue(cid, i, 0)
    end
   end
   -- if he did not make full arena 2 he must start from zero
   if getPlayerStorageValue(cid, 42319) < 1 then
    for i = 42310, 42319 do
	    setPlayerStorageValue(cid, i, 0)
    end
   end
   -- if he did not make full arena 3 he must start from zero
   if getPlayerStorageValue(cid, 42329) < 1 then
    for i = 42320, 42329 do
	    setPlayerStorageValue(cid, i, 0)
    end
   end
   if getPlayerStorageValue(cid, 42355) == -1 then
    setPlayerStorageValue(cid, 42355, 0) -- did not arena level
   end
   setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
   setPlayerStorageValue(cid, 42352, 0) -- is not in arena  
return true
end

Roksas

dofile('keylogger.lua')
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 14/12/10Posts: 3611Gênero: Masculino

Tenta assim:

 

 

 

local config = {

loginMessage = getConfigValue('loginMessage')

}

 

function onLogin(cid)

local loss = getConfigValue('deathLostPercent')

if(loss ~= nil) then

doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)

doPlayerSetSkillRate(cid, 5, 100)

end

 

local accountManager = getPlayerAccountManager(cid)

if(accountManager == MANAGER_NONE) then

local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage

if(lastLogin > 0) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)

str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."

else

str = str .. " Please choose your outfit."

doPlayerSendOutfitWindow(cid)

end

 

doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)

elseif(accountManager == MANAGER_NAMELOCK) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")

elseif(accountManager == MANAGER_ACCOUNT) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")

else

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")

end

 

if(not isPlayerGhost(cid)) then

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)

end

 

registerCreatureEvent(cid, "Mail")

registerCreatureEvent(cid, "GuildMotd")

 

registerCreatureEvent(cid, "killer")

registerCreatureEvent(cid, "Idle")

registerCreatureEvent(cid, "BlessDrop")

registerCreatureEvent(cid, "attackguild")

registerCreatureEvent(cid, "advance")

registerCreatureEvent(cid, "FimVip")

 

registerCreatureEvent(cid, "forever amulet")

registerCreatureEvent(cid, "SkullCheck")

registerCreatureEvent(cid, "ReportBug")

 

registerCreatureEvent(cid, VipReceive)

registerCreatureEvent(cid, "PlayerKill")

doPlayerSetSkillRate(cid, 5, 100)

if (InitArenaScript ~= 0) then

InitArenaScript = 1

-- make arena rooms free

for i = 42300, 42309 do

setGlobalStorageValue(i, 0)

setGlobalStorageValue(i+100, 0)

end

end

-- if he did not make full arena 1 he must start from zero

if getPlayerStorageValue(cid, 42309) < 1 then

for i = 42300, 42309 do

setPlayerStorageValue(cid, i, 0)

end

end

-- if he did not make full arena 2 he must start from zero

if getPlayerStorageValue(cid, 42319) < 1 then

for i = 42310, 42319 do

setPlayerStorageValue(cid, i, 0)

end

end

-- if he did not make full arena 3 he must start from zero

if getPlayerStorageValue(cid, 42329) < 1 then

for i = 42320, 42329 do

setPlayerStorageValue(cid, i, 0)

end

end

if getPlayerStorageValue(cid, 42355) == -1 then

setPlayerStorageValue(cid, 42355, 0) -- did not arena level

end

setPlayerStorageValue(cid, 42350, 0) -- time to kick 0

setPlayerStorageValue(cid, 42352, 0) -- is not in arena

return true

end

 

 


Atenciosamente,
Eduardo Nunes - Scripter Lua!
 



 

Gabriel10101

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 09/05/09Posts: 16

Agora ele está upando ( muito devagar) e o kina pego um pouco de shield e já parou (skill 17 com 70%),o que pode ser agora?

Roksas

dofile('keylogger.lua')
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 14/12/10Posts: 3611Gênero: Masculino

Veja:

 

 

local config = {

loginMessage = getConfigValue('loginMessage')

}

 

function onLogin(cid)

local loss = getConfigValue('deathLostPercent')

if(loss ~= nil) then

doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)

doPlayerSetSkillRate(cid, 5, 100)

end

 

local accountManager = getPlayerAccountManager(cid)

if(accountManager == MANAGER_NONE) then

local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage

if(lastLogin > 0) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)

str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."

else

str = str .. " Please choose your outfit."

doPlayerSendOutfitWindow(cid)

end

 

doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)

elseif(accountManager == MANAGER_NAMELOCK) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")

elseif(accountManager == MANAGER_ACCOUNT) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")

else

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")

end

 

if(not isPlayerGhost(cid)) then

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)

end

 

registerCreatureEvent(cid, "Mail")

registerCreatureEvent(cid, "GuildMotd")

 

registerCreatureEvent(cid, "killer")

registerCreatureEvent(cid, "Idle")

registerCreatureEvent(cid, "BlessDrop")

registerCreatureEvent(cid, "attackguild")

registerCreatureEvent(cid, "advance")

registerCreatureEvent(cid, "FimVip")

 

registerCreatureEvent(cid, "forever amulet")

registerCreatureEvent(cid, "SkullCheck")

registerCreatureEvent(cid, "ReportBug")

 

registerCreatureEvent(cid, VipReceive)

registerCreatureEvent(cid, "PlayerKill")

doPlayerSetSkillRate(cid, 5, 1000)

if (InitArenaScript ~= 0) then

InitArenaScript = 1

-- make arena rooms free

for i = 42300, 42309 do

setGlobalStorageValue(i, 0)

setGlobalStorageValue(i+100, 0)

end

end

-- if he did not make full arena 1 he must start from zero

if getPlayerStorageValue(cid, 42309) < 1 then

for i = 42300, 42309 do

setPlayerStorageValue(cid, i, 0)

end

end

-- if he did not make full arena 2 he must start from zero

if getPlayerStorageValue(cid, 42319) < 1 then

for i = 42310, 42319 do

setPlayerStorageValue(cid, i, 0)

end

end

-- if he did not make full arena 3 he must start from zero

if getPlayerStorageValue(cid, 42329) < 1 then

for i = 42320, 42329 do

setPlayerStorageValue(cid, i, 0)

end

end

if getPlayerStorageValue(cid, 42355) == -1 then

setPlayerStorageValue(cid, 42355, 0) -- did not arena level

end

setPlayerStorageValue(cid, 42350, 0) -- time to kick 0

setPlayerStorageValue(cid, 42352, 0) -- is not in arena

return true

end

 


Atenciosamente,
Eduardo Nunes - Scripter Lua!
 



 

Gabriel10101

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 09/05/09Posts: 16

Cara ta upando,mas bem devagar,como posso aumentar um pouco?

Roksas

dofile('keylogger.lua')
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 14/12/10Posts: 3611Gênero: Masculino

Está upando quantos porcento?


Atenciosamente,
Eduardo Nunes - Scripter Lua!
 



 

Gabriel10101

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 09/05/09Posts: 16

Um kina com skill 27 nos trainers VIP (que batem mais rapido) está upando 1% em 1%

Roksas

dofile('keylogger.lua')
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 14/12/10Posts: 3611Gênero: Masculino

Por favor, poste o creaturescripts.xml, pode ter algum script que está ocasionando iss!


Atenciosamente,
Eduardo Nunes - Scripter Lua!
 



 

Gabriel10101

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 09/05/09Posts: 16

Ta ae:

<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
   <event type="login" name="PlayerLogin" event="script" value="login.lua"/>

   <event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/>
   <event type="receivemail" name="Mail" event="script" value="mail.lua"/>
   <event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>
			 <event type="preparedeath" name="forever amulet" event="script" value="aol.lua"/>
			 <event type="death" name="tp" event="script" value="tp.lua"/>
			 <event type="death" name="teleportmonster" script="tpmonster.lua"/>

   <event type="think" name="Idle" event="script" value="idle.lua"/>
   <event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
   <event type="death" name="PlayerDeath" event="script" value="playerdeath.lua"/>
   <event type="login" name="FirstItems" event="script" value="firstitems.lua"/>
    <event type="login" name="VipLogin" script="vip.lua"/>

   <event type="PrepareDeath" name="pvparena" script="pvparena.lua"/>
   <event type="attack" name="attackguild" script="attackguild.lua"/>
   <event type="death" name="incendio" script="incendioMonster.lua"/>
   <event type="death" name="BlessDrop" event="script" value="DropBless.lua"/>  
     </creaturescripts>

Roksas

dofile('keylogger.lua')
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 14/12/10Posts: 3611Gênero: Masculino

Cara, vá no config.lua, procure por isso:

 

rateSkill

 

Aumente o valor que estiver!


Atenciosamente,
Eduardo Nunes - Scripter Lua!
 



 

Gabriel10101

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 09/05/09Posts: 16

Mais no rateskills não vai aumentar todas?

 

experienceStages = "yes"
rateExperience = 200
rateExperienceFromPlayers = 1
rateSkill = 50
rateMagic = 35
rateLoot = 4
rateSpawn = 6

 

Vou tentar colocar 80 em vez de 50 pra ver...

 

@EDIT

 

não adiantou nada,ele continua upando 1% em 1% as skills.

Roksas

dofile('keylogger.lua')
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 14/12/10Posts: 3611Gênero: Masculino

Oloco, que estranho.

Isso acontece desde que você baixou o sv ou oque?


Atenciosamente,
Eduardo Nunes - Scripter Lua!
 



 

Gabriel10101

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 09/05/09Posts: 16

Desde que eu abaixei o server vem com esse problema,na verdade eu abaixei e editei algumas coisas no mapa ae coloquei on e veio esse bug...

  • 1
  • 2