• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Scripter I need scripter who rewrite scripts from 0.3.7 to 1.4.2.

OTcreator

Active Member
Joined
Feb 14, 2022
Messages
425
Solutions
1
Reaction score
44
Hi,
I need someone to rewrite some scripts for me from 0.3.7 to TFS 1.4.2.
Most (as not all) are certainly very simple for a programmer.
It would be nice if someone would do it without charge, but we can always make a deal.
The scripts are duplicated, so there are not many.
 
Hi,
I need someone to rewrite some scripts for me from 0.3.7 to TFS 1.4.2.
Most (as not all) are certainly very simple for a programmer.
It would be nice if someone would do it without charge, but we can always make a deal.
The scripts are duplicated, so there are not many.
How many scripts? add me in discord > underewar
 
Hi,
I need someone to rewrite some scripts for me from 0.3.7 to TFS 1.4.2.
Most (as not all) are certainly very simple for a programmer.
It would be nice if someone would do it without charge, but we can always make a deal.
The scripts are duplicated, so there are not many.

How many scripts we talk about
If its something like 20x I'll do it for free
 
Nice keep it up and if you cant rewrite one just let me know
( im not a lua expert but I can prob help at some point )

Thank you! I have in this moment 3-5 scripts.

1.) DOORS

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)

local pos = getCreaturePosition(cid)
    if (item.uid == 5659) and getPlayerStorageValue(cid,2487) >= 1 then
    local pos = getPlayerPosition(cid)
    if pos.y < toPosition.y then
        doTeleportThing(cid, {x=toPosition.x,y=toPosition.y+1,z=toPosition.z})
        doSendMagicEffect(getPlayerPosition(cid), 12)
    elseif pos.y > toPosition.y then
        doTeleportThing(cid, {x=toPosition.x,y=toPosition.y-1,z=toPosition.z})
        doSendMagicEffect(getPlayerPosition(cid), 12)
    end
    end
    end

2.) DHQ STONE

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)   
    wall_pos = {x=357, y=345, z=10, stackpos=1}   
    wall = getThingfromPos(wall_pos)   
    newPos = {x=397, y=348, z=9}
    teleportPos = {x=359, y=344, z=10}   
  
        if item.itemid == 1945 and wall.itemid == 1354 then 
            doSendMagicEffect(wall_pos, 10)   
                doRemoveItem(wall.uid, 1)   
                doTransformItem(item.uid, 1946)   
                addEvent(createWale, 30 * 1000)
                doCreateTeleport(1387, newPos, teleportPos)               
                doPlayerSendTextMessage(cid,22,"You have only 30 second to get reward!.")
        elseif item.itemid == 1946 then
            doTransformItem(item.uid, 1945)   
        else
            doPlayerSendCancel(cid,"Sorry, not possible.")
        end   
    return TRUE 
end   
  
function createWale()   
    doCreateItem(1354, wall_pos) 
    doSendMagicEffect(wall_pos, 10) 
    doRemoveItem(getThingfromPos({x=359, y=344, z=10, stackpos=1}).uid,1)
end

3.) HOTA HELMET

Lua:
--Full Ancient Helmet Quest by Evil Hero--

function onUse(cid, item, frompos, item2, topos)
oldhelmetpos = {x = 1320, y = 662, z = 15, stackpos=2}
newhelmetpos = {x = 1320, y = 661, z = 15, stackpos=2}
rubypos = {x = 1320, y = 660, z = 15, stackpos=2}
getoldhelmet = getThingfromPos(oldhelmetpos)
getnewhelmet = getThingfromPos(newhelmetpos)
getruby = getThingfromPos(rubypos)




if item.uid == 3331 and item.itemid == 1945 and getoldhelmet.itemid == 2342 and getruby.itemid == 2156 then
 doRemoveItem(getoldhelmet.uid,1)
doSendMagicEffect(oldhelmetpos,23)
 doRemoveItem(getruby.uid,1)
doSendMagicEffect(rubypos,23)
 doCreateItem(2343,1,newhelmetpos)
doSendMagicEffect(getnewhelmet,23)
 else
doPlayerSendTextMessage(cid,22,"You need a small rubby or helmet to incrase!")
end
return 1
end

4.) HOTA STONE

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)   
    wall_pos = {x = 1325, y = 658, z = 15, stackpos=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20}   
    wall = getThingfromPos(wall_pos)   
  
  
        if item.itemid == 1945 and getItemCountFromPosition(1061, wall_pos) == 0 then 
            doCreateItem(1061, wall_pos) 
            addEvent(createWa, 60 * 1000) 
            doPlayerSendTextMessage(cid,22,"You have only 60 second after wall disappear!")
            doTransformItem(item.uid, 1946) 
        else
            doPlayerSendCancel(cid,"Wait to wall remove.")
            doTransformItem(item.uid, 1945)
        end   
    return TRUE 
end   

function createWa()   
      doRemoveItem(getThingfromPos(wall_pos).uid)
      doSendMagicEffect(wall_pos, 10) 
end

5.) YALAHAR QUEST ROOM

Lua:
function onUse(cid, item, frompos, item2, topos)

--Config-->
local statue_pos = {x = 1185, y = 480, z = 11}
local portal_quest01_pos = {x = 1185, y = 489, z = 11, stackpos = 1}
local portal_quest02_pos = {x = 1186, y = 491, z = 10, stackpos = 2}
local new_portal_pos = {x = 1185, y = 473, z = 11, stackpos = 1}
local new_pos = {x = 1186, y = 507, z = 9}
--End Config-->

function Potwory1()
if math.random (1,8) == 4 then
doCreateMonster('Rift Brood', {x = statue_pos.x+1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Brood', {x = statue_pos.x-1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Brood', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Worm', {x = statue_pos.x-1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Worm', {x = statue_pos.x+1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Worm', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Worm', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
else
doCreateMonster('Rift Brood', {x = statue_pos.x+1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Brood', {x = statue_pos.x-1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Brood', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Worm', {x = statue_pos.x-1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Worm', {x = statue_pos.x+1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Worm', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Worm', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
end
end

function Potwory2()
doCreateMonster('Rift Brood', {x = statue_pos.x-1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Brood', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Worm', {x = statue_pos.x-1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Worm', {x = statue_pos.x+1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})

end

function Potwory3()
doCreateMonster('Rift Scythe', {x = statue_pos.x-1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Scythe', {x = statue_pos.x+1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Scythe', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
doCreateMonster('Rift Scythe', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})

end

function Potwory4()
doCreateMonster('Azerus', {x = statue_pos.x, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doCreateMonster('War Golem', {x = statue_pos.x+1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doCreateMonster('War Golem', {x = statue_pos.x-1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doCreateMonster('War Golem', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
doCreateMonster('War Golem', {x = statue_pos.x-1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
end

function createOrb()   
      doRemoveItem(getThingfromPos(portal_quest02_pos).uid,1)
      return true
end

function RemoveAll()
doRemoveItem(getThingfromPos(portal_quest01_pos).uid,1)
doRemoveItem(getThingfromPos(portal_quest02_pos).uid,1)
end

if getItemCountFromPosition(9772, portal_quest02_pos) == 0 and item.uid == 1968 and getThingfromPos(portal_quest01_pos).itemid ~= 9772 then
doCreateItem(9772,1,portal_quest02_pos)
addEvent(createOrb, 600 * 1000) 
addEvent(Potwory1, 0)
addEvent(Potwory2, 60 * 1000)
addEvent(Potwory2, 90 * 1000)
addEvent(Potwory3, 120 * 1000)
addEvent(Potwory4, 180 * 1000)
else
doCreatureSay(cid, "Monsters attack automatic! You have to wait 10 minutes before this globe will charge.", TALKTYPE_ORANGE_1)
end
return TRUE
end
 
1) Doors

Lua:
local action = Action()

function action.onUse(player, item, fromPos, target, toPos, isHotkey)
    if player:getStorageValue(2487) < 1 then
        return true
    end

    local pos = player:getPosition()
    if pos.y < toPos.y then
        local newPos = Position(pos.x, pos.y + 1, pos.z)
        player:teleportTo(newPos)
        newPos:sendMagicEffect(CONST_ME_TELEPORT)
    elseif pos.y > toPos.y then
        local newPos = Position(pos.x, pos.y - 1, pos.z)
        player:teleportTo(newPos)
        newPos:sendMagicEffect(CONST_ME_TELEPORT)
    end
    return true
end

action:uid(5659)
action:register()
 
2) DHQ STONE
Lua:
local teleportId = 1387
local newTeleportPosition = Position(359, 344, 10)
local newTeleportDestPosition = Position(397, 348, 9)
local wallId = 1354
local wallPosition = Posiion(357, 345, 10)

local function createWale()
    local wall = Game.createItem(wallId, 1, wallPosition)
    if wall then
        wallPosition:sendMagicEffect(10)
        local teleport = Tile(newTeleportPosition):getItemById(teleportId)
        if teleport then
            teleport:remove()
        end
    end
end

local action = Action()

function action.onUse(player, item, fromPos, target, toPos, isHotkey)
    if item:getId() == 1945 then
        local wall = Tile(wallPosition):getItemById(wallId)
        if wall then
            wallPosition:sendMagicEffect(10)
            wall:remove()
            addEvent(createWale, 30 * 1000)
            local teleport = Game.createItem(teleportId, 1, newTeleportPosition)
            if teleport then
                teleport:setDestination(newTeleportDestPosition)
                player:sendTextMessage(22, "You have only 30 seconds to get reward!")
            end
        end
        item:transform(1946)
    elseif item:getId() == 1946 then
        item:transform(1945)
    else
        player:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
    end
    return true
end

--action:aid(AID)
--action:uid(UID)
action:register()
Post automatically merged:

3) HOTA HELMET
Lua:
local oldHelmetPosition = Position(1320, 662, 15)
local newHelmetPosition = Position(1320, 661, 15)
local rubyPosition = Position(1320, 660, 15)
local action = Action()

function action.onUse(player, item, fromPos, target, toPos, isHotkey)
    if item:getId() == 1945 then
        local oldHelmet = Tile(oldHelmetPosition):getItemById(2342)
        local ruby = Tile(rubyPosition):getItemById(2156)
        if not oldHelmet or not ruby then
            player:sendTextMessage(22, "You need a small rubby or helmet to incrase!")
            return true
        end

        oldHelmet:getPosition():sendMagicEffect(23)
        oldHelmet:remove(1)
        ruby:getPosition():sendMagicEffect(23)
        ruby:remove(1)

        newHelmetPosition:sendMagicEffect(23)
        Game.createItem(2343, 1, newHelmetPosition)
        item:transform(1946)
    elseif item:getId() == 1946 then
        item:transform(1945)
    end
    return true
end

action:uid(3331)
action:register()
 
Last edited:
Thank you for all reply.
I need rewrite quest system from 0.3.7 [OTX2]
This is best sytem, becouse i can create quests in RME in bookcase etc.
 

Attachments

Back
Top