Amigo, dsculpa abusar sou eu dinovo ;D
O servidor ta mt bom e tal, mas tem um pequeno problema.
Ele fecha a cada 2 horas do nada :S. Não da erro no console nem nada ele simplesmente fecha :s.
A montaria do horse e nem do water buffalo ta funfando :S.
Me tira uma duvida também aproveitando o topico hehe,
Os outfit já está por quest? eu posso colocar para os character vir com os basicos e ir fazendo as quests para pegar os outros outfit ? ou não tem quest outfit ?
Obrigado e desculpa dinovo hehe
essa vale Rep+
:$
Sem problemas qlqr erro pode reportar, nao sei o pq de ele esta caindo a cada 2h eu deixei on em testes aqui em casa e fico 4h+ e ja xeguei a deixa esse sv on e passo das 328h online
, vc altero alguma coisa? a ultima vez q caiu cmg foi qnd tentei instala o cast system e vo fala deu problema pra descobrir o q fazia cair kkkk, tente ve se eh algo q vc faz q derruba o sv.
os Outfits eu fiz um system diferente, qnd termina a yalahar final pt ganha os addons do yalaharian e qnd termina wrath ganha o wayfarer full, mas as unicas q tem chance de ter q fazer outfit sao warmaster e wedding do casamento e qnto derrubando o server vo ve se axo algo q esteja causando isso se achar posto aqui.
ja a mount add ai
em actions.xml add isso
<!--Mounts-->
<action itemid="13292;13306" script="tinlizzard.lua"/> --tin lizzard
<action itemid="13295" script="mounts.lua"/> --reins
<action itemid="13294" script="mounts.lua"/> --harness
<action itemid="13293" script="mounts.lua"/> --leather whip
<action itemid="13298" script="mounts.lua"/> --carrot on a stick
<action itemid="13247" script="mounts.lua"/> --hunting horn
<action itemid="13305" script="mounts.lua"/> --giant Shrimp
<action itemid="13291" script="mounts.lua"/> --maxilla maximus
<action itemid="5907" script="mounts.lua"/> --slingshot
<action itemid="13307" script="mounts.lua"/> --sweet smelling bait
<action itemid="13537" script="mounts.lua"/> --bag of apple slices
<action itemid="13535" script="mounts.lua"/> --fist on a stick
<action itemid="13536" script="mounts.lua"/> --diapason
<action itemid="13538" script="mounts.lua"/> --bamboo leaves
<action itemid="13539" script="mounts.lua"/> --golden fir cone
<action itemid="13498" script="mounts.lua"/> --scorpion sceptre
<action itemid="13508" script="mounts.lua"/> --slug drug
<action itemid="13939" script="mounts.lua"/> --sugar oat
<action itemid="15545" script="mounts.lua"/> --fox tail
<action itemid="15546" script="mounts.lua"/> --four leaf clover
<action itemid="18449" script="mounts.lua"/> --decorative ribbow
<action itemid="18448" script="mounts.lua"/> --glow wine
<action itemid="18447" script="mounts.lua"/> --iron loadstone
<action itemid="18516" script="mounts.lua"/> --golem wrench
<action itemid="20138" script="mounts.lua"/> --leech
<action itemid="13938;13937" script="uniwheel.lua"/> --can golden of oil
abre a pasta actions/mounts.lua
local function tameMonster(cid, item, itemEx, tame, run, broken)
n = math.random(100)
if n <= broken then
doCreatureSay(cid, "O item quebrou! :@", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid)
elseif n > broken and n <= (tame+broken) then
doRemoveItem(item.uid)
doCreatureSay(cid, "Montado com sucesso! ", TALKTYPE_ORANGE_1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce domou com sucesso "..getCreatureName(itemEx.uid)..".")
return true
elseif n > (tame+broken) and n <= (tame+broken+run) then
doCreatureSay(cid, "O monstro escapou", TALKTYPE_ORANGE_1)
doRemoveCreature(itemEx.uid)
else
doCreatureSay(cid, "Tente denovo!! ", TALKTYPE_ORANGE_1)
end
return false
end
local function inArray(table, value)
for i,v in pairs(table) do
if (v.name == string.lower(value)) then
return i
end
end
return 0
end
local mounts = {
{item = 13307, name = "wailing widow", id = 1, tame=60, run=20, broken=20},
{item = 13298, name = "terror bird", id = 2, tame=40, run=20, broken=40},
{item = 5907, name = "bear", id = 3, tame=90, run=5, broken=5},
{item = 13295, name = "black sheep", id = 4, tame=40, run=30, broken=30},
{item = 13293, name = "midnight panther", id = 5, tame=60, run=20, broken=20},
{item = 13538, name = "panda", id = 19, tame=50, run=25, broken=25},
{item = 13539, name = "enraged white deer", id = 18, tame=70, run=15, broken=15},
{item = 13294, name = "draptor", id = 6, tame=60, run=20, broken=20},
{item = 13537, name = "donkey", id =13, tame=40, run=30, broken=30},
{item = 13305, name = "crustacea gigantica", id = 7, tame=80, run=10, broken=10},
{item = 13536, name = "crystal wolf", id = 16, tame=60, run=20, broken=20},
{item = 13247, name = "boar", id = 10, tame=80, run=10, broken=10},
{item = 13498, name = "sandstone scorpion", id = 21, tame=70, run=10, broken=20},
{item = 13508, name = "slug", id = 14, tame=60, run=20, broken=20},
{item = 13535, name = "dromedary", id = 20, tame=60, run=20, broken=20},
{item = 13291, name = "undead cavebear", id = 12, tame=70, run=10, broken=20},
{item = 13939, name = "fire horse", id = 22, tame=60, run=20, broken=20},
{item = 13939, name = "gray horse", id = 29, tame=60, run=20, broken=20},
{item = 13939, name = "brown war horse", id = 17, tame=60, run=20, broken=20},
{item = 15546, name = "lady bug", id = 27, tame=70, run=10, broken=20},
{item = 15545, name = "manta", id = 28, tame=60, run=20, broken=20},
{item = 13938, name = "uniwheel", id = 15, tame=70, run=15, broken=15},
{item = 13292, name = "tin lizzard", id = 8, tame=70, run=15, broken=15},
{item = 15546, name = "lady bug", id = 27, tame=70, run=15, broken=15},
{item = 15545, name = "manta ray", id = 28, tame=70, run=15, broken=15},
{item = 18447, name = "ironblight", id = 30, tame=70, run=15, broken=15},
{item = 18448, name = "magma crawler", id = 31, tame=70, run=15, broken=15},
{item = 18449, name = "dragonling", id = 32, tame=70, run=15, broken=15},
{item = 18516, name = "gnarlhound", id = 33, tame=70, run=15, broken=15},
{item = 20138, name = "water buffalo", id = 36, tame=70, run=15, broken=15},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isCreature(itemEx.uid) then
if inArray(mounts, getCreatureName(itemEx.uid)) > 0 then
i = inArray(mounts, getCreatureName(itemEx.uid))
if item.itemid == mounts[i].item and not getPlayerMount(cid, mounts[i].id) then
if tameMonster(cid, item, itemEx, mounts[i].tame, mounts[i].run, mounts[i].broken) then
doSendMagicEffect(fromPosition, CONST_ME_MAGIC_BLUE)
doRemoveCreature(itemEx.uid)
doPlayerAddMount(cid, mounts[i].id)
else
doSendMagicEffect(toPosition, CONST_ME_POFF)
end
end
end
end
return true
end