• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[REQ] Mount System per Talk

hekkxd

New Member
Joined
Dec 11, 2009
Messages
15
Reaction score
0
i'm need a mount system per talkaction.

if someone can help-me with this I would greatly appreciate it.

Exp: the player say !mount boar and lost ur tame item hunting horn, that is for tame the boar and get ur boar.
u can use this infos for make the scripts http://globalrullex24h.servegame.com/?subtopic=mounts

and if u can, post possibles ids that is tame items, because my items.xml no have.

Srry Bad English
 
Last edited:
I think this will work... :
Lua:
function onSay(cid, words, param)
local params = {
["widowqueen"] = {1, x},
["racingbird"] = {2, x},
["warbear"] = {3, x},
["blacksheep"] = {4, x},
["midnightpanther"] = {5, x},
["draptor"] = {6, x},
["titanica"] = {7, x},
["tinlizzard"] = {8, x},
["blazebringer"] = {9, x},
["rapidboar"] = {10, x},
["undeadcavebear"] = {12, x}
}
local stampor = {a, 30, b, 50, c, 100}
local msg = {"Command requires param", "You dont have the items!", "Got Mount!"} 
local param = string.lower(param)

if (param ~= "" and params[param]) then
if doPlayerRemoveItem(cid, [param][2], 1] then
doPlayerAddMount(cid, [param][1])
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[3])
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
elseif param == 'stampor' then
if (doPlayerRemoveItem(cid, stampor[1], stampor[2] and doPlayerRemoveItem(cid, stampor[3], stampor[4]) and doPlayerRemoveItem(cid, stampor[5], stampor[6]) then
doPlayerAddMount(cid, 11)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[3])
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
end
return true
end
Well, know, the instructions:
1. Change all "x" for the id of the item u required....
2. Change "a", "b" and "c" for the id of the 3 items u need to get stampor mount...

I dont include the items id because i dont have the items.xml of 8.7 too.... xD

That's all

Hope it work and u like it ^^
 
There was a problem:

Semttulo.png


The script is so.

Code:
function onSay(cid, words, param)
local params = {
["widowqueen"] = {1, 4870},
["racingbird"] = {2, 4865},
["warbear"] = {3, 5907},
["blacksheep"] = {4, 2218},
["midnightpanther"] = {5, 4843},
["draptor"] = {6, 4869},
["titanica"] = {7, 10529},
["tinlizzard"] = {8, 8978},
["blazebringer"] = {9, 2345},
["rapidboar"] = {10, 3952},
["undeadcavebear"] = {12, 3957}
}
local stampor = {5896, 30, 5954, 50, 2151, 100}
local msg = {"Command requires param", "Voce nao tem os devidos items!", "Got Mount!"} 
local param = string.lower(param)
 
if (param ~= "" and params[param]) then
if doPlayerRemoveItem(cid, [param][2], 1] then
doPlayerAddMount(cid, [param][1])
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[3])
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
elseif param == 'stampor' then
if (doPlayerRemoveItem(cid, stampor[1], stampor[2] and doPlayerRemoveItem(cid, stampor[3], stampor[4]) and doPlayerRemoveItem(cid, stampor[5], stampor[6]) then
doPlayerAddMount(cid, 11)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[3])
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
end
return true
end
 
There was a problem:

Sorry... I got an error.... I put ] and it was )
Now i think its correct....

Lua:
function onSay(cid, words, param)
local params = {
["widowqueen"] = {1, 4870},
["racingbird"] = {2, 4865},
["warbear"] = {3, 5907},
["blacksheep"] = {4, 2218},
["midnightpanther"] = {5, 4843},
["draptor"] = {6, 4869},
["titanica"] = {7, 10529},
["tinlizzard"] = {8, 8978},
["blazebringer"] = {9, 2345},
["rapidboar"] = {10, 3952},
["undeadcavebear"] = {12, 3957}
}
local stampor = {5896, 30, 5954, 50, 2151, 100}
local msg = {"Command requires param", "Voce nao tem os devidos items!", "Got Mount!"} 
local param = string.lower(param)
 
if (param ~= "" and params[param]) then
if doPlayerRemoveItem(cid, [param][2], 1) then
doPlayerAddMount(cid, [param][1])
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[3])
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
elseif param == 'stampor' then
if (doPlayerRemoveItem(cid, stampor[1], stampor[2] and doPlayerRemoveItem(cid, stampor[3], stampor[4]) and doPlayerRemoveItem(cid, stampor[5], stampor[6]) then
doPlayerAddMount(cid, 11)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[3])
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
end
return true
end
 
Lua:
function onSay(cid, words, param)
local params = {
["widowqueen"] = {1, 4870},
["racingbird"] = {2, 4865},
["warbear"] = {3, 5907},
["blacksheep"] = {4, 2218},
["midnightpanther"] = {5, 4843},
["draptor"] = {6, 4869},
["titanica"] = {7, 10529},
["tinlizzard"] = {8, 8978},
["blazebringer"] = {9, 2345},
["rapidboar"] = {10, 3952},
["undeadcavebear"] = {12, 3957}
}
local stampor = {5896, 30, 5954, 50, 2151, 100}
local msg = {"Command requires param", "Voce nao tem os devidos items!", "Got Mount!"} 
local param = string.lower(param)
for k, v in pairs(params) do
if (param ~= "" and k[param]) then
if doPlayerRemoveItem(cid, [param]v[2], 1) then
doPlayerAddMount(cid, [param]v[1])
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[3])
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
elseif param == 'stampor' then
if (doPlayerRemoveItem(cid, stampor[1], stampor[2] and doPlayerRemoveItem(cid, stampor[3], stampor[4]) and doPlayerRemoveItem(cid, stampor[5], stampor[6]) then
doPlayerAddMount(cid, 11)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[3])
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
end
return true
end

Maybe this will work?
 
Back
Top