-
-
-
-
Problema com Tile
@brstuani Ta funcionando acabei de testar.
-
Problema com Tile
@brstuani local monsters = {{"Dragon", {x = 661 , y = 689, z = 8}}, {"Dragon Lord", {x = 660 , y = 689, z = 8}}} local pos = {x = 661, y = 694, z = 8} -- posicao do tile onde vai ser adicionado o item function onStepIn(cid, item, fromPosition, toPosition) if isPlayer(cid) == FALSE then return true end if isPlayer(cid) == TRUE then for i = 1, #monsters do doCreateMonster(monsters[1], monsters[2]) doCreateItem(387, pos) -- Item que vai ser adicionado ao tile doSendMagicEffect(monsters[2], 10) end end return true end
-
dimmebag reagiu a uma resposta no tópico: (Resolvido){Resolvido} [ERRO] Alavanca que da spawn de criatura.
-
(Resolvido){Resolvido} [ERRO] Alavanca que da spawn de criatura.
@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
-
-
(Resolvido)Convert Query
@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' );
-
(Resolvido)Teleportar player automático quando alcançar um certo level!
Removido.
-
-
Quando usa alavanca da debug
@Koring4 doCreatureSay(cid, "You have ".. tempo .." seconds.", 19) Para doCreatureSay(cid, "You have ".. tempo .." seconds.", TALKTYPE_ORANGE_1)
-
-
[AJUDA] PREMIUM POINTS COIN
@Tsuunaa Reboorn <action itemid="itemID" script="nome_do_arquivo.lua" />
-
-
[AJUDA] PREMIUM POINTS COIN
@Alberto1997 local points = 10 function onUse(player, item, fromPosition, itemEx, toPosition) db.query("UPDATE `accounts` SET `premium_points` = `premium_points` + "..points.." WHERE id=" ..player:getAccountId()) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'Você recebeu '..points..' premium points!') player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED) Item(item.uid):remove(1) return true end
-
-
(Resolvido)Doors por vocação
@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
-
-
Escolher 1 iten por bau-
@brianpsy15 Você pode mudar tudo uniqueid, itens menos a storage se você quiser que o player não pegue os itens dos outros baús. Você pode fazer 4 scripts para 4 baús com este script lembre-se pra não repetir a uniqueid na xml e nem nos baús no rme e sim repetir a storage nos 4 scripts. <action uniqueid="2043"script="nome_do_arquivo.lua"/> function onUse(player, item, frompos, item2, topos) if player:getStorageValue(2043) == -1 then player:addItem(2160,1) player:sendTextMessage(4,'Você ganhou 10k') player:setStorageValue(2043, 1) else player:sendTextMessage(19, 'Você já fez esta quest.') end return true end
-
Escolher 1 iten por bau-
@brianpsy15 Cada 1 baú 1 script e nos 4 scripts a mesma storage dos outros.
-
Escolher 1 iten por bau-
@brianpsy15 Só repetir actionid/uniqueid nos 4 baús.
-
-
Script Portal por alavanca
@kinomoto Me diga como funciona este script.
-
-
[RESOLVIDO] Remover Frag
@Duality Acabei de testar e funcionou. Se deu erro é só postar o erro. UPDATE `players` SET `skull`=0; UPDATE `players` SET `skulltime`=0; UPDATE `killers` SET `unjustified`=0;
-
[RESOLVIDO] Remover Frag
@Duality Executa 1 por 1 com o servidor offline. Editei o post, só verificar a cima.