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

Question Of Config.lua

cesar10

Active Member
Joined
Aug 4, 2009
Messages
428
Reaction score
37
Well I Have A Little Question I hope Someone Can help Me Out. Well Where Can I Change The Efect Of Summons On COnfig.lua i Want To Change The Effect Of This:
teleportPlayerSummons = true

So When The Summon Teleports To You It Shows Other Effect On Summon ANyone Help Please? Ill Rep++ :)
 
shet D;! im not good at that S:! cant it be a script? like set that to false and then making a script if your summon is like 10 sqms away it teleports it to your pos and sends X Magic effect? can anyone make it if posible pleasee )';
 
A creatureevent, something like that i think
LUA:
local limit = 10 --if summon is 10 sqm away from you, will be teleported to your position

function onThink(cid, interval)

	if #getCreatureSummons(cid) < 1 then return true end

	for _, uid in ipairs(getCreatureSummons(cid)) do
		if getDistanceBetween(getCreaturePosition(cid), getCreaturePosition(uid)) >= limit or getCreaturePosition(cid).z ~= getCreaturePosition(uid).z then
			doTeleportThing(uid, getCreaturePosition(cid))
			doSendMagicEffect(getCreaturePosition(uid), CONST_ME_TELEPORT)
		end
	end
	return true
end
 
Just edit this:
Code:
bool Monster::doTeleportToMaster()
{
	const Position& tmp = getPosition();
	if(g_game.internalTeleport(this, g_game.getClosestFreeTile(this,
		master->getPosition(), true), true) != RET_NOERROR)
		return false;

	g_game.addMagicEffect(tmp, MAGIC_EFFECT_POFF);
	[COLOR="red"]g_game.addMagicEffect(getPosition(), MAGIC_EFFECT_TELEPORT);[/COLOR]
	return true;
}
 
@Santi
You must spread some Reputation around before giving it to Santi again.

S: Summ i Added Rep (:, and same for darkhaos
 
@Santi
Are you sure it works? I would think that summons will disappear if the player uses a teleporter
 
Back
Top