Bom, eu queria que alguem pudesse me ajudar juntando 2 talkactions
As talk's no caso seriam essas
function onSay(cid, words, param)
maximum = {
player = getPlayerGUID(cid),
lvlmax = 717218 -- Level que o player vai ficar apos usar o comando.
}
if getPlayerLevel(cid) == 717217 then
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = "..maximum.lvlmax..", `experience` = 10000 WHERE `id` = "..maximum.player)
else
doPlayerSendCancel(cid, 'You do not have the level max 717217.')
doSendMagicEffect(getPlayerPosition(cid),37)
end
end
E a segunda seria :
function onSay(cid, words, param)
maximum = {
player = getPlayerGUID(cid),
lvlmax = 903638, -- Level que o player vai ficar apos usar o comando.
}
if getPlayerLevel(cid) == 903637 then
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = "..maximum.lvlmax..", `experience` = 10000 WHERE `id` = "..maximum.player)
else
doPlayerSendCancel(cid, 'You do not have the level max 903637.')
doSendMagicEffect(getPlayerPosition(cid),37)
end
end
A Primeira serve para dar o !upar no lvl 717217, e a segunda no 903k, porem, se eu separar elas em 2 talkactions, com 2 luas, 1 cada, eu teria que mudar o comando !upar pra !upar,!upar1 e etc... ( pelo menos eu acho isso '-' n manjo mto ) e eu queria qe qdo chegase no lvl 717k ele falase !upar e dps no 903k tb, sem a necessidade de mudar de comando