Yes, i mean when a player goes into a teleport he joins a specific guild.Hi,
Do you mean when a player goes into a teleport he joins a specific guild.
Or he joins a guild he has an invite too inside of the guild invites table.
What i did bad? Can you tell me pleaseand also you are missing all the information:
![]()
Rules for the Support board
Rules for the Support board We ask you follow these rules and policies exactly as presented below. If you want to read the general rules for this forum (OTLand) you can find them here. The purpose of these rules is to keep a certain level of civility and order so that people have an easier...otland.net
#5?Yes, i mean when a player goes into a teleport he joins a specific guild.
Im working on a team battle ot but i dont want color outfit uf it can be. I wanna other sistem if it is posibol.
What i did bad? Can you tell me please
<?xml version="1.0" encoding="UTF-8"?>
<mod name="compelled-alliance" version="0.1" author="Lessaire" contact="otland.net" enabled="yes">
<lib name="rude-otadmin"><![CDATA[
-- Set the guild id of the guild the player will be forcefully enrolled into here
GUILDID = ???
]]></lib>
<movevent type="StepIn" uniqueid="8675309" event="script"><![CDATA[
domodlib('rude-otadmin')
function onStepIn(cid, item, position, fromPosition)
local callback = function(guid)
local cid = getPlayerByGUID(guid)
if (isCreature(cid)) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are the newest member of " .. getPlayerGuildName(cid) .. ".")
end
end
if (item.uniqueid == 8675309) then
addEvent(callback, 1000, getPlayerGUID(cid))
doPlayerSetGuildId(cid, GUILDID)
end
return true
end
]]></movevent>
</mod>
Why are you making a player join a guild? That's just silly. I can only presume this is a 0.3.7 request.
XML:<?xml version="1.0" encoding="UTF-8"?> <mod name="compelled-alliance" version="0.1" author="Lessaire" contact="otland.net" enabled="yes"> <lib name="rude-otadmin"><![CDATA[ -- Set the guild id of the guild the player will be forcefully enrolled into here GUILDID = ??? ]]></lib> <movevent type="StepIn" uniqueid="8675309" event="script"><![CDATA[ domodlib('rude-otadmin') function onStepIn(cid, item, position, fromPosition) local callback = function(guid) local cid = getPlayerByGUID(guid) if (isCreature(cid)) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are the newest member of " .. getPlayerGuildName(cid) .. ".") end end if (item.uniqueid == 8675309) then addEvent(callback, 1000, getPlayerGUID(cid)) doPlayerSetGuildId(cid, GUILDID) end return true end ]]></movevent> </mod>
mod name="compelled-alliance"
YOU ARE THE BEST WE HAVE! O
i do it because im working on a team battle ot.Why are you making a player join a guild? That's just silly. I can only presume this is a 0.3.7 request.
XML:<?xml version="1.0" encoding="UTF-8"?> <mod name="compelled-alliance" version="0.1" author="Lessaire" contact="otland.net" enabled="yes"> <lib name="rude-otadmin"><![CDATA[ -- Set the guild id of the guild the player will be forcefully enrolled into here GUILDID = ??? ]]></lib> <movevent type="StepIn" uniqueid="8675309" event="script"><![CDATA[ domodlib('rude-otadmin') function onStepIn(cid, item, position, fromPosition) local callback = function(guid) local cid = getPlayerByGUID(guid) if (isCreature(cid)) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are the newest member of " .. getPlayerGuildName(cid) .. ".") end end if (item.uniqueid == 8675309) then addEvent(callback, 1000, getPlayerGUID(cid)) doPlayerSetGuildId(cid, GUILDID) end return true end ]]></movevent> </mod>
Fun.team battle ot.
No.Can you explain me more the code please?
I think it is you who should explain.But i don’t like force the color of outfit.
function onStepIn(cid, item, position, fromPosition)
local callback = function(guid)
local cid = getPlayerByGUID(guid)
if (isCreature(cid)) then
local message = "You are the newest member of " .. getPlayerGuildName(cid) .. "."
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, message)
end
end
if (item.uniqueid == 8675309) then
addEvent(callback, 1000, getPlayerGUID(cid))
doPlayerSetGuildId(cid, GUILDID)
end
return true
end