function onSay(player, words, param)
player:addMount(mountId or mountName)
player:removeMoney(cost)
player:sendTextMessage(MESSAGE_INFO_DESCR, "You have bought a mount.")
return false
end
function onSay(player, words, param)
player:addMount(mountId or mountName)
player:removeMoney(cost)
player:sendTextMessage(MESSAGE_INFO_DESCR, "You have bought a mount.")
return false
end
local table = {
["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}
}
if table[msg] then
local t = table[msg]
if getPlayerPremiumDays(cid) >= 1 then
if not getPlayerMount(cid, t.id) then
if doPlayerRemoveMoney(cid, t.cena) then
doPlayerAddMount(cid, t.id)
selfSay("You lost "..t.price.." gp! for mount!", cid)
talkState[talkUser] = 0
else
selfSay("Sorry, you do not have enough money!", cid)
talkState[talkUser] = 0
end
else
selfSay("You already have this mount!", cid)
talkState[talkUser] = 0
end
else
selfSay("You must be Premium!", cid)
talkState[talkUser] = 0
end
else
selfSay('What? Please told me a correct name of mount!', cid)
talkState[talkUser] = 0
end
return true
end
i have used your script but it's says You have bought a mount., but there's no mounts.Fast and simple.
Code:function onSay(player, words, param) player:addMount(mountId or mountName) player:removeMoney(cost) player:sendTextMessage(MESSAGE_INFO_DESCR, "You have bought a mount.") return false end
I assume you changed these template variables he gave you in the code right?i have used your script but it's says You have bought a mount., but there's no mounts.
here's some photo to explain.
![]()
yeah i have used this,I assume you changed these template variables he gave you in the code right?
function onSay(player, words, param)
player:addMount(5)
player:removeMoney(10000)
player:sendTextMessage(MESSAGE_INFO_DESCR, "You have bought a mount.")
return false
end
oh no!The Mount you selected require prem, does your character have prem
oh no!
can you make it without premium ?