Jump to content
Close

Recommended Posts

Lembrando que quem for usar deve editar esse script colocando os restantes das mounts (pode ser visto no tibiawiki)

 

Ex:

     -- ["mount"] = {price = x, id = x},
        ["widow queen"] = {price = 0, id = 1}
        ["war bear"] = {price = 0, id = 2}
        ["black sheep"] = {price = 0, id = 3}
    }

Mudando sempre o "ID" e colocando o nome da mount ali no lugar que eu acabei de adicionar 2 no exemplo.


Share this post


Link to post
Share on other sites

Acho que não funciona..

Tentei usar aqui, e não faz nada quando digito .!mount widow queen

Ai digito: !mount e aparece 14:52 Digite novamente, algo está errado!

 

Só isso =x

 

Uso versão 10.37

 

@Edit

 

Aqui ta o code com os mounts:

function onSay(cid, words, param)

	local table = { 
	 -- ["mount"] = {price = x, id = x},
		["widow queen"] = {price = 0, id = 1},
		["Racing Bird"] = {price = 0, id = 2},
		["War Bear"] = {price = 0, id = 3},
		["Black Sheep"] = {price = 0, id = 4},
		["Midnight Panther"] = {price = 0, id = 5},
		["Draptor"] = {price = 0, id = 6},
		["Titanica"] = {price = 0, id = 7},
		["Tin Lizzard"] = {price = 0, id = 8},
		["Blazebringer"] = {price = 0, id = 9},
		["Rapid Boar"] = {price = 0, id = 10},
		["Stampor"] = {price = 0, id = 11},
		["Undead Cavebear"] = {price = 0, id = 12},
		["Donkey"] = {price = 0, id = 13},
		["Tiger Slug"] = {price = 0, id = 14},
		["Uniwheel"] = {price = 0, id = 15},
		["Crystal Wolf"] = {price = 0, id = 16},
		["Brown War Horse"] = {price = 0, id = 17},
		["Kingly Deer"] = {price = 0, id = 18},
		["Tamed Panda"] = {price = 0, id = 19},
		["Dromedary"] = {price = 0, id = 20},
		["King Scorpion"] = {price = 0, id = 21},
		["Rented Horse"] = {price = 0, id = 22},
		["Armoured War Horse"] = {price = 0, id = 23},
		["Shadow Draptor"] = {price = 0, id = 24},
		["Rented Horse"] = {price = 0, id = 25},
		["Rented Horse"] = {price = 0, id = 26},
		["Ladybug"] = {price = 0, id = 27},
		["Manta"] = {price = 0, id = 28},
		["Ironblight"] = {price = 0, id = 29},
		["Magma Crawler"] = {price = 0, id = 30},
		["Dragonling"] = {price = 0, id = 31},
		["Gnarlhound"] = {price = 0, id = 32},
		["Crimson Ray"] = {price = 0, id = 33},
		["Steelbeak"] = {price = 0, id = 34},
		["Water Buffalo"] = {price = 0, id = 35},
		["Armoured Scorpion"] = {price = 0, id = 36},
		["Armoured Dragonling"] = {price = 0, id = 37},
		["Armoured Cavebear"] = {price = 0, id = 38},
		["The Hellgrip"] = {price = 0, id = 39},
		["Lion"] = {price = 0, id = 40},
		["Golden Lion"] = {price = 0, id = 41},
		["Shock Head"] = {price = 0, id = 42}
	}

	local player, param = Player(cid), string.lower(param)
    local mountdoll_id = 9019 -- id do mount doll
	local t = table[param]
	
	if player:getItemCount(mountdoll_id) > 0 then
        if param ~= "" and t then
            if not player:hasMount(t.id) then  
				player:removeItem(mountdoll_id, 1)
                player:sendTextMessage(MESSAGE_INFO_DESCR, "Sua mount foi adicionada!")
                Position(getThingPos(cid)):sendMagicEffect(CONST_ME_GIFT_WRAPS)
				player:addMount(t.id)
            else
                player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce ja tem esta mount.")
            end
        else
            player:sendTextMessage(MESSAGE_INFO_DESCR, "Digite novamente, algo está errado!")
        end
    else
        player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce não tem um mount doll!")
    end
end

Edited by lamina (see edit history)

Antica Global - Server Online

 

SITE: http://anticaglobal.com/

IP: anticaglobal.com
EXP: 999x [sTAGES]
ML: 300x
SKILL: 500x
LOOT: 10x
 
VERSÃO: 10.77
PORTA: 7171
 
Stages:
1 - 8 level, 999x
9 - 20 level, 950x
21 - 50 level, 800x
51 - 100 level, 750x
101 - 130 level, 650x
131 - 180 level, 550x
181 - 230 level, 450x
231 - 300 level, 350x
301+ level, 300x
 

Share this post


Link to post
Share on other sites

Blz, funciona.. seria legal se estivesse no topico como é o comando -.-

 

!mount "nome



Antica Global - Server Online

 

SITE: http://anticaglobal.com/

IP: anticaglobal.com
EXP: 999x [sTAGES]
ML: 300x
SKILL: 500x
LOOT: 10x
 
VERSÃO: 10.77
PORTA: 7171
 
Stages:
1 - 8 level, 999x
9 - 20 level, 950x
21 - 50 level, 800x
51 - 100 level, 750x
101 - 130 level, 650x
131 - 180 level, 550x
181 - 230 level, 450x
231 - 300 level, 350x
301+ level, 300x
 

Share this post


Link to post
Share on other sites

Corriga o comando: !mount mountname para  !mount "mountname



Antica Global - Server Online

 

SITE: http://anticaglobal.com/

IP: anticaglobal.com
EXP: 999x [sTAGES]
ML: 300x
SKILL: 500x
LOOT: 10x
 
VERSÃO: 10.77
PORTA: 7171
 
Stages:
1 - 8 level, 999x
9 - 20 level, 950x
21 - 50 level, 800x
51 - 100 level, 750x
101 - 130 level, 650x
131 - 180 level, 550x
181 - 230 level, 450x
231 - 300 level, 350x
301+ level, 300x
 

Share this post


Link to post
Share on other sites

@kinglekke, seu TFS é 1.0? Qual comando você esta usando?

sim é tfs 1.0 ot 10.37

function onSay(cid, words, param)

local table = {

-- ["mount"] = {price = x, id = x},

["Blazebringer"] = {price = 0, id = 9},

["Crimson Ray"] = {price = 0, id = 33},

["Steelbeak"] = {price = 0, id = 34},

["Water Buffalo"] = {price = 0, id = 35},

["Armoured Scorpion"] = {price = 0, id = 36},

["Armoured Dragonling"] = {price = 0, id = 37},

["Armoured Cavebear"] = {price = 0, id = 38},

["The Hellgrip"] = {price = 0, id = 39},

["Lion"] = {price = 0, id = 40},

["Golden Lion"] = {price = 0, id = 41},

["Shock Head"] = {price = 0, id = 42}

}

local player, param = Player(cid), string.lower(param)

local mountdoll_id = 9019 -- id do mount doll

local t = table[param]

if player:getItemCount(mountdoll_id) > 0 then

if param ~= "" and t then

if not player:hasMount(t.id) then

player:removeItem(mountdoll_id, 1)

player:sendTextMessage(MESSAGE_INFO_DESCR, "Sua mount foi adicionada!")

Position(getThingPos(cid)):sendMagicEffect(CONST_ME_GIFT_WRAPS)

player:addMount(t.id)

else

player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce ja tem esta mount.")

end

else

player:sendTextMessage(MESSAGE_INFO_DESCR, "Digite novamente, algo está errado!")

end

else

player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce não tem um mount doll!")

end

end

 

comando uso "!mount"


Edited by kinglekke (see edit history)

OldTaboos24hpor48h.com Inauguração DOMONIGO as 18:00 | 18/03/2018 | Stages | Custom Map |VENHA SER TOP TABOOS!

Share this post


Link to post
Share on other sites

quando uso !mount " da o seguinte erro "Digite novamente, algo está errado" e nao sai disso

 

function onSay(cid, words, param)



local table = {
-- ["mount"] = {price = x, id = x},
["widow queen"] = {price = 0, id = 1},
["Racing Bird"] = {price = 0, id = 2},
["War Bear"] = {price = 0, id = 3},
["Black Sheep"] = {price = 0, id = 4},
["Midnight Panther"] = {price = 0, id = 5},
["Draptor"] = {price = 0, id = 6},
["Titanica"] = {price = 0, id = 7},
["Tin Lizzard"] = {price = 0, id = 8},
["Blazebringer"] = {price = 0, id = 9},
["Rapid Boar"] = {price = 0, id = 10},
["Stampor"] = {price = 0, id = 11},
["Undead Cavebear"] = {price = 0, id = 12},
["Donkey"] = {price = 0, id = 13},
["Tiger Slug"] = {price = 0, id = 14},
["Uniwheel"] = {price = 0, id = 15},
["Crystal Wolf"] = {price = 0, id = 16},
["Brown War Horse"] = {price = 0, id = 17},
["Kingly Deer"] = {price = 0, id = 18},
["Tamed Panda"] = {price = 0, id = 19},
["Dromedary"] = {price = 0, id = 20},
["King Scorpion"] = {price = 0, id = 21},
["Rented Horse"] = {price = 0, id = 22},
["Armoured War Horse"] = {price = 0, id = 23},
["Shadow Draptor"] = {price = 0, id = 24},
["Rented Horse"] = {price = 0, id = 25},
["Rented Horse"] = {price = 0, id = 26},
["Ladybug"] = {price = 0, id = 27},
["Manta"] = {price = 0, id = 28},
["Ironblight"] = {price = 0, id = 29},
["Magma Crawler"] = {price = 0, id = 30},
["Dragonling"] = {price = 0, id = 31},
["Gnarlhound"] = {price = 0, id = 32},
["Crimson Ray"] = {price = 0, id = 33},
["Steelbeak"] = {price = 0, id = 34},
["Water Buffalo"] = {price = 0, id = 35},
["Armoured Scorpion"] = {price = 0, id = 36},
["Armoured Dragonling"] = {price = 0, id = 37},
["Armoured Cavebear"] = {price = 0, id = 38},
["The Hellgrip"] = {price = 0, id = 39},
["Lion"] = {price = 0, id = 40},
["Golden Lion"] = {price = 0, id = 41},
["Shock Head"] = {price = 0, id = 42}
}

local player, param = Player(cid), string.lower(param)
local mountdoll_id = 9019 -- id do mount doll
local t = table[param]

if player:getItemCount(mountdoll_id) > 0 then
if param ~= "" and t then
if not player:hasMount(t.id) then
player:removeItem(mountdoll_id, 1)
player:sendTextMessage(MESSAGE_INFO_DESCR, "Sua mount foi adicionada!")
Position(getThingPos(cid)):sendMagicEffect(CONST_ME_GIFT_WRAPS)
player:addMount(t.id)
else
player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce ja tem esta mount.")
end
else
player:sendTextMessage(MESSAGE_INFO_DESCR, "Digite novamente, algo está errado!")
end
else
player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce não tem um mount doll!")
end
end


Edited by kinglekke (see edit history)

OldTaboos24hpor48h.com Inauguração DOMONIGO as 18:00 | 18/03/2018 | Stages | Custom Map |VENHA SER TOP TABOOS!

Share this post


Link to post
Share on other sites

sim por isso que estou te perguntanbdoi tipo usei esse ake e parece que funciona, porem tento add o resto das mounts da erro 

-- Script by DMLDR


function onSay(cid, words, param, channel)

local id = {
["widow queen"] = 1,
["racing bird"] = 2,
["war bear"] = 3,
["black sheep"] = 4,
["midnight panther"] = 5,
["draptor"] = 6,
["titanica"] = 7,
["tin lizzard"] = 8,
["blazebringer"] = 9,
["rapid boar"] = 10,
["stampor"] = 11,
["undead cavebear"] = 12,
["donkey"] = 13,
["tiger slug"] = 14,
["uniwheel"] = 15,
["crystal wolf"] = 16,
["war horse"] = 17,
["kingly deer"] = 18,
["tamed panda"] = 19,
["dromedary"] = 20,
["sandstone scorpion"] = 21,
["rented horse"] = 22,
["fire war horse"] = 23,
["shadow draptor"] = 24,
["rented horse"] = 25,
["rented horse"] = 26,
["ladybug"] = 27,
["manta"] = 28,
["iron blight"] = 29,
["magma crawler"] = 30,
["dragonling"] = 31,
["gnarlhound"] = 32,
["mewfar"] = 33,
["aspawn"] = 34,
["morius"] = 35,
}

if (param == '') then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Como usar: !mount (nome da mount)")
return true

end

local mount = id[param:lower()]

if(mount) then
if doPlayerRemoveItem(cid, 13030, 1) then
doPlayerAddMount(cid, mount)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você recebeu sua nova montaria!")
else
doPlayerSendCancel(cid, "Você não tem um Mount Doll")
end
end
return true
end

 

 

se der tem como você me ajuda a por o resto das mount ?



OldTaboos24hpor48h.com Inauguração DOMONIGO as 18:00 | 18/03/2018 | Stages | Custom Map |VENHA SER TOP TABOOS!

Share this post


Link to post
Share on other sites

assim tentei o seu mas nao deu, entao pensei em usar outro mas esse que passie o script ta funfando agora quero suas ajuda para ele ficar 100% pode me ajudar ?



OldTaboos24hpor48h.com Inauguração DOMONIGO as 18:00 | 18/03/2018 | Stages | Custom Map |VENHA SER TOP TABOOS!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


Open Tibia Server

Quer aprender a criar seu próprio servidor de Tibia? Então está no lugar certo, aqui você encontrará milhares de tutorias, scripts, códigos, mapas e utilitários para que você possa fazer o seu próprio servidor de Tibia partindo do zero.

Redes Sociais

Anuncie no Tibia King

Precisa de mais visibilidade em seus projetos? Quer publicidade para o seu servidor? Anuncie no Tibia King e faça sua divulgação, possuímos centenas de acessos simultâneos e milhares diários, com certeza será a sua solução! A publicação do seu anuncio é instantânea!

×
×
  • Create New...