Jump to content

Rumor

Banned
  • Posts

    914
  • Joined

  • Last visited

  • Days Won

    15
  • Feedback

    0%

Posts posted by Rumor

  1. Another idea of something to fix: the crash that happens when you "/reload q".

    That reminds me, what about a feature where LOW_WIZARDs can have commands added? We can already restrict commands with the CMD file, but it would be nice to be able to customize exactly what commands each permission level has and whether or not they have a GM logo over their head and can be added to friends. The behavior would be similar to Metin2US, where they had MODs with abilities that LOW_WIZARD currently doesn't have but without the GM logo over their head or friend-adding restrictions.

     

    To keep the CONFIG clean, maybe set this up in jSON format(or something else simple like lua) or something in a file that can be put somewhere near the core and have a symlink in each channel folder for it.

    • Love 1
  2. I've got this now

    quest change_name_item begin
        state start begin
            function isLongName(name)
                return string.len(name) < 16
            end
            when 71055.use begin
                say_title("Change of Name List")
                if pc.is_married() then
                    say("")
                    say("You can't change names when you're married.")
                    say("")
                    return
                elseif pc.is_polymorphed() then
                    say("")
                    say("You can't change names when you're transformed.")
                    say("")
                    return
                elseif pc.has_guild() then
                    say("")
                    say("You can't change names when you're in a guild.")
                    say("")
                    return
                elseif party.is_party() then
                    say("")
                    say("You can't change names when you're in a party.")
                    say("")
                    return
                elseif pc.get_level() < 80 then
                    say("")
                    say("You can't change names before level 80.")
                    say("")
                    return
                elseif get_time() < pc.getqf("next_time") then
                    say("")
                    say("You've recently changed your name.")
                    say("You can't change your name right now.")
                    say("")
                    return
                end
                say("Please enter the name you want.")
                local name = pc.name
                local str = input()
                if(change_name_item.isLongName(tostring(str)) == false) then
                    say_title("Change of Name List")
                    say("")
                    say("The entered name is too long.")
                    say("Please select another name.")
    				say("")
    				char_log(0, "CHANGE_NAME", "NAME TOO LONG")
                    return
                end
                local ret = pc.change_name(str)
                say_title("Change of Name List")
                if ret == 0 then
                say("")
                    say("You have not relogged since the last time you")
                    say("changed your name. Please relog now.")
                    say("")
                    char_log(0, "CHANGE_NAME", "HAVE NOT RE-LOGIN")
                elseif ret == 1 then
                    say("")
                    say("There was a problem. Please try again.")
                    say("")
                    char_log(0, "CHANGE_NAME", "ITEM USE PROBLEM")
                elseif ret == 2 then
                    say("")
                    say("This name is not avaliable.")
                    say("Please select another name.")
                    say("")
                    char_log(0, "CHANGE_NAME", "CAN NOT USE NAME")
                elseif ret == 3 then
                    say("")
                    say("This name is not avaliable.")
                    say("Please select another name.")
                    say("")
                    char_log(0, "CHANGE_NAME", "ALREADY USING NAME")
                elseif ret == 4 then
                    say("")
                    say("Successful name change!")
                    say("You cannot change your name again for")
                    say("another 24 hours.")
                    say("")
                    pc.remove_item("71055", 1)
                    pc.setqf("next_time", get_time() + time_hour_to_sec(24*1))
                    horse.set_name(""..str"'s Horse")
                    char_log(0, "CHANGE_NAME", "SUCCESS: from "..name.." to "..str)
                    wait()
                    pc.warp(pc.get_x()*100, pc.get_y()*100)
                else
                    say("")
                    say("Unknown error.")
                    say("Please notify Rumor with this number:")
                    say(ret)
                    say("and he will take a look at the issue.")
                    say("")
                    char_log(0, "CHANGE_NAME", "UNKNOWN NAME")
                end
            end
        end
    end

  3. oh I was going to do it this way:

    quest change_name_item begin
    	state start begin
    		when 71055.use begin
    			say_title("Change of Name List")
    			if pc.is_married() then
    				say("")
    				say("You can't change names when you're married.")
    				say("")
    				return
    			elseif pc.is_polymorphed() then
    				say("")
    				say("You can't change names when you're transformed.")
    				say("")
    				return
    			elseif pc.has_guild() then
    				say("")
    				say("You can't change names when you're in a guild.")
    				say("")
    				return
    			elseif party.is_party() then
    				say("")
    				say("You can't change names when you're in a party.")
    				say("")
    				return
    			elseif pc.get_level() < 80 then
    				say("")
    				say("You can't change names before level 80.")
    				say("")
    				return
    			elseif get_time() < pc.getqf("next_time") then
    				say("")
    				say("You've recently changed your name.")
    				say("You can't change your name right now.")
    				say("")
    				return
    			end
    			say("Please enter the name you want.")
    				function isLongName(name)
    					return string.len(name) < 16
    				end
    			local name = pc.name
    			local length = input()
    			local str = input()
    			local ret = pc.change_name(str)
    			say_title("Change of Name List")
    			if ret == 0 then
    			say("")
    				say("You have not relogged since the last time you")
    				say("changed your name. Please relog now.")
    				say("")
    				char_log(0, "CHANGE_NAME", "HAVE NOT RE-LOGIN")
    			elseif ret == 1 then
    				say("")
    				say("There was a problem. Please try again.")
    				say("")
    				char_log(0, "CHANGE_NAME", "ITEM USE PROBLEM")
    			elseif ret == 2 then
    				say("")
    				say("This name is not available.")
    				say("Please select another name.")
    				say("")
    				char_log(0, "CHANGE_NAME", "CAN NOT USE NAME")
    			elseif ret == 3 then
    				say("")
    				say("This name is not available.")
    				say("Please select another name.")
    				say("")
    				char_log(0, "CHANGE_NAME", "ALREADY USING NAME")
    			elseif(isLongName(tostring(length)) == false) then
    				say("")
    				say("Your name is too long.")
    				say("Please select another.")
    				say("")
    				char_log(0, "CHANGE_NAME", "NAME TOO LONG")
    			elseif ret == 4 then
    				say("")
    				say("Successful name change!")
    				say("You cannot change your name again for")
    				say("another 24 hours.")
    				say("")
    				pc.remove_item("71055", 1)
    				pc.setqf("next_time", get_time() + time_hour_to_sec(24*1))
    				horse.set_name(""..str"'s Horse")
    				char_log(0, "CHANGE_NAME", "SUCCESS: from "..name.." to "..str)
    				wait()
    				pc.warp(pc.get_x()*100, pc.get_y()*100)
    			else
    				say("")
    				say("Unknown error.")
    				say("Please notify Rumor with this number:")
    				say(ret)
    				say("and he will take a look at the issue.")
    				say("")
    				char_log(0, "CHANGE_NAME", "UNKNOWN NAME")
    			end
    		end
    	end
    end
    

  4. quest change_name_item begin
    	state start begin
    		when 71055.use begin
    			say_title("Change of Name List")
    			if pc.is_married() then
    				say("")
    				say("You can't change names when you're married.")
    				say("")
    				return
    			elseif pc.is_polymorphed() then
    				say("")
    				say("You can't change names when you're transformed.")
    				say("")
    				return
    			elseif pc.has_guild() then
    				say("")
    				say("You can't change names when you're in a guild.")
    				say("")
    				return
    			elseif party.is_party() then
    				say("")
    				say("You can't change names when you're in a party.")
    				say("")
    				return
    			elseif pc.get_level() < 80 then
    				say("")
    				say("You can't change names before level 80.")
    				say("")
    				return
    			elseif get_time() < pc.getqf("next_time") then
    				say("")
    				say("You've recently changed your name.")
    				say("You can't change your name right now.")
    				say("")
    				return
    			end
    			say("Please enter the name you want.")
    			local name = pc.name
    			local str = input()
    			local ret = pc.change_name(str)
    			say_title("Change of Name List")
    			if ret == 0 then
    			say("")
    				say("You have not relogged since the last time you")
    				say("changed your name. Please relog now.")
    				say("")
    				char_log(0, "CHANGE_NAME", "HAVE NOT RE-LOGIN")
    			elseif ret == 1 then
    				say("")
    				say("There was a problem. Please try again.")
    				say("")
    				char_log(0, "CHANGE_NAME", "ITEM USE PROBLEM")
    			elseif ret == 2 then
    				say("")
    				say("This name is not available.")
    				say("Please select another name.")
    				say("")
    				char_log(0, "CHANGE_NAME", "CAN NOT USE NAME")
    			elseif ret == 3 then
    				say("")
    				say("This name is not available.")
    				say("Please select another name.")
    				say("")
    				char_log(0, "CHANGE_NAME", "ALREADY USING NAME")
    			elseif ret == 4 then
    				say("")
    				say("Successful name change!")
    				say("You cannot change your name again for")
    				say("another 24 hours.")
    				say("")
    				pc.remove_item("71055", 1)
    				pc.setqf("next_time", get_time() + time_hour_to_sec(24*1))
    				horse.set_name(""..str"'s Horse")
    				char_log(0, "CHANGE_NAME", "SUCCESS: from "..name.." to "..str)
    				wait()
    				pc.warp(pc.get_x()*100, pc.get_y()*100)
    			else
    				say("")
    				say("Unknown error.")
    				say("Please notify Rumor with this number:")
    				say(ret)
    				say("and he will take a look at the issue.")
    				say("")
    				char_log(0, "CHANGE_NAME", "UNKNOWN NAME")
    			end
    		end
    	end
    end
    

    The players are choosing very long names which can't be typed in a private message window or fully seen on their character. I need to be able to limit their name length somehow.

  5. My antivirus has detected as a virus  :blink:

    74FC8.png

     

    If you will publish the source in the future, why did you pack the exe? :ph34r:

     

    Maybe since he doesn't want to publish the source yet he also wants to protect the exe until he publishes the source.

  6. How do you fixed? I have the same issue.

    You need to read the readme and add the libs to the appropriate directory if you're using vanilla's game core.

    Also make sure you have run the install.sh script and make sure you have the updated version of the package I posted for download because there was a mistake in the original install script.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.