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

I personally compiled that file, show us the viruscan results.
https://www.virustotal.com/pt/file/...6c8ddcf8e41689604aa5dab10cf909a2d4b/analysis/
eSg5u2m.png
 
Can't edit my last post :mad:

This is the code I have to match with client:
Code:
//load RSA key
    std::cout << ":: Loading RSA key..." << std::flush;
    const char* p("14299623962416399520070177382898895550795403345466153217470516082934737582776038882967213386204600674145392845853859217990626450972452084065728686565928113");
    const char* q("7630979195970404721891201847792002125535401292779123937207447574596692788513647179235335529307251350570728407373705564708871762033017096809910315212884101");
    const char* d("46730330223584118622160180015036832148732986808519344675210555262940258739805766860224610646919605860206328024326703361630109888417839241959507572247284807035235569619173792292786907845791904955103601652822519121908367187885509270025388641700821735345222087940578381210879116823013776808975766851829020659073");
    g_RSA.setKey(p, q, d);
 
Can't edit my last post :mad:

This is the code I have to match with client:
Code:
//load RSA key
    std::cout << ":: Loading RSA key..." << std::flush;
    const char* p("14299623962416399520070177382898895550795403345466153217470516082934737582776038882967213386204600674145392845853859217990626450972452084065728686565928113");
    const char* q("7630979195970404721891201847792002125535401292779123937207447574596692788513647179235335529307251350570728407373705564708871762033017096809910315212884101");
    const char* d("46730330223584118622160180015036832148732986808519344675210555262940258739805766860224610646919605860206328024326703361630109888417839241959507572247284807035235569619173792292786907845791904955103601652822519121908367187885509270025388641700821735345222087940578381210879116823013776808975766851829020659073");
    g_RSA.setKey(p, q, d);

No, you've to generate your own RSA key http://vapus.net/generatersa
 
So I've created a talk action that enables a certain amount of protection through player loss (sort of like blessings) except just a little more basic for now.

As of right now, items, skills and containers still drop. Even though the PlayerLoss is set and saved.. so I have no idea what is causing this. I have looked through player.cpp and the parts where the item loss does get defined, it seems a bit iffy. Any help is appreciated.

onLogin Creature Script:
Code:
    if isPlayer(cid) and getPlayerLevel(cid) < 30 then
            print("Low Level Loss Protection")
            setPlayerStorageValue(cid, 13337, 4)
            doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
            doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, 0)
            doPlayerSetLossPercent(cid, PLAYERLOSS_SKILL, 0)
            doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)
            doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0)
            doPlayerSendTextMessage(cid, 18, "Protection: Your Experience and Item Loss is reduced to 0% while you are under level 30!")
            doSavePlayer(cid)
    end

TalkAction Code for First Blessing that uses the same method:
Code:
function onSay(cid, words, param)
        if getPlayerStorageValue(cid, 13337) == 1 then
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You already have the first blessing!")
        elseif getPlayerStorageValue(cid, 13337) == 2 or getPlayerStorageValue(cid, 13337) == 3 or getPlayerStorageValue(cid, 13337) == 4 or getPlayerStorageValue(cid, 13337) == 5 then
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You already have a stronger blessing!")
        elseif doPlayerRemoveMoney(cid, 7500) then
            setPlayerStorageValue(cid, 13337, 1)
            doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 70)
            doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, 70)
            doPlayerSetLossPercent(cid, PLAYERLOSS_SKILL, 70)
            doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 7)
            doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 70)
            doSavePlayer(cid)
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You have successfully purchased the first blessing for 70% Loss Percent.")
        else
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You dont have enough gold coins {7,500gp} to purchase this!")
        end
    return false
end

Sources: https://github.com/TwistedScorpio/OTHire/tree/fe351b2cbfdc1bfe1148822bf83eebf7ca01791d

If anyone can help find and solve the problem as I have not been able to find it over the past week of trying different methods, thanks for any help in advance!

Regards,
Extrodus
 
problem NEED MSVCP100D.dll HELP !
probably you are using the exe included in pack, isn't compiled in release mode and you probably need to install vs c++ express, it solve all problems
 
Back
Top