Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 15:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



7.2 Weapon & armor repeated change bug

Discussion on 7.2 Weapon & armor repeated change bug within the Rappelz Private Server forum part of the Rappelz category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2020
Posts: 18
Received Thanks: 1
7.2 Weapon & armor repeated change bug

Hello everyone. As you may already know, I am hosting a 7.2 rappelz server. Some players use this common bug to cause a lag inside the server. Do any of you know a solution for this problem? I have already searched in the forums but didn't find an answer. Thanks.
xBBB is offline  
Old 02/04/2020, 12:34   #2

 
アルカード's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 991
Received Thanks: 391
Quote:
Originally Posted by xBBB View Post
Hello everyone. As you may already know, I am hosting a 7.2 rappelz server. Some players use this common bug to cause a lag inside the server. Do any of you know a solution for this problem? I have already searched in the forums but didn't find an answer. Thanks.
1.Use HELP thread




2.There is script to kick them or petrify them if they abuse it.


3.Check step 1.
アルカード is offline  
Old 02/04/2020, 12:53   #3
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,779
Received Thanks: 1,461
Help thread is not necessary that is why it has been unstuck.

Ill post a script I have in my luas later tonight.
ThunderNikk is offline  
Old 02/04/2020, 13:57   #4
 
elite*gold: 0
Join Date: Jan 2020
Posts: 18
Received Thanks: 1
Quote:
Originally Posted by ThunderNikk View Post
Help thread is not necessary that is why it has been unstuck.

Ill post a script I have in my luas later tonight.
I will be waiting, thanks!
xBBB is offline  
Old 02/05/2020, 20:31   #5
 
elite*gold: 0
Join Date: Jan 2020
Posts: 18
Received Thanks: 1
I am sorry, but I didn't find the solution yet. I've searched in the help thread, but it's way too long and I already tried to use the "Search in Thread" button, but it doesn't display any results. Any help would be appreciated.
xBBB is offline  
Old 02/05/2020, 23:12   #6
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,779
Received Thanks: 1,461
I am sorry I forgot about you last night.

Add the following script to ETC_Script_Functions.lua...

Code:
function on_set_weapon_change()
    local pname = tostring(gv("name"))
    local changeTime = get_global_variable("change_weapontime"..pname)
    local change = tonumber(get_global_variable("changeweapon"..pname))
    if changeTime == "" then 
        changeTime = 0 
    end
    if change == "" or change == nil then 
        change = 0 
    end
    if (get_os_time() - changeTime) <= 2 then
        set_global_variable("changeweapon"..pname, change + 1)
        set_global_variable("change_weapontime"..pname, get_os_time())
        if change > 10 then 
            kick(pname)
        end
    else
        set_global_variable("change_weapontime"..pname, get_os_time())
        del_global_variable("changeweapon"..pname)
    end
end
ThunderNikk is offline  
Thanks
1 User
Old 02/06/2020, 15:25   #7
 
elite*gold: 0
Join Date: Jan 2020
Posts: 18
Received Thanks: 1
Quote:
Originally Posted by ThunderNikk View Post
I am sorry I forgot about you last night.

Add the following script to ETC_Script_Functions.lua...

Code:
function on_set_weapon_change()
    local pname = tostring(gv("name"))
    local changeTime = get_global_variable("change_weapontime"..pname)
    local change = tonumber(get_global_variable("changeweapon"..pname))
    if changeTime == "" then 
        changeTime = 0 
    end
    if change == "" or change == nil then 
        change = 0 
    end
    if (get_os_time() - changeTime) <= 2 then
        set_global_variable("changeweapon"..pname, change + 1)
        set_global_variable("change_weapontime"..pname, get_os_time())
        if change > 10 then 
            kick(pname)
        end
    else
        set_global_variable("change_weapontime"..pname, get_os_time())
        del_global_variable("changeweapon"..pname)
    end
end
Thank you very much, but when I tried the script, it didn't work. I believe it's because of get_os_time() script is not defined in 7.2
xBBB is offline  
Old 02/06/2020, 15:40   #8

 
Musta²'s Avatar
 
elite*gold: 1
Join Date: May 2011
Posts: 542
Received Thanks: 421
Quote:
Originally Posted by xBBB View Post
Thank you very much, but when I tried the script, it didn't work. I believe it's because of get_os_time() script is not defined in 7.2
For older epics, get_os_time() is os.time() due to lua version used.
Musta² is offline  
Thanks
3 Users
Old 02/09/2020, 12:47   #9
 
elite*gold: 0
Join Date: Jan 2020
Posts: 18
Received Thanks: 1
Thanks everyone! It worked perfectly.
xBBB is offline  
Old 02/09/2020, 13:04   #10
 
elite*gold: 0
Join Date: Dec 2015
Posts: 129
Received Thanks: 38
why would use all of that hhhh,
just put the weapons script_text to : "on_equip_item"
a function with the following arguments : "on_equip_item(code, target_type, user_handle, arg1, arg2, wear_pos) " will be executed, put any time checking there
MohcenMaher is offline  
Reply




All times are GMT +2. The time now is 15:48.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.