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.
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.
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.
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
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
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