ctrl + arrow to walk throw 0.4 /8.6

magista

RL name " Amir reda "
Joined
Jul 22, 2011
Messages
148
Best answers
1
Reaction score
18
Location
Egypt
could any1 help with walking with ctrl and arrow ?? sure for gms i searched alot but found nothing
 
OP
magista

magista

RL name " Amir reda "
Joined
Jul 22, 2011
Messages
148
Best answers
1
Reaction score
18
Location
Egypt
i'm........ i just need to know where i will edit (which file)
 
Last edited:

Xikini

I whore myself out for likes
Premium User
Joined
Nov 17, 2010
Messages
4,172
Best answers
174
Reaction score
2,227
try creaturescript.cpp (might be called creatureevent.cpp)
but really, I have no idea. :(
 

Nubaza

LUA Scripter
Joined
Jun 5, 2011
Messages
322
Best answers
1
Reaction score
17
Location
New Zeland
Too late!
Replace:
Code:
bool Game::playerTurn(uint32_t playerId, Direction dir)

{
    Player* player = getPlayerByID(playerId);
    if(!player || player->isRemoved())
        return false;

    if(internalCreatureTurn(player, dir))
    {
        player->setIdleTime(0);
        return true;
    }

    if(player->getDirection() != dir || !player->hasCustomFlag(PlayerCustomFlag_CanTurnhop))
        return false;

    Position pos = getNextPosition(dir, player->getPosition());
    Tile* tile = map->getTile(pos);
    if(!tile || !tile->ground)
        return false;

    player->setIdleTime(0);
    ReturnValue ret = tile->__queryAdd(0, player, 1, FLAG_IGNOREBLOCKITEM);
    if (ret != RET_NOTENOUGHROOM && (ret != RET_NOTPOSSIBLE || player->hasCustomFlag(PlayerCustomFlag_CanMoveAnywhere))
        && (ret != RET_PLAYERISNOTINVITED || player->hasFlag(PlayerFlag_CanEditHouses)))
        return internalTeleport(player, pos, true);

    player->sendCancelMessage(ret);
    return false;
}
Source: OTX 2xs2
 

abofoulla

Member
Joined
Apr 24, 2017
Messages
34
Best answers
1
Reaction score
0
XML:
<group id="6" name="AdminiStrador" flags="57172457136120" customFlags="4194303" access="6" violationReasons="23" nameViolationFlags="170" statementViolationFlags="213" depotLimit="5000" maxVips="500" outfit="302"/>
add this in XML/groups.xml
magista
 
Top