• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Rush Event Blad

Skonelapper

New Member
Joined
Sep 28, 2012
Messages
124
Reaction score
3
Witam , gdy probouje odpalic rush event na moim otsie moge tylko dołaczyć gm-em a normalny player nie moze dolaczyć , oto blad w konsoli gdy gracz wpisuje rush join


Code:
[14:58:35.037] [Error - TalkAction Interface] 
[14:58:35.037] 			domodlib("lib_rush_event")

[14:58:35.037] 			function onSay(cid, words, param)
[14:58:35.037] 				if getStorage(configRushEvent.storages.joining) ~= 1 then
[14:58:35.037] 					return doPlayerSendCancel(cid, 'Rush Event hasn\'t started yet.')
[14:58:35.037] 				elseif param == '' then
[14:58:35.037] 					return doPlayerSendCancel(cid, 'Command param required (say: "!battle join" or "!battle leave.").')
[14:58:35.037] 				elseif getPlayerLevel(cid) < configRushEvent.players.minLevel then
[14:58:35.037] 					return doPlayerSendCancel(cid, 'You can\'t join to the event if you don\'t have a require '..configRushEvent.players.minLevel..' level.')
[14:58:35.037] 				elseif getTileInfo(getThingPos(cid)).protection ~= true then
[14:58:35.037] 					return doPlayerSendCancel(cid, 'You can\'t join to the event if you aren\'t in protection zone.')
[14:58:35.037] 				elseif exhaustion.check(cid, configRushEvent.storages.exhaust) ~= false then
[14:58:35.037] 					return doPlayerSendCancel(cid, 'You must wait '..exhaustion.get(cid, configRushEvent.storages.exhaust)..' seconds to use this command again.')
[14:58:35.037] 				end

[14:58:35.037] 				if param == 'join' then
[14:58:35.037] 					if tostring(getCreatureStorage(cid, configRushEvent.storages.player)) ~= '' then
[14:58:35.037] 						return doPlayerSendCancel(cid, 'You have arleady joined to event. Wait patiently for start.')
[14:58:35.037] 					elseif doCountPlayersRushEvent()[1] == configRushEvent.players.max then
[14:58:35.037] 						return doPlayerSendCancel(cid, 'Max players in the event have been reached.')
[14:58:35.037] 					end
[14:58:35.037] 					
[14:58:35.037] 					for _, v in ipairs(getPlayersOnline()) do
[14:58:35.037] 						if tostring(getCreatureStorage(v, configRushEvent.storages.player)) ~= '' then
[14:58:35.037] 							if getPlayerIp(cid) == getPlayerIp(v) then
[14:58:35.037] 								return doPlayerSendCancel(cid, 'In Rush event there is arleady player who have same ip like you.')
[14:58:35.037] 							end
[14:58:35.037] 						end
[14:58:35.037] 					end

[14:58:35.037] 					doCreatureSetNoMove(cid, true)
[14:58:35.037] 					if configRushEvent.text ~= '' then
[14:58:35.037] 						doPlayerPopupFYI(cid, configRushEvent.text)
[14:58:35.037] 					end

[14:58:35.037] 					doCreatureSetStorage(cid, configRushEvent.storages.player, doCountPlayersRushEvent()[3] >= doCountPlayersRushEvent()[2] and 'blue' or 'red')
[14:58:35.037] 					doAddCondition(cid, createConditionObject(CONDITION_INFIGHT, -1))
[14:58:35.037] 					doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'You have joined to Rush Event. You can\'t move until event don\'t start. Wait patiently for the event start.')
[14:58:35.037] 					doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'You have joined to Rush Event.')
[14:58:35.037] 				elseif param == 'leave' then
[14:58:35.037] 					if tostring(getCreatureStorage(cid, configRushEvent.storages.player)) ~= '' then
[14:58:35.037] 						return doPlayerSendCancel(cid, 'You can\'t leave from the event if you don\'t join.')
[14:58:35.037] 					end

[14:58:35.037] 					doCreatureSetNoMove(cid, false)
[14:58:35.037] 					doRemoveCondition(cid, CONDITION_INFIGHT)
[14:58:35.037] 					doCreatureSetStorage(cid, configRushEvent.storages.player, '')					
[14:58:35.037] 					doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'You have left from the Rush Event.')
[14:58:35.037] 				end

[14:58:35.037] 				exhaustion.set(cid, configRushEvent.storages.exhaust, 5)
[14:58:35.037] 				return true
[14:58:35.037] 			end
[14:58:35.037] 		:onSay
[14:58:35.037] Description: 
[14:58:35.037] data/lib/exhaustion.lua:8: attempt to compare number with string
[14:58:35.037] stack traceback:
[14:58:35.037] 	data/lib/exhaustion.lua:8: in function 'check'
[14:58:35.037] 	[string "LuaInterface::loadBuffer"]:12: in function <[string "LuaInterface::loadBuffer"]:3>

[14:58:49.872] [Error - TalkAction Interface] 
[14:58:49.872] 			domodlib("lib_rush_event")

[14:58:49.872] 			function onSay(cid, words, param)
[14:58:49.872] 				if getStorage(configRushEvent.storages.joining) ~= 1 then
[14:58:49.872] 					return doPlayerSendCancel(cid, 'Rush Event hasn\'t started yet.')
[14:58:49.872] 				elseif param == '' then
[14:58:49.872] 					return doPlayerSendCancel(cid, 'Command param required (say: "!battle join" or "!battle leave.").')
[14:58:49.872] 				elseif getPlayerLevel(cid) < configRushEvent.players.minLevel then
[14:58:49.872] 					return doPlayerSendCancel(cid, 'You can\'t join to the event if you don\'t have a require '..configRushEvent.players.minLevel..' level.')
[14:58:49.872] 				elseif getTileInfo(getThingPos(cid)).protection ~= true then
[14:58:49.872] 					return doPlayerSendCancel(cid, 'You can\'t join to the event if you aren\'t in protection zone.')
[14:58:49.872] 				elseif exhaustion.check(cid, configRushEvent.storages.exhaust) ~= false then
[14:58:49.872] 					return doPlayerSendCancel(cid, 'You must wait '..exhaustion.get(cid, configRushEvent.storages.exhaust)..' seconds to use this command again.')
[14:58:49.872] 				end

[14:58:49.872] 				if param == 'join' then
[14:58:49.872] 					if tostring(getCreatureStorage(cid, configRushEvent.storages.player)) ~= '' then
[14:58:49.872] 						return doPlayerSendCancel(cid, 'You have arleady joined to event. Wait patiently for start.')
[14:58:49.872] 					elseif doCountPlayersRushEvent()[1] == configRushEvent.players.max then
[14:58:49.872] 						return doPlayerSendCancel(cid, 'Max players in the event have been reached.')
[14:58:49.872] 					end
[14:58:49.872] 					
[14:58:49.872] 					for _, v in ipairs(getPlayersOnline()) do
[14:58:49.872] 						if tostring(getCreatureStorage(v, configRushEvent.storages.player)) ~= '' then
[14:58:49.872] 							if getPlayerIp(cid) == getPlayerIp(v) then
[14:58:49.872] 								return doPlayerSendCancel(cid, 'In Rush event there is arleady player who have same ip like you.')
[14:58:49.872] 							end
[14:58:49.872] 						end
[14:58:49.872] 					end

[14:58:49.872] 					doCreatureSetNoMove(cid, true)
[14:58:49.872] 					if configRushEvent.text ~= '' then
[14:58:49.872] 						doPlayerPopupFYI(cid, configRushEvent.text)
[14:58:49.872] 					end

[14:58:49.872] 					doCreatureSetStorage(cid, configRushEvent.storages.player, doCountPlayersRushEvent()[3] >= doCountPlayersRushEvent()[2] and 'blue' or 'red')
[14:58:49.872] 					doAddCondition(cid, createConditionObject(CONDITION_INFIGHT, -1))
[14:58:49.872] 					doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'You have joined to Rush Event. You can\'t move until event don\'t start. Wait patiently for the event start.')
[14:58:49.872] 					doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'You have joined to Rush Event.')
[14:58:49.872] 				elseif param == 'leave' then
[14:58:49.872] 					if tostring(getCreatureStorage(cid, configRushEvent.storages.player)) ~= '' then
[14:58:49.872] 						return doPlayerSendCancel(cid, 'You can\'t leave from the event if you don\'t join.')
[14:58:49.872] 					end

[14:58:49.872] 					doCreatureSetNoMove(cid, false)
[14:58:49.872] 					doRemoveCondition(cid, CONDITION_INFIGHT)
[14:58:49.872] 					doCreatureSetStorage(cid, configRushEvent.storages.player, '')					
[14:58:49.872] 					doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'You have left from the Rush Event.')
[14:58:49.872] 				end

[14:58:49.872] 				exhaustion.set(cid, configRushEvent.storages.exhaust, 5)
[14:58:49.872] 				return true
[14:58:49.872] 			end
[14:58:49.872] 		:onSay
[14:58:49.872] Description: 
[14:58:49.872] data/lib/exhaustion.lua:8: attempt to compare number with string
[14:58:49.872] stack traceback:
[14:58:49.872] 	data/lib/exhaustion.lua:8: in function 'check'
[14:58:49.872] 	[string "LuaInterface::loadBuffer"]:12: in function <[string "LuaInterface::loadBuffer"]:3>
> Broadcasted message: "Battle Event hasn't started beacuse there not were enough players.".


a oto skrypt :
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Rush Event" version="1.0.0" author="VirrageS" enabled="yes">
    <config name="config_rush_event">
		<![CDATA[
			configRushEvent = {
				storages = {
					main = 'rushEventMain', -- set free storage
					player = 'rushEventPlayer', -- set free storage
					joining = 'rushEventJoining', -- set free storage
					b_score = 'rushEventBlueScore', -- set free storage
					r_score = 'rushEventRedScore', -- set free storage
					exhaust = 'rushEventExhaust',
					countEvent = 'rushEventCountEvent'
				},

				position = {
					blue = {x=2420, y=2070, z=7}, -- posiotion to which player is teleporting
					red = {x=2477, y=2106, z=7} -- posiotion to which player is teleporting
				},

				room = {
					from = {x=2395,y=2052,z=7}, -- left top corner of event room
					to = {x=2490,y=2123,z=7} -- right bottom corner of event room
				},

				rewards = {2297}, -- reward id which player can win (reward is random)
				players = {
					max = 50,
					min = 2,
					minLevel = 100
				},

                        days = {
					['Monday'] = {'16:00:20', '20:00:20'},
					['Tuesday'] = {'16:00:20', '20:00:20'},
					['Wednesday'] = {'02:06:20', '20:00:20'},
					['Thursday'] = {'16:00:20', '20:00:20'},
					['Friday'] = {'16:00:20', '20:00:20'},
					['Saturday'] = {'16:00:20', '20:00:20'},
					['Sunday'] = {'12:00:20', '16:00:20', '20:00:20'}
				},


				fragLimit = 150, -- frag limit
				
				waitTime = 10, -- sekundy [ile gracz ma czekac jak padnie]

				delayTime = 1.0, -- time in which players who joined to event are teleporting to teleport position [miuntes]
				startEvent = 1, -- time from teleport to start event [seconds]
				stopEvent = 600, -- [seconds]
				text = 'Walka przez 10min lub 150 fragow, bez ue.'
			}

		]]>
	</config>

	<lib name="lib_rush_event">
		<![CDATA[
			domodlib('config_rush_event')

			local conditionBlue = createConditionObject(CONDITION_OUTFIT)
				setConditionParam(conditionBlue, CONDITION_PARAM_TICKS, -1)
				addOutfitCondition(conditionBlue, {lookType = 130, lookHead = 87, lookBody = 87, lookLegs = 87, lookFeet = 87})

			local conditionRed = createConditionObject(CONDITION_OUTFIT)
				setConditionParam(conditionRed, CONDITION_PARAM_TICKS, -1)
				addOutfitCondition(conditionRed, {lookType = 130, lookHead = 94, lookBody = 94, lookLegs = 94, lookFeet = 94})

			function doStartRushEvent()
				doSetStorage(configRushEvent.storages.joining, -1)

				if configRushEvent.players.min <= doCountPlayersRushEvent()[1] then
					for _, cid in ipairs(getPlayersOnline()) do
						local p = tostring(getCreatureStorage(cid, configRushEvent.storages.player))
						if p ~= '' then
							doTeleportThing(cid, p ~= 'blue' and configRushEvent.position.red or configRushEvent.position.blue)
							doCreatureSetNoMove(cid, false)
							doRemoveCondition(cid, CONDITION_INFIGHT)
							doAddCondition(cid, p ~= 'blue' and conditionRed or conditionBlue)
							doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'Get ready. Battle Event starts in '..configRushEvent.startEvent..' seconds.')
						end
					end

					addEvent(doSetStorage, configRushEvent.startEvent * 1000, configRushEvent.storages.main, 1)
					addEvent(doStopRushEvent, configRushEvent.stopEvent * 1000)
					doBroadcastMessage('Rush Event has started. LET\'S GO!')
				else
					for _, cid in ipairs(getPlayersOnline()) do
						if tostring(getCreatureStorage(cid, configRushEvent.storages.player)) ~= '' then
							doCreatureSetNoMove(cid, false)
							doRemoveCondition(cid, CONDITION_INFIGHT)
							doCreatureSetStorage(cid, configRushEvent.storages.player, '')
						end
					end

					doBroadcastMessage('Battle Event hasn\'t started beacuse there not were enough players.')
				end
			end

			function doStopRushEvent()
				if getStorage(configRushEvent.storages.main) > 0 then
					local team = nil
					if getStorage(configRushEvent.storages.b_score) == configRushEvent.fragLimit then
						team = 'blue'
					elseif getStorage(configRushEvent.storages.r_score) == configRushEvent.fragLimit then
						team = 'red'
					else
						if getStorage(configRushEvent.storages.r_score) >= getStorage(configRushEvent.storages.b_score) then
							team = 'red'
						else
							team = 'blue'
						end
					end

					local prize = math.random(#configRushEvent.rewards)
					for _, cid in ipairs(getPlayersOnline()) do
						if isInRange(getThingPos(cid), configRushEvent.room.from, configRushEvent.room.to) then
							if team == tostring(getCreatureStorage(cid, configRushEvent.storages.player)) then
								doPlayerAddItem(cid, configRushEvent.rewards[prize], 1)
								doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'Your team won! You have received '.. getItemNameById(configRushEvent.rewards[prize]) ..' as reward.')
							end

							doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid))
							doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid))
							doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
							doCreatureSetStorage(cid, configRushEvent.storages.player, '')
							doRemoveCondition(cid, CONDITION_OUTFIT)
						end
					end

					doBroadcastMessage('Battle Event has finished. The winner is '..team..' team ('..getStorage(configRushEvent.storages.r_score)..':'..getStorage(configRushEvent.storages.b_score)..'). Congratulations!')
					db.executeQuery("INSERT INTO `events` (`event_name`, `winner_name`, `won_item`, `time_win`) VALUES (\"Rush\", \""..team.."\", \""..prize.."\", "..getStorage(configRushEvent.storages.countEvent)..");")
					doSetStorage(configRushEvent.storages.main, -1)
					doSetStorage(configRushEvent.storages.countEvent, getStorage(configRushEvent.storages.countEvent) + 1)
					doSetStorage(configRushEvent.storages.r_score, 0)
					doSetStorage(configRushEvent.storages.b_score, 0)
				end
			end

			function doCountPlayersRushEvent()
				local x, blue, red = 0,0,0
				for _, cid in ipairs(getPlayersOnline()) do
					local p = tostring(getCreatureStorage(cid, configRushEvent.storages.player))
					if p ~= '' then
						if p ~= 'blue' then
							red = red + 1
						else
							blue = blue + 1
						end
						x = x + 1
					end
				end
				return {x, blue, red}
			end

			function doStartCountingRushEvent(x)
				if configRushEvent.delayTime-x > 0 then
					doBroadcastMessage('Battle Event is going to start in '..configRushEvent.delayTime-x..' minutes. You can join to the event by saying "!battle join".')
					addEvent(doStartCountingRushEvent, 60*1000, x+1)
				end
			end
		]]>
	</lib>

	<talkaction words="!stoprush" access="5" event="script">
		<![CDATA[
			domodlib("lib_rush_event")

			function onSay(cid, words, param)
				if getStorage(configRushEvent.storages.main) < 1 then
					return doPlayerSendCancel(cid, 'You can not do it if Rush Event is not enabled.')
				end
				
				doStopRushEvent()
				return true
			end
		]]>
	</talkaction>

	<talkaction words="!startrush" access="5" event="script">
		<![CDATA[
			domodlib("lib_rush_event")

			function onSay(cid, words, param)
				if getStorage(configRushEvent.storages.main) > 0 then
					return doPlayerSendCancel(cid, 'Rush Event is already running.')
				end

				for _, pid in ipairs(getPlayersOnline()) do
					if tostring(getCreatureStorage(pid, configRushEvent.storages.player)) ~= '' then
						doCreatureSetStorage(pid, configRushEvent.storages.player, '')
						doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid)), true)
						doRemoveCondition(pid, CONDITION_OUTFIT)
					end
				end

				doStartCountingRushEvent(0)
				doSetStorage(configRushEvent.storages.joining, 1)
				addEvent(doStartRushEvent, configRushEvent.delayTime * 60 * 1000)
				return true
			end
		]]>
	</talkaction>

	<talkaction words="!battle" event="script">
		<![CDATA[
			domodlib("lib_rush_event")

			function onSay(cid, words, param)
				if getStorage(configRushEvent.storages.joining) ~= 1 then
					return doPlayerSendCancel(cid, 'Rush Event hasn\'t started yet.')
				elseif param == '' then
					return doPlayerSendCancel(cid, 'Command param required (say: "!battle join" or "!battle leave.").')
				elseif getPlayerLevel(cid) < configRushEvent.players.minLevel then
					return doPlayerSendCancel(cid, 'You can\'t join to the event if you don\'t have a require '..configRushEvent.players.minLevel..' level.')
				elseif getTileInfo(getThingPos(cid)).protection ~= true then
					return doPlayerSendCancel(cid, 'You can\'t join to the event if you aren\'t in protection zone.')
				elseif exhaustion.check(cid, configRushEvent.storages.exhaust) ~= false then
					return doPlayerSendCancel(cid, 'You must wait '..exhaustion.get(cid, configRushEvent.storages.exhaust)..' seconds to use this command again.')
				end

				if param == 'join' then
					if tostring(getCreatureStorage(cid, configRushEvent.storages.player)) ~= '' then
						return doPlayerSendCancel(cid, 'You have arleady joined to event. Wait patiently for start.')
					elseif doCountPlayersRushEvent()[1] == configRushEvent.players.max then
						return doPlayerSendCancel(cid, 'Max players in the event have been reached.')
					end
					
					for _, v in ipairs(getPlayersOnline()) do
						if tostring(getCreatureStorage(v, configRushEvent.storages.player)) ~= '' then
							if getPlayerIp(cid) == getPlayerIp(v) then
								return doPlayerSendCancel(cid, 'In Rush event there is arleady player who have same ip like you.')
							end
						end
					end

					doCreatureSetNoMove(cid, true)
					if configRushEvent.text ~= '' then
						doPlayerPopupFYI(cid, configRushEvent.text)
					end

					doCreatureSetStorage(cid, configRushEvent.storages.player, doCountPlayersRushEvent()[3] >= doCountPlayersRushEvent()[2] and 'blue' or 'red')
					doAddCondition(cid, createConditionObject(CONDITION_INFIGHT, -1))
					doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'You have joined to Rush Event. You can\'t move until event don\'t start. Wait patiently for the event start.')
					doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'You have joined to Rush Event.')
				elseif param == 'leave' then
					if tostring(getCreatureStorage(cid, configRushEvent.storages.player)) ~= '' then
						return doPlayerSendCancel(cid, 'You can\'t leave from the event if you don\'t join.')
					end

					doCreatureSetNoMove(cid, false)
					doRemoveCondition(cid, CONDITION_INFIGHT)
					doCreatureSetStorage(cid, configRushEvent.storages.player, '')					
					doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'You have left from the Rush Event.')
				end

				exhaustion.set(cid, configRushEvent.storages.exhaust, 5)
				return true
			end
		]]>
	</talkaction>


	<globalevent name="Rush_Event_Days" interval="1000" event="script">
		<![CDATA[
			domodlib("lib_rush_event")

			local daysOpen = {}
			for k, v in pairs(configRushEvent.days) do
				table.insert(daysOpen, k)
			end

			function onThink(cid, interval)
				if isInArray(daysOpen, os.date('%A')) then
					if isInArray(configRushEvent.days[os.date('%A')], os.date('%X', os.time())) then
						if getStorage(configRushEvent.storages.joining) ~= 1 then
							doStartCountingRushEvent(0)

							for _, pid in ipairs(getPlayersOnline()) do
								if tostring(getCreatureStorage(pid, configRushEvent.storages.player)) ~= '' then
									doCreatureSetStorage(pid, configRushEvent.storages.player, '')
									doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid)), true)
									doRemoveCondition(pid, CONDITION_OUTFIT)
								end
							end

							doSetStorage(configRushEvent.storages.joining, 1)
							addEvent(doStartRushEvent, configRushEvent.delayTime * 60 * 1000)
						end
					end
				end

				return true
			end
		]]>
	</globalevent>

	<event type="statschange" name="Rush_Event_Dead" event="script">
		<![CDATA[
			domodlib("lib_rush_event")

			function onStatsChange(cid, attacker, type, combat, value)
				if type == 1 and getCreatureHealth(cid) <= value then
					if isInRange(getThingPos(cid), configRushEvent.room.from, configRushEvent.room.to) then
						if isPlayer(cid) then
							local p = tostring(getCreatureStorage(cid, configRushEvent.storages.player))
							doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid))
							doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid))
							doTeleportThing(cid, p ~= 'blue' and configRushEvent.position.red or configRushEvent.position.blue)
							doCreatureSetNoMove(cid, true)
							addEvent(doCreatureSetNoMove, configRushEvent.waitTime * 1000, cid, false)

							if p ~= 'blue' then
								doSetStorage(configRushEvent.storages.b_score, math.max(getStorage(configRushEvent.storages.b_score), 0) + 1)
								if getStorage(configRushEvent.storages.b_score) == configRushEvent.fragLimit then
									doStopRushEvent()
								end
							else
								doSetStorage(configRushEvent.storages.r_score, math.max(getStorage(configRushEvent.storages.r_score), 0) + 1)
								if getStorage(configRushEvent.storages.r_score) == configRushEvent.fragLimit then
									doStopRushEvent()
								end
							end
							return false
						end
					end
				elseif isInArray({1,3}, type) and isPlayer(attacker) and isPlayer(cid) then
					if isInRange(getThingPos(cid), configRushEvent.room.from, configRushEvent.room.to) then
						if tostring(getCreatureStorage(cid, configRushEvent.storages.player)) == tostring(getCreatureStorage(attacker, configRushEvent.storages.player)) then
							return false
						end
					end
				end
				return true
			end
		]]>
	</event>

	<event type="login" name="Rush_Event_Login" event="script">
		<![CDATA[
			domodlib("config_rush_event")

			function onLogin(cid)
				if tostring(getCreatureStorage(cid, configRushEvent.storages.player)) ~= '' then
					doCreatureSetStorage(cid, configRushEvent.storages.player, '')
					doRemoveCondition(cid, CONDITION_OUTFIT)
				end

				registerCreatureEvent(cid, 'Rush_Event_Dead')
				return true
			end
		]]>
	</event>

	<globalevent name="Rush_Event_Start" type="startup" event="script">
		<![CDATA[
			domodlib("config_rush_event")

			function onStartup()
				doSetStorage(configRushEvent.storages.main, -1)
				doSetStorage(configRushEvent.storages.r_score, 0)
				doSetStorage(configRushEvent.storages.b_score, 0)
				doSetStorage(configRushEvent.storages.joining, -1)
				return true
			end
		]]>
	</globalevent>
</mod>

Wie może ktoś jak rozwiązać ten problem ?
 
storages = {
main = 'rushEventMain', -- set free storage
player = 'rushEventPlayer', -- set free storage
joining = 'rushEventJoining', -- set free storage
b_score = 'rushEventBlueScore', -- set free storage
r_score = 'rushEventRedScore', -- set free storage
exhaust = 'rushEventExhaust',
countEvent = 'rushEventCountEvent'
},


Należy wszystkie storage zamienić na liczby: np. exhaust = '99999999',
Kiedys miałem ten sam problem, lecz w porę się zorientowałem :p
 
Back
Top