-
Total de itens
482 -
Registro em
-
Última visita
-
Dias Ganhos
9
Tipo de Conteúdo
Fóruns
Calendário
Mercado
Articles
Gallery
Blogs
Tudo que gabrielzika postou
-
@ADM Mezenga Veja se é algo assim que você quer: function onUse(cid, item, frompos, item2, topos) local config = { storageAlready = 90909, storageRequired = 35100, effect = 66, msg = { success = "Parabens voce pegou sua Promotion.", invalid = "Voce ja pegou esta promotion (Aprendiz 1+Resets), Ou nao tem level suficiente.", } } if getPlayerStorageValue(cid, config.storageRequired) >= 1 then if getPlayerVocation(cid) == 5 then if getPlayerStorageValue(cid, config.storageAlready) == -1 then setPlayerPromotionLevel(cid, 1) setPlayerStorageValue(cid, config.storageAlready, 1) doSendMagicEffect(getCreaturePos(cid), config.effect) doPlayerSendTextMessage(cid, 19, config.msg.success) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msg.invalid) end end end return true end
-
TIbia Dat Editor "error option byte:66"
gabrielzika respondeu ao tópico de STAR NINJA em Suporte OTServer Derivados
@REI DAVID Usa o Object Builder -
Criação de Quest,Tile que mata o play se pisa nele
gabrielzika respondeu ao tópico de Salazar Slytherin em Suporte OTServer Derivados
@louco3626 https://hastebin.com/gulokatovi.rb -
Criação de Quest,Tile que mata o play se pisa nele
gabrielzika respondeu ao tópico de Salazar Slytherin em Suporte OTServer Derivados
@louco3626 vc criou o arquivo neste local?? data/movements/scripts tem como enviar prints? -
Criação de Quest,Tile que mata o play se pisa nele
gabrielzika respondeu ao tópico de Salazar Slytherin em Suporte OTServer Derivados
@louco3626 cria o arquivo tileEvent.lua e cola isso dentro: local config = { actions = {10100, 10101}, -- Certo, Errado tiles = {407, 406}, -- tile normal, tile diferente } function onStepIn(cid) if isPlayer(cid) and not isPlayerGhost(cid) then -- Certo local pos = getCreaturePosition(cid) if getTileInfo(pos).actionid == config.actions[1] then if getTileItemById(pos, config.tiles[1]).uid ~= 0 then doTransformItem(getTileItemById(pos, config.tiles[1]).uid, config.tiles[2]) end end end if isPlayer(cid) and not isPlayerGhost(cid) then -- Errado local valor = getCreatureHealth(cid) local pos = getCreaturePosition(cid) if getTileInfo(pos).actionid == config.actions[2] then doCreatureAddHealth(cid, -valor) end end return true end -
Criação de Quest,Tile que mata o play se pisa nele
gabrielzika respondeu ao tópico de Salazar Slytherin em Suporte OTServer Derivados
@louco3626 tileEvent.lua local config = { actions = {10100, 10101}, -- Certo, Errado tiles = {407, 406}, -- tile normal, tile diferente } function onStepIn(cid) if isPlayer(cid) and not isPlayerGhost(cid) then -- Certo local pos = getCreaturePosition(cid) if getTileInfo(pos).actionid == config.actions[1] then if getTileItemById(pos, config.tiles[1]).uid ~= 0 then doTransformItem(getTileItemById(pos, config.tiles[1]).uid, config.tiles[2]) end end end if isPlayer(cid) and not isPlayerGhost(cid) then -- Errado local valor = getCreatureHealth(cid) local pos = getCreaturePosition(cid) if getTileInfo(pos).actionid == config.actions[2] then doCreatureAddHealth(cid, -valor) end end return true end Movements.xml <?xml version="1.0" encoding="UTF-8"?> <movements> <!-- ICONE --> <movevent type="Equip" itemid="11826-11837;11737-11748;12826-12831;10975-10977;12621-12623;12861-13781;13797-13823;13836-13861;13902-13904;13919-13930;13933-13935;13937-13939;14020-14022;14015-14017;14033-14035;14038-14040;14043-14045;14086-14088;14091-14093;14096-14098;14101-14103;14106-14108;14111-14113;14116-14118;14121-14123;14126-14128;14136-14138;14141-14143;14157-14159;14163-14165;14173-14175;14081-14083;14190-14192;14178-14180;14193-14195;14199-14204;14223-14246;14262-14276;14287-14304;14340-14366;14491-14554;14578-14586;14593-14595;14598-14657;14663-14665;14667-14669;14673-14675;14649-14651;14676-14678;14680-14682;14685-14687;14690-14692;14047-14049" slot="feet" event="script" value="portrait.lua"/> <movevent type="DeEquip" itemid="11826-11837;11737-11748;12826-12831;10975-10977;12621-12623;12861-13781;13797-13823;13836-13861;13902-13904;13919-13930;13933-13935;13937-13939;14020-14022;14015-14017;14033-14035;14038-14040;14043-14045;14086-14088;14091-14093;14096-14098;14101-14103;14106-14108;14111-14113;14116-14118;14121-14123;14126-14128;14136-14138;14141-14143;14157-14159;14163-14165;14173-14175;14081-14083;14190-14192;14178-14180;14193-14195;14199-14204;14223-14246;14262-14276;14287-14304;14340-14366;14491-14554;14578-14586;14593-14595;14598-14657;14663-14665;14667-14669;14673-14675;14649-14651;14676-14678;14680-14682;14685-14687;14690-14692;14047-14049" slot="feet" event="script" value="portrait.lua"/> <!-- Outland --> <movevent type="StepIn" actionid="25007" event="script" value="outlandtile.lua"/> <movevent type="StepIn" actionid="25000" event="script" value="outlandtile1.lua"/> <movevent type="StepIn" actionid="33691-33716" event="script" value="PVP/Trade_Go.lua"/> <movevent type="StepIn" actionid="33799;33800-33808" event="script" value="PVP/Trade_Back.lua"/> <movevent type="StepIn" uniqueid="15011-15014" event="script" value="shiny box.lua"/> <movevent type="StepIn" actionid="7001" event="script" value="tprandom.lua" /> <movevent type="StepIn" actionid="7002-7004" event="script" value="tprandom1.lua" /> <movevent type="StepIn" actionid="7005-7007" event="script" value="tprandom2.lua" /> <movevent type="StepIn" uniqueid="13553-13555" event="script" value="entei quest.lua"/> <movevent type="StepIn" actionid="19456" event="script" value="premiumtile.lua" /> <movevent type="AddItem" itemid="11826-11837;11737-11748;12325-12329;12332;12580;2391;10975-10977" event="script" value="UniqueItem.lua"/> <movevent type="RemoveItem" itemid="11826-11837;11737-11748;12325-12329;12332;12580;2391;10975-10977" event="script" value="UniqueItem.lua"/> <movevent type="StepIn" itemid="11777-11785;1533-1542;11809-11811;5303-5304;1111-1119;873-878;2703;2767;1036-1048;6436-6439" event="script" value="blockwall.lua"/> <movevent type="StepIn" actionid="25695-25698;24158" event="script" value="PVP/PVP_tile.lua"/> <!-- Decaying tiles --> <movevent type="StepIn" itemid="293" event="script" value="decay.lua"/> <movevent type="StepIn" itemid="461" event="script" value="decay.lua"/> <movevent type="StepIn" actionid="7300" script="StorageTile.lua"/> <movevent type="StepIn" actionid="7301" script="TileQuestInicial/TileHouseDelia.lua"/> <movevent type="StepIn" actionid="7302" script="TileQuestInicial/TileHouseClickFood.lua"/> <movevent type="StepIn" actionid="7303" script="ReturnPOS.lua"/> <movevent type="StepIn" actionid="7310" script="TileQuestInicial/Prof.RobertTILE.lua"/> <!-- Swimming --> <movevent type="StepIn" itemid="4828-4831" event="script" value="swimming.lua"/> <movevent type="StepIn" itemid="7943-7954" event="script" value="swimming.lua"/> <!-- Underwater drown --> <movevent type="StepIn" fromid="5405" toid="5410" event="script" value="drown.lua"/> <movevent type="StepOut" fromid="5405" toid="5410" event="script" value="drown.lua"/> <!-- (Depot & Level) tiles --> <movevent type="StepIn" itemid="416" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="417" event="script" value="tiles.lua"/> <movevent type="StepIn" itemid="426" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="425" event="script" value="tiles.lua"/> <movevent type="StepIn" itemid="446" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="447" event="script" value="tiles.lua"/> <movevent type="StepIn" itemid="3216" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="3217" event="script" value="tiles.lua"/> <movevent type="StepIn" itemid="3202" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="3215" event="script" value="tiles.lua"/> <movevent type="StepIn" itemid="11059" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="11060" event="script" value="tiles.lua"/> <!-- <movevent type="StepIn" itemid="8714" event="script" value="tiles.lua"/> --> <!-- Traps --> <movevent type="StepIn" itemid="1510" event="script" value="trap.lua"/> <movevent type="StepOut" itemid="1511" event="script" value="trap.lua"/> <movevent type="StepIn" itemid="1512" event="script" value="trap.lua"/> <movevent type="StepOut" itemid="1513" event="script" value="trap.lua"/> <movevent type="StepIn" itemid="2579" event="script" value="trap.lua"/> <movevent type="RemoveItem" itemid="2579" event="script" value="trap.lua"/> <!-- Walkback when walking on quest chest --> <movevent type="StepIn" itemid="1738" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1740" event="script" value="walkback.lua"/> <movevent type="StepIn" fromid="1746" toid="1749" event="script" value="walkback.lua"/> <!-- (Level & quest) doors --> <movevent type="StepOut" itemid="1228" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1230" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1246" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1248" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1260" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1262" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="3541" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="3550" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5104" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5113" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5122" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5131" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5293" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5295" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1224" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1226" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1242" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1244" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1256" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1258" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="3543" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="3552" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5106" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5115" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5124" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5133" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5289" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5291" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5746" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5749" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6203" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6205" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6207" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6209" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6260" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6262" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6264" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6266" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6897" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6899" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6906" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6908" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="7039" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="7041" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="7048" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="7050" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="8552" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="8554" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="8556" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="8558" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9176" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9178" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9180" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9182" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9278" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9280" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9282" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9284" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10279" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10281" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10283" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10285" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10474" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10476" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10483" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10485" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10780" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10782" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10789" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10791" event="script" value="closingdoor.lua"/> <movevent type="StepIn" itemid="1228" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1230" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1246" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1248" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1260" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1262" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="3541" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="3550" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5104" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5113" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5122" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5131" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5293" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5295" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1224" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1226" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1242" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1244" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1256" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1258" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="3543" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="3552" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5106" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5115" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5124" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5133" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5289" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5291" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5746" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5749" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6203" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6205" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6207" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6209" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6260" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6262" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6264" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6266" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6897" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6899" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6906" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6908" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="7039" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="7041" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="7048" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="7050" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="8552" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="8554" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="8556" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="8558" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9176" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9178" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9180" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9182" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9278" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9280" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9282" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9284" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10279" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10281" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10283" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10285" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10474" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10476" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10483" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10485" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10780" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10782" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10789" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10791" event="script" value="walkback.lua"/> <!-- Snow footprint tiles --> <movevent type="StepIn" itemid="670" event="script" value="snow.lua"/> <movevent type="StepIn" itemid="6594" event="script" value="snow.lua"/> <!-- Create bread movements --> <movevent type="AddItem" tileitem="1" itemid="1786" event="script" value="dough.lua"/> <movevent type="AddItem" tileitem="1" itemid="1788" event="script" value="dough.lua"/> <movevent type="AddItem" tileitem="1" itemid="1790" event="script" value="dough.lua"/> <movevent type="AddItem" tileitem="1" itemid="1792" event="script" value="dough.lua"/> <!-- Campfires --> <movevent type="StepIn" itemid="1423" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1423" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1424" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1424" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1425" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1425" event="function" value="onAddField"/> <!-- Fields --> <movevent type="StepIn" itemid="1487" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1487" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1488" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1488" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1489" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1489" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1490" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1490" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1491" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1491" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1492" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1492" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1493" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1493" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1494" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1494" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1495" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1495" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1496" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1496" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1497" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1497" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1498" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1498" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1499" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1499" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1500" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1500" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1501" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1501" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1502" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1502" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1503" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1503" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1504" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1504" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1505" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1505" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1506" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1506" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1507" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1507" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1508" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1508" event="function" value="onAddField"/> <movevent type="StepIn" itemid="7359" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="7359" event="function" value="onAddField"/> <movevent type="StepIn" itemid="7360" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="7360" event="function" value="onAddField"/> <movevent type="StepIn" itemid="7465-7473" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="7465-7473" event="function" value="onAddField"/> <movevent type="StepIn" itemid="11095" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="11095" event="function" value="onAddField"/> <movevent type="StepIn" itemid="11096" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="11096" event="function" value="onAddField"/> <!-- Other --> <movevent type="StepIn" actionid="9015" event="script" value="roupa.lua"/> <movevent type="StepIn" itemid="4820-4825;11756" event="script" value="surf.lua"/> <movevent type="StepOut" itemid="4820-4825;11756" event="script" value="surf.lua"/> <!-- <movevent type="StepIn" itemid="4632-4663;6627-6694" event="script" value="surfcancel.lua"/> --> <movevent type="StepIn" actionid="10100;10101" event="script" value="tileEvent.lua"/> <movevent type="StepIn" itemid="460;11675-11677" event="script" value="fly.lua"/> <movevent type="StepOut" itemid="460;11675-11677" event="script" value="fly.lua"/> <movevent type="StepIn" itemid="919" event="script" value="ghostwalk.lua"/> <movevent type="StepOut" itemid="8260" event="script" value="ghostwalk.lua"/> <movevent type="StepOut" itemid="11749-11751" event="script" value="under deep sea.lua"/> </movements> -
Criação de Quest,Tile que mata o play se pisa nele
gabrielzika respondeu ao tópico de Salazar Slytherin em Suporte OTServer Derivados
@louco3626 qual funcionou? cita ai que eu arrumo pra tu -
Muito bom o module mano, parabéns!!
-
Criação de Quest,Tile que mata o play se pisa nele
gabrielzika respondeu ao tópico de Salazar Slytherin em Suporte OTServer Derivados
@louco3626 local config = { actions = {10130, 10131}, -- Certo, Errado tiles = {407, 406}, -- tile normal, tile diferente } function onStepIn(cid) if isPlayer(cid) and not isPlayerGhost(cid) then -- Certo local pos = getCreaturePosition(cid) if getTileInfo(pos).actionid == config.actions[1] then if getTileItemById(pos, config.tiles[1]).uid ~= 0 then doTransformItem(getTileItemById(pos, config.tiles[1]).uid, config.tiles[2]) end end end if isPlayer(cid) and not isPlayerGhost(cid) then -- Errado local valor = getCreatureHealth(cid) local pos = getCreaturePosition(cid) if getTileInfo(pos).actionid == config.actions[2] then if getTileItemById(pos, config.tiles[1]).uid ~= 0 or getTileItemById(pos, config.tiles[2]).uid ~= 0 then doCreatureAddHealth(cid, -valor) end end end return true end <movevent type="StepIn" actionid="10130;10131" event="script" value="tileEvent.lua"/> Nos tiles que estão em azul ai na sua print, tu coloca a Action: 10130 e no Resto em volta tu poem 10131 -
Criação de Quest,Tile que mata o play se pisa nele
gabrielzika respondeu ao tópico de Salazar Slytherin em Suporte OTServer Derivados
@louco3626Fala os ids dos pisos né mano, id do piso q ta ai e do piso q ele vai transformar -
Criação de Quest,Tile que mata o play se pisa nele
gabrielzika respondeu ao tópico de Salazar Slytherin em Suporte OTServer Derivados
@louco3626 manda aí como tu quer q eu arrumo... -
Criação de Quest,Tile que mata o play se pisa nele
gabrielzika respondeu ao tópico de Salazar Slytherin em Suporte OTServer Derivados
@louco3626 em actions: 1200 é a actions do tile certo a se pisar e 1300 do tile que vai te matar. em tiles: 1200 é o id do tile normal e 1300 e do tile que ele vai virar quando pisar certo, só alterar aí é ir testando.. o resto deixa como está -
Criação de Quest,Tile que mata o play se pisa nele
gabrielzika respondeu ao tópico de Salazar Slytherin em Suporte OTServer Derivados
@louco3626 Ve se é isso(não testei): Em data/movements/scripts/ crie um arquivo chamado: tileEvent.lua local config = { actions = {1200, 1300}, -- Certo, Errado tiles = {1200, 1300}, -- tile normal, tile diferente } function onStepIn(cid) if isPlayer(cid) and not isPlayerGhost(cid) then -- Certo local pos = getCreaturePosition(cid) if getTileInfo(pos).actionid == config.actions[1] then if getTileItemById(pos, config.tiles[1]).uid ~= 0 then doTransformItem(getTileItemById(pos, config.tiles[1]).uid, config.tiles[2]) end end end if isPlayer(cid) and not isPlayerGhost(cid) then -- Errado local valor = getCreatureHealth(cid) local pos = getCreaturePosition(cid) if getTileInfo(pos).actionid == config.actions[2] then if getTileItemById(pos, config.tiles[1]).uid ~= 0 or getTileItemById(pos, config.tiles[2]).uid ~= 0 then doCreatureAddHealth(cid, -valor) end end end return true end Tag: <movevent type="StepIn" actionid="1200;1300" event="script" value="tileEvent.lua"/> -
isRiderOrFlyOrSurf In server
gabrielzika respondeu ao tópico de Theodorojose em Suporte OTServer Derivados
@Theodorojose exato. -
isRiderOrFlyOrSurf In server
gabrielzika respondeu ao tópico de Theodorojose em Suporte OTServer Derivados
@Theodorojose https://hastebin.com/fuwevatuji.rb -
isRiderOrFlyOrSurf In server
gabrielzika respondeu ao tópico de Theodorojose em Suporte OTServer Derivados
@Theodorojose local config = { storage = 41651651, -- storage necessária para o script funcionar, aquele do npc. outfit_normal = {510, 511}, -- Male, Female outfit_mergulhador = {1034, 1035}, -- Male, Female speed = {320, 300, 100}, -- Normal, Player, Loss random = = math.random(1, 150), -- para randomizar a cor dos outfits. } function onStepIn(cid) if isRiderOrFlyOrSurf(cid) then doChangeSpeed(cid, getCreatureSpeed(cid)-config.speed[3]) end if isPlayer(cid) and getPlayerStorageValue(cid, config.storage) >= 1 then if getPlayerSex(cid) == 1 then doSetCreatureOutfit(cid, {lookType = config.outfit_mergulhador[1], lookHead = config.random, lookBody = config.random, lookLegs = config.random, lookFeet = config.random}, -1) elseif getPlayerSex(cid) == 0 then doSetCreatureOutfit(cid, {lookType = config.outfit_mergulhador[2], lookHead = config.random, lookBody = config.random, lookLegs = config.random, lookFeet = config.random}, -1) return true end if getCreatureOutfit(cid).lookType == config.outfit_mergulhador[1] or getCreatureOutfit(cid).lookType == config.outfit_mergulhador[2] then doChangeSpeed(cid, getCreatureSpeed(cid)+config.speed[2]) else doChangeSpeed(cid, getCreatureSpeed(cid)-config.speed[3]) end end return true end function onStepOut(cid) if isPlayer(cid) and getPlayerStorageValue(cid, config.storage) >= 1 then if getPlayerSex(cid) == 1 then doSetCreatureOutfit(cid, {lookType = config.outfit_normal[1], lookHead = config.random, lookBody = config.random, lookLegs = config.random, lookFeet = config.random}, -1) doChangeSpeed(cid, config.speed[1]) elseif getPlayerSex(cid) == 0 then doSetCreatureOutfit(cid, {lookType = config.outfit_normal[2], lookHead = config.random, lookBody = config.random, lookLegs = config.random, lookFeet = config.random}, -1) doChangeSpeed(cid, config.speed[1]) return true end end return true end -
isRiderOrFlyOrSurf In server
gabrielzika respondeu ao tópico de Theodorojose em Suporte OTServer Derivados
@Theodorojose local config = { storage = 41651651, -- storage necessária para o script funcionar, aquele do npc. outfit_normal = {510, 511}, -- Male, Female outfit_mergulhador = {1034, 1035}, -- Male, Female speed = {320, 300, 350, 100}, -- Normal, Player, Pokémon, Loss random = = math.random(1, 150), -- para randomizar a cor dos outfits. } function onStepIn(cid) if isRiderOrFlyOrSurf(cid) then doChangeSpeed(cid, getCreatureSpeed(cid)-config.speed[4]) end if isPlayer(cid) and getPlayerStorageValue(cid, config.storage) >= 1 then if getPlayerSex(cid) == 1 then doSetCreatureOutfit(cid, {lookType = config.outfit_mergulhador[1], lookHead = config.random, lookBody = config.random, lookLegs = config.random, lookFeet = config.random}, -1) elseif getPlayerSex(cid) == 0 then doSetCreatureOutfit(cid, {lookType = config.outfit_mergulhador[2], lookHead = config.random, lookBody = config.random, lookLegs = config.random, lookFeet = config.random}, -1) return true end if getCreatureOutfit(cid).lookType == config.outfit_mergulhador[1] or getCreatureOutfit(cid).lookType == config.outfit_mergulhador[2] then doChangeSpeed(cid, getCreatureSpeed(cid)+config.speed[2]) else doChangeSpeed(cid, getCreatureSpeed(cid)-config.speed[4]) end end if isWild(cid) or isSummon(cid) then poketype1 = pokes[getCreatureName(cid)].type poketype2 = pokes[getCreatureName(cid)].type2 velocidade = pokes[getCreatureName(cid)].agility if poketype1 == "water" or poketype2 == "water" or poketype1 == "ice" or poketype2 == "ice" then -- coloque aqui os tipos de pokémon que ganham velocidade na agua doChangeSpeed(cid, velocidade+config.speed[3]) else doChangeSpeed(cid, velocidade-config.speed[4]) end end return true end function onStepOut(cid) if isPlayer(cid) and getPlayerStorageValue(cid, config.storage) >= 1 then if getPlayerSex(cid) == 1 then doSetCreatureOutfit(cid, {lookType = config.outfit_normal[1], lookHead = config.random, lookBody = config.random, lookLegs = config.random, lookFeet = config.random}, -1) doChangeSpeed(cid, config.speed[1]) elseif getPlayerSex(cid) == 0 then doSetCreatureOutfit(cid, {lookType = config.outfit_normal[2], lookHead = config.random, lookBody = config.random, lookLegs = config.random, lookFeet = config.random}, -1) doChangeSpeed(cid, config.speed[1]) return true end end if isWild(cid)or isSummon(cid) then poketype1 = pokes[getCreatureName(cid)].type poketype2 = pokes[getCreatureName(cid)].type2 velocidade = pokes[getCreatureName(cid)].agility if poketype1 == "water" or poketype2 == "water" or poketype1 == "ice" or poketype2 == "ice" then -- coloque aqui os tipos de pokémon que ganham velocidade na agua doChangeSpeed(cid, velocidade-config.speed[3]) else doChangeSpeed(cid, velocidade+config.speed[4]) end end return true end -
isRiderOrFlyOrSurf In server
gabrielzika respondeu ao tópico de Theodorojose em Suporte OTServer Derivados
@Theodorojose mesmo esquema da outra função: function isWild(cid) return isMonster(cid) and not isSummon(cid) end -
isRiderOrFlyOrSurf In server
gabrielzika respondeu ao tópico de Theodorojose em Suporte OTServer Derivados
@Theodorojose em data/lib/050-function.lua coloca isso na ultima linha embaixo do ultimo end: function isRiderOrFlyOrSurf(cid) return getPlayerStorageValue(cid, 17001) > 0 or getPlayerStorageValue(cid, 17000) > 0 or getPlayerStorageValue(cid, 63215) > 0 end -
(Resolvido)Script de Anuncio
gabrielzika respondeu ao tópico de Pifafa em Suporte Tibia OTServer (Resolvidos)
@Pifafa firmeza mano! -
(Resolvido)Script de Anuncio
gabrielzika respondeu ao tópico de Pifafa em Suporte Tibia OTServer (Resolvidos)
@Pifafa Cria um arquivo chamado anuncio.lua em data/talkactions/scripts e cola isso dentro: local config = { storage = 19400, -- storage em que será salvo o tempo cor = "green", -- de acordo com o constant.lua da lib tempo = 60, -- em segundos itemid = 2159, --item que sera removido price = 1, -- quantidade de item que sera removido level = 1000 -- level necessario para poder utilizar o comando. } function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end if getPlayerLevel(cid) >= config.level then if getPlayerStorageValue(cid, config.storage) - os.time() <= 0 then if doPlayerRemoveItem(cid, config.itemid, config.price) then setPlayerStorageValue(cid, config.storage, os.time() + (config.tempo*1)) doBroadcastMessage(""..getCreatureName(cid).." [ANUNCIO]: "..param.."", config.cor) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Vc Falo Com Sucesso " ..config.tempo.. " second(s) espere.") else doPlayerSendCancel(cid, "Você precisa " ..config.price.. " Scarab Coins para falar novamente no Anuncio.") return true end else doPlayerSendCancel(cid, "Você Falo no Anuncio " ..(getPlayerStorageValue(cid, config.storage) - os.time()).. " seconds Espere.") return true end else doPlayerSendCancel(cid, "You have to be level " ..config.level.. " or more in order to use broadcast.") end end Tag: <talkaction words="/anuncio" event="script" value="anuncio.lua"/> Crédito pelo script: Kaleudd -
(Resolvido)Mudar Elemento dá Wand por Item
gabrielzika respondeu ao tópico de Gabrielk em Suporte Tibia OTServer (Resolvidos)
@Altairjr é noix bro -
(Resolvido)Mudar Elemento dá Wand por Item
gabrielzika respondeu ao tópico de Gabrielk em Suporte Tibia OTServer (Resolvidos)
@Altairjr espero que seja isso(não testei plx) local combat_values = { ["none"] = -1, ["ice"] = 1, ["fire"] = 2, ["earth"] = 3, ["energy"] = 4, ["holy"] = 5, ["death"] = 6, } local config = { storage = 101010, time_storage = 101011, price = 1000000, delay = 0, wands = {12629, 12655, 12661, 12662, 12663, 12664, 12665}, msg = { help = "Use o comando exemplo: !wand holy Efeitos disponíveis: ice, fire, earth, energy, holy, death, e none para desabilitar. A troca para outro elemento custa 1kk.", invalid = "Por favor, digite um tipo valido.", changed = "O elemento da wand foi trocado para %s.", nomoney = "Você não possui dinheiro.", delayed = "Você precisa esperar para trocar o efeito.", } } -- /////////////////////Requerimentos///////////////////-- local req_text = "You cannot use this command." -- Mensagem caso nao possua o item --/////////////////////////////////////////////////////-- function onSay(cid, words, param) local param = param:lower() local value = combat_values[param] local wand_left = getPlayerSlotItem(cid, CONST_SLOT_LEFT) local wand_right = getPlayerSlotItem(cid, CONST_SLOT_RIGHT) if wand_left.uid > 0 or wand_right.uid > 0 then if isInArray(config.wands, wand_left.itemid) or isInArray(config.wands, wand_right.itemid) then if wand_left.uid > 0 and isInArray(config.wands, wand_left.itemid) and (param == "help" or param == "") then doShowTextDialog(cid, wand_left.itemid, string.format(config.msg.help, config.price)) return true elseif wand_right.uid > 0 and isInArray(config.wands, wand_right.itemid) and (param == "help" or param == "") then doShowTextDialog(cid, wand_right.itemid, string.format(config.msg.help, config.price)) return true end if not value then doPlayerSendCancel(cid, config.msg.invalid) return true end if getPlayerMoney(cid) < config.price then doPlayerSendCancel(cid, config.msg.nomoney) return true end if getPlayerMoney(cid) < config.price then doPlayerSendCancel(cid, config.msg.nomoney) return true end if getCreatureStorage(cid, config.time_storage) > os.time() then doPlayerSendCancel(cid, config.msg.delayed) return true end doCreatureSetStorage(cid, config.storage, value) doCreatureSetStorage(cid, config.time_storage, os.time() + config.delay) doPlayerRemoveMoney(cid, config.price) doPlayerSendCancel(cid, string.format(config.msg.changed, param)) else doPlayerSendCancel(cid, req_text) end else doPlayerSendCancel(cid, req_text) end return true end -
(Resolvido)Mudar Elemento dá Wand por Item
gabrielzika respondeu ao tópico de Gabrielk em Suporte Tibia OTServer (Resolvidos)
são realmente o mesmo id? <wand id="12655" level="8" mana="10" min="700" max="850" type="holy" event="function" value="default"> e <wand id="12665" range="8" lvl="8" mana="10" enabled="1" exhaustion="0" script="donatestaff.lua"> um tá 12655 e outro 12665 '-' comenta os ids de todas as wands certinho aqui pra mim colocar só para algumas especificas usarem o !wand e sobre cobrar, não está cobrando?? wtf kk tem o doPlayerRemoveMoney(cid, config.price)
TibiaKing
Open Tibia Server
Quer aprender a criar seu próprio servidor de Tibia? Então está no lugar certo, aqui você encontrará milhares de tutorias, scripts, códigos, mapas e utilitários para que você possa fazer o seu próprio servidor de Tibia começando do zero.
Anuncie no TibiaKing
Precisa de mais visibilidade em seus projetos? Quer fazer um plano publicitário para o seu servidor? Anuncie no OTKing e faça sua divulgação, possuímos centenas de acessos simultâneos e milhares diários, com certeza será a sua solução!