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

decrease of script

Status
Not open for further replies.

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="hiho" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
	<config name="lines"><![CDATA[

	]]></config>
	
<event type="login" name="hihor" event="script"><![CDATA[
	 function onLogin(cid)
    registerCreatureEvent(cid, "hiho")
        return true
end]]></event>
	
<event type="login" name="hiho" event="script"><![CDATA[

	function onLogin(cid)
	
	local level = 1 
	
	local effecttextline1and9 = MESSAGE_STATUS_CONSOLE_BLUE 
	local effecttextcommands = MESSAGE_STATUS_CONSOLE_BLUE 
	local effecttextvisit = MESSAGE_STATUS_CONSOLE_BLUE

	local Textline1 = "Welcome to Zhfgus, here's a list of commands:" 
	local Textline2 = "!aol               -> Buy an amulet of loss"	
	local Textline3 = "!online               -> Show players online"	
	local Textline4 = "!bless             -> Get blessed by the Gods"	
	local Textline5 = "!spells            -> List of spells available"	
	local Textline6 = "!frags             -> See your current frags"	
	local Textline7 = "!report             -> Report bugs to staff"	
	local Textline8 = "/noob            -> Transport the noob character (Lvl -50) for temple"
	local Textline9 = "-Visit our webpage for a complete list of commands."	
	local Textline10 = "//gfros Staff"
	
	if getPlayerLevel(cid) >= level then
			doPlayerSendTextMessage(cid, effecttextline1and9, Textline1)
			doPlayerSendTextMessage(cid, effecttextcommands, Textline2)
			doPlayerSendTextMessage(cid, effecttextcommands, Textline3)
			doPlayerSendTextMessage(cid, effecttextcommands, Textline4)
			doPlayerSendTextMessage(cid, effecttextcommands, Textline5)
			doPlayerSendTextMessage(cid, effecttextcommands, Textline6)
			doPlayerSendTextMessage(cid, effecttextcommands, Textline7)
			doPlayerSendTextMessage(cid, effecttextvisit, Textline8)
			doPlayerSendTextMessage(cid, effecttextline1and9, Textline9)
			doPlayerSendTextMessage(cid, effecttextline1and10, Textline10)
		end
	return true
end  
	]]></event>
</mod>
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="hiho" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
    <event type="login" name="hiho" event="script">
        <![CDATA[
            local level = 1 
            local messageClass = MESSAGE_STATUS_CONSOLE_BLUE 
            local Textline1 = 'Welcome to Zhfgus, here\'s a list of commands:' 
            local Textline2 = '!aol               -> Buy an amulet of loss'    
            local Textline3 = '!online               -> Show players online'    
            local Textline4 = '!bless             -> Get blessed by the Gods'    
            local Textline5 = '!spells            -> List of spells available'    
            local Textline6 = '!frags             -> See your current frags'    
            local Textline7 = '!report             -> Report bugs to staff'    
            local Textline8 = '/noob            -> Transport the noob character (Lvl -50) for temple'
            local Textline9 = '-Visit our webpage for a complete list of commands.'    
            local Textline10 = '//gfros Staff'

            function onLogin(cid)
                local output = ''
                for i = 1, 10 do
                    output = output..'\n'..Textline[i]
                end
                if getPlayerLevel(cid) >= level then
                    doPlayerSendTextMessage(cid, messageClass, output)
                end
                return true
            end
        ]]>
    </event>
</mod>
 
imagem_shwxhx.bmp
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="hiho" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
    <config name="config"><![CDATA[
        level = 1 
        messageClass = MESSAGE_STATUS_CONSOLE_BLUE 
        Textline1 = 'Welcome to Zhfgus, here\'s a list of commands:' 
        Textline2 = '!aol               -> Buy an amulet of loss'    
        Textline3 = '!online               -> Show players online'    
        Textline4 = '!bless             -> Get blessed by the Gods'    
        Textline5 = '!spells            -> List of spells available'    
        Textline6 = '!frags             -> See your current frags'    
        Textline7 = '!report             -> Report bugs to staff'    
        Textline8 = '/noob            -> Transport the noob character (Lvl -50) for temple'
        Textline9 = '-Visit our webpage for a complete list of commands.'    
        Textline10 = '//gfros Staff'
    ]]></config>
    
    <event type="login" name="hiho" event="script">
        <![CDATA[
            domodlib('config')
            local output = ''
            function onLogin(cid)    
                for i = 1, 10 do
                    output = output..'\n'..Textline[i]
                end
                if getPlayerLevel(cid) >= level then
                    doPlayerSendTextMessage(cid, messageClass, output)
                end
                return true
            end
        ]]>
    </event>
</mod>
 
Here try this, if it does not work then your TFS is bad:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="hiho" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
    <config name="config"><![CDATA[
        level = 1 
        messageClass = MESSAGE_STATUS_CONSOLE_BLUE 
        Textline = {
			{'Welcome to Zhfgus, here\'s a list of commands:'}, 
			{'!aol               -> Buy an amulet of loss'},    
			{'!online               -> Show players online'},    
			{'!bless             -> Get blessed by the Gods'},    
			{'!spells            -> List of spells available'},    
			{'!frags             -> See your current frags'},    
			{'!report             -> Report bugs to staff'},    
			{'/noob            -> Transport the noob character (Lvl -50) for temple'},
			{'-Visit our webpage for a complete list of commands.'},    
			{'//gfros Staff'}
			}
    ]]></config>
 
    <event type="login" name="hiho" event="script">
        <![CDATA[
            domodlib('config')
            local output = ''
            function onLogin(cid)    
                for i = 1, 10 do
                    output = output..'\n'..Textline[i]
                end
                if getPlayerLevel(cid) >= level then
                    doPlayerSendTextMessage(cid, messageClass, output)
                end
                return true
            end
        ]]>
    </event>
</mod>

PS
This is the last time I will help you makr0, by now and the time you have been in OTland you should know how to fix this yourself.
 
last time, try this:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="hiho" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
    <config name="config"><![CDATA[
        level = 1 
        messageClass = MESSAGE_STATUS_CONSOLE_BLUE 
        Textline = {
			{'Welcome to Zhfgus, here\'s a list of commands:'}, 
			{'!aol             -> Buy an amulet of loss'},    
			{'!online          -> Show players online'},    
			{'!bless           -> Get blessed by the Gods'},    
			{'!spells          -> List of spells available'},    
			{'!frags           -> See your current frags'},    
			{'!report          -> Report bugs to staff'},    
			{'/noob            -> Transport the noob character (Lvl -50) for temple'},
			{'-Visit our webpage for a complete list of commands.'},    
			{'//gfros Staff'}
			}
    ]]></config>
 
    <event type="login" name="hiho" event="script"><![CDATA[
            local output = ''
            function onLogin(cid)
				domodlib('config')
                for i = 1, 10 do
                    output = output..'\n'..Textline[i]
                end
                if getPlayerLevel(cid) >= level then
                    doPlayerSendTextMessage(cid, messageClass, output)
                end
                return true
            end
    ]]></event>
</mod>
 
take this
now get away
XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="hiho" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
    <config name="config"><![CDATA[
        level = 1 
        messageClass = MESSAGE_STATUS_CONSOLE_BLUE 
        Textline = {
            'Welcome to Zhfgus, here\'s a list of commands:',
            '!aol               -> Buy an amulet of loss',    
            '!online               -> Show players online',
            '!bless             -> Get blessed by the Gods',    
            '!spells            -> List of spells available',    
            '!frags             -> See your current frags',    
            '!report             -> Report bugs to staff',    
            '/noob            -> Transport the noob character (Lvl -50) for temple',
            '-Visit our webpage for a complete list of commands.',    
            '//gfros Staff',
        }
    ]]></config>
 
    <event type="login" name="hiho" event="script">
        <![CDATA[
            domodlib('config')
            local output = ''
            function onLogin(cid)    
                for i = 1, #Textline do
                    output = output..'\n'..Textline[i]
                end
                if getPlayerLevel(cid) >= level then
                    doPlayerSendTextMessage(cid, messageClass, output)
                end
                return true
            end
        ]]>
    </event>
</mod>
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="hiho" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
	<config name="config"><![CDATA[
		level = 1 
		messageClass = MESSAGE_STATUS_CONSOLE_BLUE 
        	Textline = 
		{
			{"Welcome to Zhfgus, here\'s a list of commands:"}, 
			{"!aol             -> Buy an amulet of loss"},    
			{"!online          -> Show players online"},    
			{"!bless           -> Get blessed by the Gods"},    
			{"!spells          -> List of spells available"},    
			{"!frags           -> See your current frags"},    
			{"!report          -> Report bugs to staff"},    
			{"/noob            -> Transport the noob character (Lvl -50) for temple"},
			{"-Visit our webpage for a complete list of commands."},    
			{"//gfros Staff"}
		}
	]]></config>
 
	<event type="login" name="hiho" event="script"><![CDATA[

	local output = ""
	function onLogin(cid)
	domodlib("config")
		registerCreatureEvent(cid, "hiho")
		for i = 1, table.maxn(Textline) do
			output = output.."\n"..Textline[i]
                end
		if getPlayerLevel(cid) >= level then
			doPlayerSendTextMessage(cid, messageClass, output)
                end
                return true
	end

	]]></event>
</mod>
 
Status
Not open for further replies.
Back
Top