|
You last visited: Today at 09:05
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.
02/04/2020, 11:55
|
#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.
|
|
|
02/04/2020, 12:34
|
#2
|
elite*gold: 50
Join Date: Mar 2012
Posts: 1,038
Received Thanks: 430
|
Quote:
Originally Posted by xBBB
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.
|
|
|
02/04/2020, 12:53
|
#3
|
Moderator
elite*gold: 1
Join Date: Dec 2012
Posts: 4,917
Received Thanks: 1,492
|
Help thread is not necessary that is why it has been unstuck.
Ill post a script I have in my luas later tonight.
|
|
|
02/04/2020, 13:57
|
#4
|
elite*gold: 0
Join Date: Jan 2020
Posts: 18
Received Thanks: 1
|
Quote:
Originally Posted by ThunderNikk
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!
|
|
|
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.
|
|
|
02/05/2020, 23:12
|
#6
|
Moderator
elite*gold: 1
Join Date: Dec 2012
Posts: 4,917
Received Thanks: 1,492
|
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
|
|
|
02/06/2020, 15:25
|
#7
|
elite*gold: 0
Join Date: Jan 2020
Posts: 18
Received Thanks: 1
|
Quote:
Originally Posted by ThunderNikk
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
|
|
|
02/06/2020, 15:40
|
#8
|
elite*gold: 1
Join Date: May 2011
Posts: 542
Received Thanks: 425
|
Quote:
Originally Posted by xBBB
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.
|
|
|
02/09/2020, 12:47
|
#9
|
elite*gold: 0
Join Date: Jan 2020
Posts: 18
Received Thanks: 1
|
Thanks everyone! It worked perfectly.
|
|
|
02/09/2020, 13:04
|
#10
|
elite*gold: 0
Join Date: Dec 2015
Posts: 131
Received Thanks: 39
|
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
|
|
|
All times are GMT +1. The time now is 09:05.
|
|