What's new

-LUA & XML Zabieranie soul

Status
Not open for further replies.

Anakonta

Senior User
Joined
Oct 5, 2010
Messages
536
Reaction score
10
Witam, usi?uj? zrobi? skrypt kt?ry b?dzie zabiera? ka?demu graczowi online i soul co 1 sekund? je?eli nie ma pz, napisa?em co? takiego ale serwer traktuje trzeci? linijk? jak by jej nie by?o. Soul jest zabierany nawet jak bije moba. Skrypt robiony w globalevents
Code:
function onThink(interval, lastExecution)
	for _, pid in ipairs(getPlayersOnline()) do
		if (isPlayerPzLocked(pid) == false) then
			doPlayerAddSoul(pid, -1)
		end
	end
return 1
end
 

De$t

Active User
Joined
Nov 20, 2008
Messages
148
Reaction score
27
Odp: Zabieranie soul

Code:
if (isPlayerPzLocked(pid) == false) then

Ta funkcja sprawdza czy kto? ma pz, ale takiego jak po uderzeniu gracza, lub gdy ma si? pk. Spr?buj tak:

Code:
if not getCreatureCondition(pid, CONDITION_INFIGHT) then

Lub co? w tym stylu.
 

Anakonta

Senior User
Joined
Oct 5, 2010
Messages
536
Reaction score
10
Odp: Zabieranie soul

Dzi?ki, o to mi chodzi?o rep +
 
Status
Not open for further replies.
Top