• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Invisible outfit

Dominik ms

Member
Joined
Jan 20, 2010
Messages
424
Reaction score
6
How to remove changing outfit from Invisible?? (i want normal outfit, not stars!). Where is this function??

I want be invisible forever for some monster, cant attack me.

And second.
How to check, if player have defensive mode then my player have storage value 1 (on right monitor, there where is my eq, offensive, balance, defensive fighting)
 
Last edited:
You want outfit like GameMaster /ghost - Players cant view you - 100% invisible ?

Or

You want outfit like Warlock ? Invisible on 1 minute ?
 
How to remove changing outfit from Invisible?? (i want normal outfit, not stars!). Where is this function??
I want be invisible forever for some monster, cant attack me.

config.lua
Code:
ghostModeInvisibleEffect = false


And second.
How to check, if player have defensive mode then my player have storage value 1 (on right monitor, there where is my eq, offensive, balance, defensive fighting)

protocolgame.cpp
Code:
void ProtocolGame::parseFightModes(NetworkMessage& msg)
{
	uint8_t rawFightMode = msg.get<char>(); //1 - offensive, 2 - balanced, 3 - defensive
	uint8_t rawChaseMode = msg.get<char>(); //0 - stand while fightning, 1 - chase opponent
	uint8_t rawSecureMode = msg.get<char>(); //0 - can't attack unmarked, 1 - can attack unmarked

	chaseMode_t chaseMode = CHASEMODE_STANDSTILL;
	if(rawChaseMode == 1)
		chaseMode = CHASEMODE_FOLLOW;

	fightMode_t fightMode = FIGHTMODE_ATTACK;
	if(rawFightMode == 2)
		fightMode = FIGHTMODE_BALANCED;
	else if(rawFightMode == 3)
		fightMode = FIGHTMODE_DEFENSE;

	secureMode_t secureMode = SECUREMODE_OFF;
	if(rawSecureMode == 1)
		secureMode = SECUREMODE_ON;

	addGameTaskTimed(DISPATCHER_TASK_EXPIRATION, &Game::playerSetFightModes, player->getID(), fightMode, chaseMode, secureMode);
}
 
Last edited:
Chev
ghostModeInvisibleEffect = false
ahh, not gm invisible!! Thats dont changing outfit, i want invisible for normal player, like utana vid. I i say "utana vid" then i have normal outfit (citizen or something)

protocolgame.cpp, whats changes?? how to set storage value
if player have rawFightMode == 2 then storage value 2000 == 2
 
Chev
ghostModeInvisibleEffect = false
ahh, not gm invisible!! Thats dont changing outfit, i want invisible for normal player, like utana vid. I i say "utana vid" then i have normal outfit (citizen or something)

Ouh... So, What is your engine? 0.3.6 ?

invisible.lua
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_INVISIBLE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 200000)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

protocolgame.cpp, whats changes?? how to set storage value
if player have rawFightMode == 2 then storage value 2000 == 2

Code:
	fightMode_t fightMode = FIGHTMODE_ATTACK;
	player->setStorage(2000, "1");	
	
	if(rawFightMode == 2)
	{
		fightMode = FIGHTMODE_BALANCED;
			player->setStorage(2000, "2");
    }
	else if(rawFightMode == 3)
	{
		fightMode = FIGHTMODE_DEFENSE;
			player->setStorage(2000, "3");	
    }
 
what about that condition_invisible ...
how to make that it doesnt have any effect...
that it removes the blue sparks and just stays invisible?
so it works like ./ghost just as spell for players?
 
Back
Top