Jump to content
Close

gabrielzika

Member
  • Content Count

    484
  • Joined

  • Last visited

  • Days Won

    9

gabrielzika last won the day on March 23

gabrielzika had the most liked content!

About gabrielzika

  • Rank
    Nunca Desista
  • Birthday 03/07/1999

Profile Information

  • Gender
    Masculino
  • Localization
    itatiba
  • I am
    Scripter
  • My character
    [ADM] Garden
  • Favorite OTServ
    www.otpokemonxy.net
  • Bot preferred
    Não Uso
  • Interests
    www.otpokemonxy.net

Recent Profile Visitors

2200 profile views
  1. @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
  2. @louco3626 vc criou o arquivo neste local?? data/movements/scripts tem como enviar prints?
  3. @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
  4. @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>
  5. @louco3626 qual funcionou? cita ai que eu arrumo pra tu
  6. Muito bom o module mano, parabéns!!
  7. @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
  8. @louco3626Fala os ids dos pisos né mano, id do piso q ta ai e do piso q ele vai transformar
  9. @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á
  10. @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"/>

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.

Redes Sociais

Anuncie no Tibia King

Precisa de mais visibilidade em seus projetos? Quer fazer um plano publicitário para o seu servidor? Anuncie no Tibia King e faça sua divulgação, possuímos centenas de acessos simultâneos e milhares diários, com certeza será a sua solução!

×
×
  • Create New...