Facebook
From Tony Araujo (OrochiElf), 3 Years ago, written in Lua.
Embed
Download Paste or View Raw
Hits: 75
  1. local pokesSurf = {
  2.         ["Poliwag"] = {lookType=629, speed = 420},
  3.         ["Poliwhirl"] = {lookType=488, speed = 580},
  4.         ["Seaking"] = {lookType=620, speed = 620},
  5.         ["Dewgong"] = {lookType=534, speed = 700},
  6.         ["Blastoise"] = {lookType=535, speed = 850},
  7.         ["Tentacruel"] = {lookType=536, speed = 750},
  8.         ["Lapras"] = {lookType=537, speed = 960},
  9.         ["Gyarados"] = {lookType=538, speed = 1050},
  10.         ["Omastar"] = {lookType=539, speed = 680},
  11.         ["Kabutops"] = {lookType=540, speed = 840},
  12.         ["Poliwrath"] = {lookType=541, speed = 680},
  13.         ["Vaporeon"] = {lookType=542, speed = 800},
  14.         ["Staryu"] = {lookType=617, speed = 485},
  15.         ["Starmie"] = {lookType=618, speed = 685},
  16.         ["Goldeen"] = {lookType=619, speed = 355},
  17.         ["Seadra"] = {lookType=621, speed = 655},
  18.         ["Golduck"] = {lookType=622, speed = 760},
  19.         ["Squirtle"] = {lookType=624, speed = 365},
  20.         ["Wartortle"] = {lookType=626, speed = 605},
  21.         ["Tentacool"] = {lookType=628, speed = 340},
  22.         ["Snorlax"] = {lookType=651, speed = 500},
  23.         ["Piplup"] = {lookType=1562, speed = 350},
  24.         ["Prinplup"] = {lookType=1561, speed = 400},
  25.         ["Empoleon"] = {lookType=1564, speed = 550},
  26.         ["Shiny Blastoise"] = {lookType=1009, speed = 935},
  27.         ["Shiny Tentacruel"] = {lookType=1365, speed = 825},
  28.         ["Shiny Gyarados"] = {lookType=1381, speed = 1155},
  29.         ["Shiny Vaporeon"] = {lookType=1032, speed = 880},
  30.         ["Shiny Seadra"] = {lookType=1383, speed = 720.5},
  31.         ["Shiny Tentacool"] = {lookType=1364, speed = 374},
  32.         ["Shiny Snorlax"] = {lookType=1386, speed = 550},
  33.         ["Mantine"] = {lookType=987, speed = 820},
  34.         ["Totodile"] = {lookType=988, speed = 360},
  35.         ["Croconow"] = {lookType=989, speed = 590},
  36.         ["Feraligatr"] = {lookType=996, speed = 900},
  37.         ["Marill"] = {lookType=990, speed = 340},
  38.         ["Azumarill"] = {lookType=993, speed = 680},
  39.         ["Quagsire"] = {lookType=994, speed = 740},
  40.         ["Kingdra"] = {lookType=995, speed = 1020},
  41.         ["Octillery"] = {lookType=992, speed = 600},
  42.         ["Wooper"] = {lookType=991, speed = 315},
  43.         ["Buizel"] = {lookType=1511, speed = 315},
  44.         ["Floatzel"] = {lookType=1509, speed = 350},
  45.         ["Gastrodon east"] = {lookType=1573, speed = 200},
  46.         ["Gastrodon"] = {lookType=1572, speed = 200},
  47.         ["Finneon"] = {lookType=1544, speed = 120},
  48.         ["Lumineon"] = {lookType=1543, speed = 120},
  49.         ["Walrein"] = {lookType=1757, speed = 120},
  50.         ["Wingull"] = {lookType=1751, speed = 120},
  51.         ["Wailmer"] = {lookType=1750, speed = 120},
  52.         ["Swampert"] = {lookType=1746, speed = 120},
  53.         ["Ludicolo"] = {lookType=1743, speed = 120},
  54.         ["Sharpedo"] = {lookType=1739, speed = 120},
  55.         ["Gorebys"] = {lookType=1734, speed = 120},
  56.         ["Huntail"] = {lookType=1733, speed = 120},
  57.         ["Relicanth"] = {lookType=1753, speed = 120},
  58.         ["Linoone"] = {lookType=1730, speed = 120},
  59.         ["Spheal"] = {lookType=1729, speed = 120},
  60.         ["Mudkip"] = {lookType=1728, speed = 120},
  61.         ["Whiscash"] = {lookType=1727, speed = 120},
  62.         ["Marshtomp"] = {lookType=1726, speed = 120},
  63.         ["Luvdisc"] = {lookType=1725, speed = 120},
  64.         ["Lombre"] = {lookType=1724, speed = 120},
  65.         ["Barboach"] = {lookType=1723, speed = 120},
  66.         ["Finneon"] = {lookType=1544, speed = 120},
  67.         ["Shiny Lapras"] = {lookType=2060, speed = 1200},
  68. }
  69.  
  70. function onStepIn(cid, item, position, fromPosition)
  71.         if isMonster(cid) and isSummon(cid) then
  72.                 return doTeleportThing(cid, getThingPos(getCreatureMaster(cid)))
  73.         end
  74.         if not isPlayer(cid) or getCreatureStorage(cid, 17000) >= 1 then
  75.                 return true
  76.         end
  77.         if getPlayerStorageValue(cid, 63215) <= 0 then
  78.                 if getPlayerStorageValue(cid, 5700) == 1 then
  79.                         return doPlayerSendCancel(cid, "You can't do that while is mount in a bike!")
  80.                 elseif getPlayerStorageValue(cid, 6598754) == 1 or getPlayerStorageValue(cid, 6598755) == 1 then
  81.                         return doPlayerSendCancel(cid, "You can't do it while in the PVP Zone!")
  82.                 end
  83.                 local summon = getCreatureSummons(cid)[1]
  84.                 if not isCreature(summon) then
  85.                         doTeleportThing(cid, fromPosition, true)
  86.                         return doPlayerSendCancel(cid, "You need a pokemon to surf.")
  87.                 end
  88.                 if not pokesSurf[getCreatureName(summon)] then
  89.                         doTeleportThing(cid, fromPosition, true)
  90.                         return doPlayerSendCancel(cid, "Your pokemon cant surf.")
  91.                 end
  92.                
  93.                 local pokename = getCreatureName(summon)
  94.                 if getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke") and getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke") == "Ditto" then
  95.                         pokename = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "copyName")
  96.                 end
  97.                 doSetCreatureOutfit(cid, {lookType = pokesSurf[pokename].lookType}, -1)
  98.                 setPlayerStorageValue(cid, 63215, 1)
  99.  
  100.                 doChangeSpeed(cid, -(getCreatureSpeed(cid)))
  101.                 doChangeSpeed(cid,  pokesSurf[getCreatureName(summon)].speed)
  102.                 doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "new_level", getMonsterLevel(summon))
  103.                 doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "new_experience", getMonsterExperience(summon))
  104.                 doRemoveCreature(summon)
  105.                
  106.                 if getItemAttribute(getPlayerSlotItem(cid, 8).uid, "nick") then
  107.                         doCreatureSay(cid, "Let's surf, " .. getItemAttribute(getPlayerSlotItem(cid, 8).uid, "nick"), 1)
  108.                 else
  109.                         doCreatureSay(cid, "Let's surf, " .. pokename, 1)
  110.                 end
  111.                 if getItemAttribute(getPlayerSlotItem(cid, 8).uid, "boost") and getItemAttribute(getPlayerSlotItem(cid, 8).uid, "boost") >= 50 and getPlayerStorageValue(cid, 42368) <= 0 then
  112.                    addEvent(sendAuraEffect, 120, cid, auraSyst[getItemAttribute(getPlayerSlotItem(cid, 8).uid, "aura")])    --alterado v1.8
  113.                 end
  114.                 if useOTClient then
  115.                    doPlayerSendCancel(cid, '12//,hide') --alterado v1.8
  116.                 end
  117.         end
  118. end