
Albeck
Membro
-
Registro em
-
Última visita
Solutions
-
Albeck's post in (Resolvido){Resolvido} [ERRO] Alavanca que da spawn de criatura. was marked as the answer@dimmebag
Você tava usando o script da versão 1.2
Tenta esse:
function onUse(cid, item, fromPosition, toPosition) if (getPlayerStorageValue(cid, 11548) >= os.time()) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"Você só pode usar novamente em " .. (getPlayerStorageValue(cid, 11548)-os.time()+(0)) .. " segundos.") return true end if item.itemid == 1945 then doCreateMonster('Demon Arena', {x=32182,y=32236,z=7}) doCreateMonster('Demon Arena', {x=32171,y=32240,z=7}) doCreateMonster('Demon Arena', {x=32181,y=32240,z=7}) doCreateMonster('Demon Arena', {x=32175,y=32242,z=7}) doTransformItem(item.uid, 1946) setPlayerStorageValue(cid,11548,os.time()+180) elseif item.itemid == 1946 then doTransformItem(item.uid, 1945) end return true end
-
Albeck's post in (Resolvido)Convert Query was marked as the answer@JcA
Não testado:
CREATE TABLE IF NOT EXISTS `players_dtk` ( `name` varchar(30) NOT NULL, `group_name` varchar(10) NOT NULL, `escolhido` int(2) NOT NULL DEFAULT '0', `town` int(4) NOT NULL DEFAULT '1' );
-
Albeck's post in (Resolvido)Doors por vocação was marked as the answer@JcA
function onUse(cid, item, topos) local doors = { [8651] = {vocation = {1, 5, 9}, messageFail = "Sorry, you need to be a Sorcerer or Master Sorcerer to pass."}, [8652] = {vocation = {2, 6, 10}, messageFail = "Sorry, you need to be a Druid or Elder Druid to pass."}, [8653] = {vocation = {3, 7, 11}, messageFail = "Sorry, you need to be a Paladin or Royal Paladin to pass."}, [8654] = {vocation = {4, 8, 12}, messageFail = "Sorry, you need to be a Knight or Elite Knight to pass."}, } if not(isInArray(doors[item.actionid].vocation, getPlayerVocation(cid))) then return doPlayerSendCancel(cid, doors[item.actionid].messageFail) end doTeleportThing(cid, topos, TRUE) doTransformItem(item.uid, item.itemid + 1) return true end
-
Albeck's post in (Resolvido)Limitar mensagem no script was marked as the answer@JcA
Testa ai e manda a resposta.
function onLogin(cid) local bless = {" First Bless,", " Second Bless,", " Third Bless,", " Fourth Bless,", " Fifth Bless."} local check = "Received blessings:" if (string.find(tostring(getCreatureName(cid)),"Account Manager")) or getPlayerGroupId(cid) >= 3 then return true end for i = 1, #bless do check = getPlayerBlessing(cid, i) and check .. bless[i] or check end if check:len() > 20 then doPlayerSendTextMessage(cid, 20, check) else doPlayerSendTextMessage(cid, 20, "No blessings received.") end return true end
-
Albeck's post in (Resolvido)Reformula Script Basico was marked as the answerCaioitalo1,
function onUse(cid, item, fromPosition, itemEx, toPosition) local items = {xxx, xxx, xxx} for i,_ in pairs(items) do doPlayerAddItem(cid, items[i], 1) doRemoveItem(item.uid) end return true end
-
Albeck's post in (Resolvido)Reajuste no Script was marked as the answerCaioitalo1,
if PlayerRemoveMoney(cid,t.money) then Para
if doPlayerRemoveMoney(cid,t.money) then