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

Lua i found a mount bug

lalovega

New Member
Joined
Nov 4, 2008
Messages
85
Reaction score
1
the problem is when i use a mount i can logout normally then when i login i appear already mounted and then if i dismount my speed decrease like if somebody used a paralyze spell . so is there a way to prevent logout while using a mount? or another way to fix is remove mount on login so how do i change that?
 
Last edited:
Another way is dismount onLogout o.o

Create: data\creaturescripts\scripts\dismount.lua
PHP:
function onLogout(cid)		
	if(getCreatureName(cid):lower() ~= "account manager")then
		doPlayerSetMounted(cid, false)
	end
	return TRUE
end

Now on data\creaturescripts\creaturescripts.xml add this line.
PHP:
<event type="logout" name="PlayerDismount" event="script" value="dismount.lua"/>

Dunno why u got that mount bug, i don't have it. :eek:
 
Last edited:
another way is dismount onlogout o.o

create: Data\creaturescripts\scripts\dismount.lua
PHP:
function onlogout(cid)
	return doplayersetmounted(cid, false)
end

now on data\creaturescripts\creaturescripts.xml add this line.
PHP:
<event type="logout" name="playerdismount" event="script" value="dismount.lua"/>

dunno why u got that mount bug, i don't have it. :eek:
omgg thxxxxxxxxxxxxxxxxx
 
Back
Top