• 01-04.05.2026 - DOUBLE EXP / SKILL EVENT!

B?ad w skrypcie

Status
Zamknięty.

adasz

Advanced User
Zarejestrowany
Dołączył
Maj 16, 2009
Posty
192
Liczba reakcji
0
Kolejne b?edy w skryptach

otsotstytuu.png



Oto skrypty:

Kill.lua:

Kod:
dofile("./GuildWar.lua") local PZ = createConditionObject(CONDITION_INFIGHT) setConditionParam(PZ, CONDITION_PARAM_TICKS, getConfigInfo('pzLocked')) function onKill(cid, target) if isPlayer(cid) == TRUE and isPlayer(target) == TRUE then local myGuild = getPlayerGuildId(cid) local enemyGuild = getPlayerGuildId(target) if myGuild ~= 0 and enemyGuild ~= 0 then if enemyGuild == getGuildWarInfo(myGuild).With then removeFrag(cid) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "This Frag will not count") --Remove this if you wish doAddCondition(cid, PZ) registerDeath(myGuild, enemyGuild, cid, target) end end end return TRUE end

A drugi b??d w wars.lua juz naprawi?em
 
Odp: B?ad w skrypcie

Wrzuc normalne zdj?cie bo poucina?e? to tak,?e ci??ko si? po?apa? ...
 
Odp: B?ad w skrypcie

Spr?buj przed return true dopisa? end lub usun??. Spr?buj to i to.

Je?li to nie pomo?e to pisz. Postaram si? co? innego wykombinowa?
 
Odp: B?ad w skrypcie

PHP:
dofile("./GuildWar.lua")
local PZ = createConditionObject(CONDITION_INFIGHT)
setConditionParam(PZ, CONDITION_PARAM_TICKS, getConfigInfo('pzLocked'))

function onKill(cid, target)
	if isPlayer(cid) == TRUE and isPlayer(target) == TRUE then
	local myGuild = getPlayerGuildId(cid)
	local enemyGuild = getPlayerGuildId(target)
		if myGuild ~= 0 and enemyGuild ~= 0 then
			if enemyGuild == getGuildWarInfo(myGuild).With then
				removeFrag(cid)
				doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "This Frag will not count")
				doAddCondition(cid, PZ)
				registerDeath(myGuild, enemyGuild, cid, target)
			end
		end
	end
return TRUE
end
 
Status
Zamknięty.
Back
Do góry