• 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!

[7.72] OTHire 0.0.1b - Based in OTServ Trunk (Latest)

Yes it was thank you! What map did u se for this server?
Because i tried with several real maps but it just cant load any map!
Would you help me out whith this? i'll really aprecciate it
There isn't a good real map around here that you can download and run with OTHire. All of them need a lot of work, clean map, there is no quests, most of signs are empty, etc.
Then is the npc problem, actions needed, creaturescripts, etc
Then is the functions needed not in othire, a lot of work in othire sources to get a decent RL server....
Our RL server based on OTHire has hundred (maybe thousands) of hours behind from 3 people working on it, and it needs a lot more. We want an exact copy of 7.72 version.
It's not easy.

But, no one said that it was imposible. Effort is the way to success.
 
Thank you for your advice hehe, i used to be in this otservet thing years ago, i hosted my own server with just 100 people online but it was just a lot of fun, mapping, scripting, making the server more FUN for the players, thats why i want to do that again, im currently working on several old servers/maps i found on the internet, yes all of them have bugs, but with hard work i think i can do something special for the community.
:D
 
Thank you for your advice hehe, i used to be in this otservet thing years ago, i hosted my own server with just 100 people online but it was just a lot of fun, mapping, scripting, making the server more FUN for the players, thats why i want to do that again, im currently working on several old servers/maps i found on the internet, yes all of them have bugs, but with hard work i think i can do something special for the community.
:D
its much harder getting ppl to join these days without advertising
 
When compiling this error happens



========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========1>c:\users\usuario\desktop\othire-master\source\otpch.h(17): fatal error C1083: Cannot open include file: 'libxml/xmlmemory.h': No such file or directory1> otpch.cpp1>------ Build started: Project: server, Configuration: Release Win32 ------

What i do?
 
I hope anyone can help me. I've taken these 3 functions from otxserver:
Lua:
isPartyLeader(cid)
isPartySharedExperienceActive(cid)
setPartySharedExperience(cid, value)
Put them in luascript.cpp and luascript.h, but it still gives me "party member is inactive" everytime I try to enable party shared experience by talkaction.
Any suggestions?
 
@Ezzz

when the player "eat a meal" does not appear message. Example: "humm"

It has the codes in live actions.xml but does not work!
 
check your food.lua and lib/actions.lua

lib/actions.lua

Code:
FOODS = {   
    [2328] = {84, "Gulp."},    [2362] = {48, "Yum."}, [2666] = {180, "Munch."}, [2667] = {144, "Munch."},
    [2668] = {120, "Mmmm."}, [2669] = {204, "Munch."}, [2670] = {48, "Gulp."}, [2671] = {360, "Chomp."},
    [2672] = {720, "Chomp."}, [2673] = {60, "Yum."}, [2674] = {72, "Yum."}, [2675] = {156, "Yum."},
    [2676] = {96, "Yum."}, [2677] = {12, "Yum."}, [2678] = {216, "Slurp."}, [2679] = {12, "Yum."},
    [2680] = {24, "Yum."}, [2681] = {108, "Yum."}, [2682] = {240, "Yum."}, [2683] = {204, "Munch."},
    [2684] = {60, "Crunch."}, [2685] = {72, "Munch."}, [2686] = {108, "Crunch."}, [2687] = {24, "Crunch."},
    [2688] = {24, "Mmmm."}, [2689] = {120, "Crunch."}, [2690] = {72, "Crunch."}, [2691] = {96, "Crunch."},
    [2695] = {72, "Gulp."}, [2696] = {108, "Smack."}, [2769] = {60, "Crunch."}, [2787] = {108, "Crunch."},
    [2788] = {48, "Crunch."}, [2789] = {264, "Crunch."}, [2790] = {360, "Crunch."}, [2791] = {108, "Crunch."},
    [2792] = {72, "Crunch."}, [2793] = {144, "Crunch."}, [2794] = {36, "Crunch."}, [2795] = {432, "Crunch."},
    [2796] = {300, "Crunch."},     [5097] = {48, "Yum."}, [5678] = {96, "Gulp."}, [6125] = {96, "Mmmm."},
    [6278] = {120, "Mmmm."}, [6279] = {180, "Mmmm."}, [6393] = {144, "Mmmm."}, [6394] = {180, "Mmmm."},
    [6501] = {240, "Mmmm."}, [6541] = {72, "Gulp."}, [6542] = {72, "Gulp."}, [6543] = {72, "Gulp."},
    [6544] = {72, "Gulp."}, [6545] = {72, "Gulp."}, [6569] = {12, "Mmmm."}, [6574] = {60, "Mmmm."},
    [7158] = {300, "Munch."}, [7159] = {180, "Munch."}, [7372] = {0, "Yummy."}, [7373] = {0, "Yummy."},
    [7374] = {0, "Yummy."},    [7375] = {0, "Yummy."}, [7376] = {0, "Yummy."}, [7377] = {0, "Yummy."}
}

food.lua

Code:
local MAX_FOOD = 1200

function onUse(cid, item, frompos, item2, topos)
    if FOODS[item.itemid] == nil then
        return false
    end

    local size = FOODS[item.itemid][1]
    local sound = FOODS[item.itemid][2]

    if (getPlayerFood(cid) + size > MAX_FOOD) then
        doPlayerSendCancel(cid, "You are full.")
        return true
    end
    doPlayerFeed(cid, size)
    doRemoveItem(item.uid, 1)

    return true

end
 
lib/actions.lua

Code:
FOODS = {  
    [2328] = {84, "Gulp."},    [2362] = {48, "Yum."}, [2666] = {180, "Munch."}, [2667] = {144, "Munch."},
    [2668] = {120, "Mmmm."}, [2669] = {204, "Munch."}, [2670] = {48, "Gulp."}, [2671] = {360, "Chomp."},
    [2672] = {720, "Chomp."}, [2673] = {60, "Yum."}, [2674] = {72, "Yum."}, [2675] = {156, "Yum."},
    [2676] = {96, "Yum."}, [2677] = {12, "Yum."}, [2678] = {216, "Slurp."}, [2679] = {12, "Yum."},
    [2680] = {24, "Yum."}, [2681] = {108, "Yum."}, [2682] = {240, "Yum."}, [2683] = {204, "Munch."},
    [2684] = {60, "Crunch."}, [2685] = {72, "Munch."}, [2686] = {108, "Crunch."}, [2687] = {24, "Crunch."},
    [2688] = {24, "Mmmm."}, [2689] = {120, "Crunch."}, [2690] = {72, "Crunch."}, [2691] = {96, "Crunch."},
    [2695] = {72, "Gulp."}, [2696] = {108, "Smack."}, [2769] = {60, "Crunch."}, [2787] = {108, "Crunch."},
    [2788] = {48, "Crunch."}, [2789] = {264, "Crunch."}, [2790] = {360, "Crunch."}, [2791] = {108, "Crunch."},
    [2792] = {72, "Crunch."}, [2793] = {144, "Crunch."}, [2794] = {36, "Crunch."}, [2795] = {432, "Crunch."},
    [2796] = {300, "Crunch."},     [5097] = {48, "Yum."}, [5678] = {96, "Gulp."}, [6125] = {96, "Mmmm."},
    [6278] = {120, "Mmmm."}, [6279] = {180, "Mmmm."}, [6393] = {144, "Mmmm."}, [6394] = {180, "Mmmm."},
    [6501] = {240, "Mmmm."}, [6541] = {72, "Gulp."}, [6542] = {72, "Gulp."}, [6543] = {72, "Gulp."},
    [6544] = {72, "Gulp."}, [6545] = {72, "Gulp."}, [6569] = {12, "Mmmm."}, [6574] = {60, "Mmmm."},
    [7158] = {300, "Munch."}, [7159] = {180, "Munch."}, [7372] = {0, "Yummy."}, [7373] = {0, "Yummy."},
    [7374] = {0, "Yummy."},    [7375] = {0, "Yummy."}, [7376] = {0, "Yummy."}, [7377] = {0, "Yummy."}
}

food.lua

Code:
local MAX_FOOD = 1200

function onUse(cid, item, frompos, item2, topos)
    if FOODS[item.itemid] == nil then
        return false
    end

    local size = FOODS[item.itemid][1]
    local sound = FOODS[item.itemid][2]

    if (getPlayerFood(cid) + size > MAX_FOOD) then
        doPlayerSendCancel(cid, "You are full.")
        return true
    end
    doPlayerFeed(cid, size)
    doRemoveItem(item.uid, 1)

    return true

end
In food.lua, above doPlayerFeed(cid, size) add:
Code:
doCreatureSay(cid, sound)
 
I testing script...

sewer grate switch!

actions.xml
Code:
    <action uniqueid="3009" script="rook/sewer grate switch.lua" />
    <action uniqueid="3010" script="rook/sewer grate switch.lua" />

actions/script/rook/sewer grate switch

Code:
function onUse(cid, item, frompos, item2, topos)
    tile1 = {x = 32100, y = 32205, z = 8, stackpos = 1}
    tile2 = {x = 32101, y = 32205, z = 8, stackpos = 1}
    local playerTile = {x = 32100, y = 32205, z = 8}
    local playerTile1 = {x = 32101, y = 32205, z = 8}
    gettile1 = getThingfromPos(tile1)
    gettile2 = getThingfromPos(tile2)
    if item.itemid == 1945 then
        for i = 1133, 1134 do
        doTransformItem(i, 1946)
        end
        doCreateItem(493,1,tile1)
        doCreateItem(493,1,tile2)
        doCreateItem(4799,1,tile1)
        doCreateItem(4797,1,tile2)
        if isCreature(getTopCreature(playerTile).uid) then
            doTeleportThing(getTopCreature(playerTile).uid, {x = 32102, y = 32205, z = 8})
        end
        if isCreature(getTopCreature(playerTile1).uid) then
            doTeleportThing(getTopCreature(playerTile1).uid, {x = 32102, y = 32205, z = 8})
        end
    elseif item.itemid == 1946 then
        for i = 1133, 1134 do
        doTransformItem(i, 1945)
        end
        doCreateItem(1284,1,tile1)
        doCreateItem(1284,1,tile2)
        doRemoveItem(4799,1,tile1)       
        doRemoveItem(gettile2.uid,1)
    else
        doPlayerSendCancel(cid,"Sorry, not possible.")
    end
    return doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
    end

erro my distro;

Code:
Lua Script Error: [Action Interface]
data/actions/scripts/rook/sewer grate switch.lua:onUse

luaDoTransformItem(). Item not found

which version of the language of this source?
 
I've been trying to get "party shared exp" working, using the talkaction Nottinghster posted here b4 (same as RlMap77x/otxserv). I've gotten 3 functions from luascript.cpp and luascript.h from their files, the few things I did modify were:
Code:
LuaInterface --to> LuaScriptInterface
getEnv() --to> getScriptEnv();
It doesn't work for me. Everytime I try to enable the exp share by talkaction I receive this message with the char party leader: "Shared Experience has been activated, but some members of your party are inactive.";
I tried one million different things for hours, like replacing files or modifying them on sources based on otxserv, but as I'm not a programmer myself, it just got messed up at some point, even though I thought was making progress. Does anyone can give me a hint, on wich files should I try to get this Party Shared Exp to work? Was it right on luascript files all the time? Thx
 
Back
Top