Jump to content
Sign in to follow this  
djfox292

Need a help in my server

Recommended Posts

when i try to teleport, i get "please wait teleporting" but it doesnt teleport me

it keeps showing

2- maps wont work ,but they works in sql 

3- plz if anyone can help me text me in Discord : UnStopable
#7706

 

@ThanksAlot.

Share this post


Link to post
Share on other sites

remove from /resourses/script/calculation/functions.lua

if(ret == 0 or npc == nil or id == nil)then
                -- MoveCity Delay 
                if _G[cha_name.."_move"] ~= nil then 
                        if(_G[cha_name.."_move"].city ~= nil) then 
                                BickerNotice(role,"Please wait, teleporting... ") 
                                local delay = math.random(3,7) -- Random Delay Secodns 
                                if math.mod(now_tick, delay) == 0 and now_tick > 0 then  
                                        if(_G[cha_name.."_move"].copy ~= nil)then 
                                                original_MoveCity(role,_G[cha_name.."_move"].city,_G[cha_name.."_move"].copy) 
                                        else 
                                                original_MoveCity(role,_G[cha_name.."_move"].city) 
                                        end 
                                        _G[cha_name.."_move"] = nil 
                                end 
                        end 
                end 

 	if(IsPlayer(role) == 1)then
	local ret, npc, id = FindNpc( GetChaDefaultName(role) )
	if(ret == 0 or npc == nil or id == nil)then
		-- Dupe Check start
		local map_now = GetChaMapName(role)
		if(file_exists(GetResPath("players/"..GetPlayerKey(role)..".txt")) ~= false)then
			local info = table.load(GetResPath("players/"..GetPlayerKey(role)..".txt"),"r")
			if(info.map ~= map_now and info.time == os.time())then
				if(info.first_dupe == nil)then
					info.first_dupe = os.time()
				end
				if(info.first_dupe ~= nil)then
					local difference = os.time() - info.first_dupe
					if( difference > 2)then
						if(info.dupes ~= nil)then
							info.dupes = info.dupes + 1
						else
							info.dupes = 1
						end
					end
					if(difference > 20 and info.dupes < 5)then
						info.dupes = nil
						info.first_dupe = nil
					end
					if(info.dupes ~= nil and info.dupes > 5)then
						LG("Dupers","Player "..GetChaDefaultName(role).." is duping")
						MoveDupe(role)
						info.dupes = nil
						info.first_dupe = nil
					end
				end
			end
			info.map = map_now
			info.time = os.time()+1
			table.save(info,GetResPath("players/"..GetPlayerKey(role)..".txt"),"w")
		else
			table.save({map = map_now,time = os.time()+1},GetResPath("players/"..GetPlayerKey(role)..".txt"),"a")
		end
		-- Dupe Check end
        end

 

Edited by Greaux
fixed fold

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...