Ir para conteúdo

Aff Bug Ao Comer Algo ¬¬


cdmanga

Posts Recomendados

ola

eu uso o real server, sempre que eu como algo, desde um queijo a uma poçao qualquer ele da erro e fecha o tibia.

gostaria de saber oque posso fazer para corrigir esse erro, sempre quando ele vai fechar fica dando um erro infinitamente(principalmente se for queijo):

 

[07/01/2012 11:25:30] [Error - Action Interface]

[07/01/2012 11:25:30] data/actions/scripts/tools/fishing.lua:onUse

[07/01/2012 11:25:30] Description:

[07/01/2012 11:25:30] data/actions/scripts/tools/fishing.lua:73: attempt to index local 'now' (a nil value)

[07/01/2012 11:25:30] stack traceback:

[07/01/2012 11:25:30] data/actions/scripts/tools/fishing.lua:73: in function <data/actions/scripts/tools/fishing.lua:59>

 

[07/01/2012 11:25:46] [Error - Action Interface]

[07/01/2012 11:25:46] data/actions/scripts/tools/fishing.lua:onUse

[07/01/2012 11:25:46] Description:

[07/01/2012 11:25:46] data/actions/scripts/tools/fishing.lua:73: attempt to index local 'now' (a nil value)

[07/01/2012 11:25:46] stack traceback:

[07/01/2012 11:25:46] data/actions/scripts/tools/fishing.lua:73: in function <data/actions/scripts/tools/fishing.lua:59>

[07/01/2012 11:27:45] Rook Sample has logged out.

[07/01/2012 11:28:31] Rook Sample has logged in.

esse 2 erros ai de cima não contão são de outro script porem não sei consertar se alguem souber me avisem!!!

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[07/01/2012 11:28:51] [Error - CreatureScript Interface]

[07/01/2012 11:28:51] data/creaturescripts/scripts/arenakill.lua:onKill

[07/01/2012 11:28:51] Description:

[07/01/2012 11:28:51] attempt to call a table value

[07/01/2012 11:28:51] stack traceback:

 

[07/01/2012 11:28:51] [Error - CreatureScript Interface]

[07/01/2012 11:28:51] data/creaturescripts/scripts/killinginthenameof.lua:onKill

[07/01/2012 11:28:51] Description:

[07/01/2012 11:28:51] attempt to call a table value

[07/01/2012 11:28:51] stack traceback:

 

[07/01/2012 11:28:52] [Error - CreatureScript Interface]

[07/01/2012 11:28:52] data/creaturescripts/scripts/arenakill.lua:onKill

[07/01/2012 11:28:52] Description:

[07/01/2012 11:28:52] attempt to call a table value

[07/01/2012 11:28:52] stack traceback:

 

[07/01/2012 11:28:52] [Error - CreatureScript Interface]

[07/01/2012 11:28:52] data/creaturescripts/scripts/killinginthenameof.lua:onKill

[07/01/2012 11:28:52] Description:

[07/01/2012 11:28:52] attempt to call a table value

[07/01/2012 11:28:52] stack traceback:

 

[07/01/2012 11:28:53] [Error - CreatureScript Interface]

[07/01/2012 11:28:53] data/creaturescripts/scripts/idle.lua:onThink

[07/01/2012 11:28:53] Description:

[07/01/2012 11:28:53] attempt to call a number value

[07/01/2012 11:28:53] stack traceback:

 

[07/01/2012 11:28:53] [Error - CreatureScript Interface]

[07/01/2012 11:28:53] data/creaturescripts/scripts/skullcheck.lua:onThink

[07/01/2012 11:28:53] Description:

[07/01/2012 11:28:53] attempt to call a number value

[07/01/2012 11:28:53] stack traceback:

 

[07/01/2012 11:28:53] [Error - CreatureScript Interface]

[07/01/2012 11:28:53] data/creaturescripts/scripts/idle.lua:onThink

[07/01/2012 11:28:53] Description:

[07/01/2012 11:28:53] attempt to call a number value

[07/01/2012 11:28:54] stack traceback:

 

[07/01/2012 11:28:54] [Error - CreatureScript Interface]

[07/01/2012 11:28:54] data/creaturescripts/scripts/skullcheck.lua:onThink

[07/01/2012 11:28:54] Description:

[07/01/2012 11:28:54] attempt to call a number value

[07/01/2012 11:28:54] stack traceback:

 

[07/01/2012 11:28:54] [Error - CreatureScript Interface]

[07/01/2012 11:28:54] data/creaturescripts/scripts/idle.lua:onThink

[07/01/2012 11:28:54] Description:

[07/01/2012 11:28:54] attempt to call a number value

[07/01/2012 11:28:54] stack traceback:

 

[07/01/2012 11:28:54] [Error - CreatureScript Interface]

[07/01/2012 11:28:54] data/creaturescripts/scripts/skullcheck.lua:onThink

[07/01/2012 11:28:54] Description:

[07/01/2012 11:28:54] attempt to call a number value

[07/01/2012 11:28:54] stack traceback:

 

[07/01/2012 11:28:55] [Error - CreatureScript Interface]

[07/01/2012 11:28:55] data/creaturescripts/scripts/idle.lua:onThink

[07/01/2012 11:28:55] Description:

[07/01/2012 11:28:55] attempt to call a number value

[07/01/2012 11:28:55] stack traceback:

 

[07/01/2012 11:28:55] [Error - CreatureScript Interface]

[07/01/2012 11:28:55] data/creaturescripts/scripts/skullcheck.lua:onThink

[07/01/2012 11:28:55] Description:

[07/01/2012 11:28:55] attempt to call a number value

[07/01/2012 11:28:55] stack traceback:

 

[07/01/2012 11:28:55] [Error - CreatureScript Interface]

[07/01/2012 11:28:55] data/creaturescripts/scripts/idle.lua:onThink

[07/01/2012 11:28:55] Description:

[07/01/2012 11:28:55] attempt to call a number value

[07/01/2012 11:28:55] stack traceback:

 

[07/01/2012 11:28:55] [Error - CreatureScript Interface]

[07/01/2012 11:28:55] data/creaturescripts/scripts/skullcheck.lua:onThink

[07/01/2012 11:28:55] Description:

[07/01/2012 11:28:55] attempt to call a number value

[07/01/2012 11:28:55] stack traceback:

 

[07/01/2012 11:28:56] [Error - CreatureScript Interface]

[07/01/2012 11:28:56] data/creaturescripts/scripts/idle.lua:onThink

[07/01/2012 11:28:56] Description:

[07/01/2012 11:28:56] attempt to call a number value

[07/01/2012 11:28:56] stack traceback:

 

[07/01/2012 11:28:56] [Error - CreatureScript Interface]

[07/01/2012 11:28:56] data/creaturescripts/scripts/skullcheck.lua:onThink

[07/01/2012 11:28:56] Description:

[07/01/2012 11:28:56] attempt to call a number value

[07/01/2012 11:28:56] stack traceback:

 

[07/01/2012 11:28:57] [Error - CreatureScript Interface]

[07/01/2012 11:28:57] data/creaturescripts/scripts/idle.lua:onThink

[07/01/2012 11:28:57] Description:

[07/01/2012 11:28:57] attempt to call a number value

[07/01/2012 11:28:57] stack traceback:

 

[07/01/2012 11:28:57] [Error - CreatureScript Interface]

[07/01/2012 11:28:57] data/creaturescripts/scripts/skullcheck.lua:onThink

[07/01/2012 11:28:57] Description:

[07/01/2012 11:28:57] attempt to call a number value

[07/01/2012 11:28:57] stack traceback:

 

[07/01/2012 11:28:57] [Error - CreatureScript Interface]

[07/01/2012 11:28:57] data/creaturescripts/scripts/idle.lua:onThink

[07/01/2012 11:28:57] Description:

[07/01/2012 11:28:57] attempt to call a number value

[07/01/2012 11:28:57] stack traceback:

 

[07/01/2012 11:28:57] [Error - CreatureScript Interface]

[07/01/2012 11:28:57] data/creaturescripts/scripts/skullcheck.lua:onThink

[07/01/2012 11:28:57] Description:

[07/01/2012 11:28:57] attempt to call a number value

[07/01/2012 11:28:57] stack traceback:

 

[07/01/2012 11:28:58] [Error - CreatureScript Interface]

[07/01/2012 11:28:58] data/creaturescripts/scripts/idle.lua:onThink

[07/01/2012 11:28:58] Description:

[07/01/2012 11:28:58] attempt to call a number value

[07/01/2012 11:28:58] stack traceback:

 

[07/01/2012 11:28:58] [Error - CreatureScript Interface]

[07/01/2012 11:28:58] data/creaturescripts/scripts/skullcheck.lua:onThink

[07/01/2012 11:28:58] Description:

[07/01/2012 11:28:58] attempt to call a number value

[07/01/2012 11:28:58] stack traceback:

 

[07/01/2012 11:28:58] [Error - CreatureScript Interface]

[07/01/2012 11:28:58] data/creaturescripts/scripts/idle.lua:onThink

[07/01/2012 11:28:58] Description:

[07/01/2012 11:28:58] attempt to call a number value

[07/01/2012 11:28:58] stack traceback:

 

[07/01/2012 11:28:58] [Error - CreatureScript Interface]

[07/01/2012 11:28:59] data/creaturescripts/scripts/skullcheck.lua:onThink

[07/01/2012 11:28:59] Description:

[07/01/2012 11:28:59] attempt to call a number value

[07/01/2012 11:28:59] stack traceback:

 

[07/01/2012 11:28:59] [Error - CreatureScript Interface]

[07/01/2012 11:28:59] data/creaturescripts/scripts/idle.lua:onThink

[07/01/2012 11:28:59] Description:

[07/01/2012 11:28:59] attempt to call a number value

[07/01/2012 11:28:59] stack traceback:

 

[07/01/2012 11:28:59] [Error - CreatureScript Interface]

[07/01/2012 11:28:59] data/creaturescripts/scripts/skullcheck.lua:onThink

[07/01/2012 11:28:59] Description:

[07/01/2012 11:28:59] attempt to call a number value

[07/01/2012 11:28:59] stack traceback:

 

[07/01/2012 11:29:00] [Error - CreatureScript Interface]

[07/01/2012 11:29:00] data/creaturescripts/scripts/idle.lua:onThink

[07/01/2012 11:29:00] Description:

[07/01/2012 11:29:00] attempt to call a number value

[07/01/2012 11:29:00] stack traceback:

...

e continua infinitamente

 

viram a cada segundo ele repete o erro

se eu tirar os dois scripts ele da outro erro

porem tambem fica repetindo, e tambem fecha o tibia.exe, não uso cliente proprio!

erro:

[05/01/2012 13:09:49] [Error - CreatureScript Interface]

[05/01/2012 13:09:49] data/creaturescripts/scripts/arenakill.lua:onKill

[05/01/2012 13:09:49] Description:

[05/01/2012 13:09:49] attempt to call a table value

[05/01/2012 13:09:49] stack traceback:

 

[05/01/2012 13:09:49] [Error - CreatureScript Interface]

[05/01/2012 13:09:49] data/creaturescripts/scripts/killinginthenameof.lua:onKill

[05/01/2012 13:09:49] Description:

[05/01/2012 13:09:49] attempt to call a table value

[05/01/2012 13:09:49] stack traceback:

 

[05/01/2012 13:09:50] [Error - CreatureScript Interface]

[05/01/2012 13:09:50] data/creaturescripts/scripts/arenakill.lua:onKill

[05/01/2012 13:09:50] Description:

[05/01/2012 13:09:50] attempt to call a table value

[05/01/2012 13:09:50] stack traceback:

 

[05/01/2012 13:09:50] [Error - CreatureScript Interface]

[05/01/2012 13:09:50] data/creaturescripts/scripts/killinginthenameof.lua:onKill

[05/01/2012 13:09:50] Description:

[05/01/2012 13:09:50] attempt to call a table value

[05/01/2012 13:09:50] stack traceback:

 

[05/01/2012 13:09:50] [Error - CreatureScript Interface]

[05/01/2012 13:09:50] data/creaturescripts/scripts/advancesave.lua:onAdvance

[05/01/2012 13:09:50] Description:

[05/01/2012 13:09:50] attempt to call a number value

[05/01/2012 13:09:50] stack traceback:

 

[05/01/2012 13:09:56] [Error - CreatureScript Interface]

[05/01/2012 13:09:56] data/creaturescripts/scripts/advancesave.lua:onAdvance

[05/01/2012 13:09:56] Description:

[05/01/2012 13:09:56] attempt to call a number value

[05/01/2012 13:09:56] stack traceback:

Link para o comentário
Compartilhar em outros sites

skullchek:

function onThink(cid, interval)

if(not isCreature(cid)) then

return

end

 

local skull, skullEnd = getCreatureSkull(cid), getPlayerSkullEnd(cid)

if(skullEnd > 0 and skull > SKULL_WHITE and os.time() > skullEnd and not getCreatureCondition(cid, CONDITION_INFIGHT)) then

doPlayerSetSkullEnd(cid, 0, skull)

end

end

---------------------------------------------------------------------------

Idle:

local config = {

idleWarning = getConfigValue('idleWarningTime'),

idleKick = getConfigValue('idleKickTime')

}

 

function onThink(cid, interval)

if(getTileInfo(getCreaturePosition(cid)).nologout or getCreatureNoMove(cid) or

getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_ALLOWIDLE)) then

return true

end

 

local idleTime = getPlayerIdleTime(cid) + interval

doPlayerSetIdleTime(cid, idleTime)

if(config.idleKick > 0 and idleTime > config.idleKick) then

doRemoveCreature(cid)

elseif(config.idleWarning > 0 and idleTime == config.idleWarning) then

local message = "You have been idle for " .. math.ceil(config.idleWarning / 60000) .. " minutes"

if(config.idleKick > 0) then

message = message .. ", you will be disconnected in "

local diff = math.ceil((config.idleWarning - config.idleKick) / 60000)

if(diff > 1) then

message = message .. diff .. " minutes"

else

message = message .. "one minute"

end

 

message = message .. " if you are still idle"

end

 

doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, message .. ".")

end

 

return true

end

-------------------------------------------------------------------------------------------------------------

advancesave:

-- [( Script edited by: DoidinMapper for XTibia.com )] --

function onAdvance(cid, skill, oldLevel, newLevel)

local config = {savePlayersOnAdvance = true}

if(config.savePlayersOnAdvance) then

doPlayerSave(cid, TRUE)

end

return TRUE

end

--------------------------------------------------------------------------------------------

killinginthenameof

function onKill(cid, target, lastHit)

local questCreatures =

{

["troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15000, killsRequired = 100, raceName = "Trolls"},

["frost troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15001, killsRequired = 100, raceName = "Trolls"},

["furious troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15002, killsRequired = 100, raceName = "Trolls"},

["island troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15003, killsRequired = 100, raceName = "Trolls"},

["swamp troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15004, killsRequired = 100, raceName = "Trolls"},

["troll champion"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15005, killsRequired = 100, raceName = "Trolls"},

["troll legionnaire"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15006, killsRequired = 100, raceName = "Trolls"},

["goblin"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15007, killsRequired = 150, raceName = "Goblins"},

["goblin assassin"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15008, killsRequired = 150, raceName = "Goblins"},

["goblin leader"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15009, killsRequired = 150, raceName = "Goblins"},

["goblin scavenger"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15010, killsRequired = 150, raceName = "Goblins"},

["rotworm"] = {questStarted = 1512, questStorage = 65002, creatureStorage = 15011, killsRequired = 300, raceName = "Rotworms"},

["carriom worm"] = {questStarted = 1512, questStorage = 65002, creatureStorage = 15012, killsRequired = 300, raceName = "Rotworms"},

["cyclops"] = {questStarted = 1513, questStorage = 65003, creatureStorage = 15013, killsRequired = 500, raceName = "Cyclops"},

["cyclops smith"] = {questStarted = 1513, questStorage = 65003, creatureStorage = 15014, killsRequired = 500, raceName = "Cyclops"},

["cyclops drone"] = {questStarted = 1513, questStorage = 65003, creatureStorage = 15015, killsRequired = 500, raceName = "Cyclops"},

["crocodile"] = {questStarted = 1514, questStorage = 65004, creatureStorage = 15016, killsRequired = 300, raceName = "Crocodiles"},

["tarantula"] = {questStarted = 1515, questStorage = 65005, creatureStorage = 15017, killsRequired = 300, raceName = "Tarantulas"},

["carniphila"] = {questStarted = 1516, questStorage = 65006, creatureStorage = 15018, killsRequired = 150, raceName = "Carniphilas"},

["stone golem"] = {questStarted = 1517, questStorage = 65007, creatureStorage = 15019, killsRequired = 200, raceName = "Stone Golems"},

["mammoth"] = {questStarted = 1518, questStorage = 65008, creatureStorage = 15020, killsRequired = 300, raceName = "Mammoths"},

["ice golem"] = {questStarted = 1519, questStorage = 65009, creatureStorage = 15021, killsRequired = 300, raceName = "Ice Golems"},

["quara predator scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15022, killsRequired = 300, raceName = "Quaras Scout"},

["quara constrictor scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15023, killsRequired = 300, raceName = "Quaras Scout"},

["quara hydromancer scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15024, killsRequired = 300, raceName = "Quaras Scout"},

["quara mantassin scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15025, killsRequired = 300, raceName = "Quaras Scout"},

["quara pincher scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15026, killsRequired = 300, raceName = "Quaras Scout"},

["quara predator"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15027, killsRequired = 300, raceName = "Quaras"},

["quara constrictor"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15028, killsRequired = 300, raceName = "Quaras"},

["quara hydromancer"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15029, killsRequired = 300, raceName = "Quaras"},

["quara mantassin"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15030, killsRequired = 300, raceName = "Quaras"},

["quara pincher"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15031, killsRequired = 300, raceName = "Quaras"},

["water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15032, killsRequired = 70, raceName = "Water Elementals"},

["roaring water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15033, killsRequired = 70, raceName = "Water Elementals"},

["slick water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15034, killsRequired = 70, raceName = "Water Elementals"},

["massive water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15035, killsRequired = 70, raceName = "Water Elementals"},

["earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15036, killsRequired = 70, raceName = "Earth Elementals"},

["jagged earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15037, killsRequired = 70, raceName = "Earth Elementals"},

["massive earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15038, killsRequired = 70, raceName = "Earth Elementals"},

["muddy earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15039, killsRequired = 70, raceName = "Earth Elementals"},

["energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15040, killsRequired = 70, raceName = "Energy Elementals"},

["charged energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15041, killsRequired = 70, raceName = "Energy Elementals"},

["massive energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15042, killsRequired = 70, raceName = "Energy Elementals"},

["overcharged energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15043, killsRequired = 70, raceName = "Energy Elementals"},

["fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15044, killsRequired = 70, raceName = "Fire Elementals"},

["blazing fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15045, killsRequired = 70, raceName = "Fire Elementals"},

["blistering fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15046, killsRequired = 70, raceName = "Fire Elementals"},

["massive fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15047, killsRequired = 70, raceName = "Fire Elementals"},

["mutated rat"] = {questStarted = 1526, questStorage = 65016, creatureStorage = 15048, killsRequired = 200, raceName = "Mutated Rats"},

["giant spider"] = {questStarted = 1527, questStorage = 65017, creatureStorage = 15049, killsRequired = 500, raceName = "Giant Spiders"},

["hydra"] = {questStarted = 1528, questStorage = 65018, creatureStorage = 15050, killsRequired = 2000, raceName = "Hydras"},

["sea serpent"] = {questStarted = 1529, questStorage = 65019, creatureStorage = 15051, killsRequired = 2000, raceName = "Sea Serpents"},

["behemoth"] = {questStarted = 1530, questStorage = 65020, creatureStorage = 15052, killsRequired = 2000, raceName = "Behemoths"},

["serpent spawn"] = {questStarted = 1531, questStorage = 65021, creatureStorage = 15053, killsRequired = 1500, raceName = "Serpents Spawn"},

["green djinn"] = {questStarted = 1532, questStorage = 65022, creatureStorage = 15054, killsRequired = 500, raceName = "Green Djinns"},

["efreet"] = {questStarted = 1532, questStorage = 65022, creatureStorage = 15055, killsRequired = 500, raceName = "Green Djinns"},

["blue djinn"] = {questStarted = 1533, questStorage = 65023, creatureStorage = 15056, killsRequired = 500, raceName = "Blue Djinns"},

["marid"] = {questStarted = 1533, questStorage = 65023, creatureStorage = 15057, killsRequired = 500, raceName = "Blue Djinns"},

["pirate buccaneer"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15058, killsRequired = 3000, raceName = "Pirates"},

["pirate corsair"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15059, killsRequired = 3000, raceName = "Pirates"},

["pirate cutthroat"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15060, killsRequired = 3000, raceName = "Pirates"},

["pirate ghost"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15061, killsRequired = 3000, raceName = "Pirates"},

["pirate marauder"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15062, killsRequired = 3000, raceName = "Pirates"},

["pirate skeleton"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15063, killsRequired = 3000, raceName = "Pirates"},

["pirate buccaneer"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15064, killsRequired = 3000, raceName = "Pirates"},

["pirate corsair"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15065, killsRequired = 3000, raceName = "Pirates"},

["pirate cutthroat"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15066, killsRequired = 3000, raceName = "Pirates"},

["pirate ghost"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15067, killsRequired = 3000, raceName = "Pirates"},

["pirate marauder"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15068, killsRequired = 3000, raceName = "Pirates"},

["pirate skeleton"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15069, killsRequired = 3000, raceName = "Pirates"},

["minotaur"] = {questStarted = 1536, questStorage = 65026, creatureStorage = 15070, killsRequired = 5000, raceName = "Minotaurs"},

["necromancer"] = {questStarted = 1537, questStorage = 65027, creatureStorage = 15071, killsRequired = 4000, raceName = "Magicians"},

["priestess"] = {questStarted = 1537, questStorage = 65027, creatureStorage = 15072, killsRequired = 4000, raceName = "Magicians"},

["necromancer"] = {questStarted = 1538, questStorage = 65028, creatureStorage = 15073, killsRequired = 1000, raceName = "Magicians"},

["priestess"] = {questStarted = 1538, questStorage = 65028, creatureStorage = 15074, killsRequired = 1000, raceName = "Magicians"},

["demon"] = {questStarted = 1539, questStorage = 65029, creatureStorage = 15075, killsRequired = 6666, raceName = "Demons"}

}

local creature = questCreatures[getCreatureName(target)]

if creature then

if(isPlayer(target) == TRUE) then

return TRUE

end

if getPlayerStorageValue(cid, creature.questStarted) > 0 then

if getPlayerStorageValue(cid, creature.questStorage) < creature.killsRequired then

if getPlayerStorageValue(cid, creature.questStorage) < 0 then

doPlayerSetStorageValue(cid, creature.questStorage, 0)

end

if getPlayerStorageValue(cid, creature.creatureStorage) < 0 then

doPlayerSetStorageValue(cid, creature.creatureStorage, 0)

end

doPlayerSetStorageValue(cid, creature.questStorage, getPlayerStorageValue(cid, creature.questStorage) + 1)

doPlayerSetStorageValue(cid, creature.creatureStorage, getPlayerStorageValue(cid, creature.creatureStorage) + 1)

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "" .. getPlayerStorageValue(cid, creature.creatureStorage) .. " " .. getCreatureName(target) .. " defeated. Total [" .. getPlayerStorageValue(cid, creature.questStorage) .. "/" .. creature.killsRequired .. "] " .. creature.raceName .. ".")

end

end

end

return TRUE

end

--------------------------------------------------------------------------------------------

arenakill:

function onKill(cid, target)

local room = getArenaMonsterIdByName(getCreatureName(target))

if room > 0 then

setPlayerStorageValue(cid, room, 1)

doPlayerSendTextMessage(cid,22,"You can enter next room!")

end

return TRUE

end

-------------------------------------------------------------------

muito obrigado...

se precisarem de mais coisas eu posto só avisem!

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...