What's new

-Skrypt Pojedyncza misja zabij x potwor?w.

Status
Not open for further replies.

zabka229

Advanced User
Joined
Jul 12, 2009
Messages
371
Reaction score
7
Witam, poszukuj? pojedynczego skryptu na zabicie x potwor?w, mia?o by to wygl?da? tak:
Code:
if getPlayerStorageValue(cid,1) == 1 then
zabij 5 danego potwora, po zabiciu tych 5 potworkow zmienia sie storage (cid,1) == 2
end
Chwilowo mam zbyt ma?o czasu, ?eby zrobi? to samemu, jako ?e nie jestem jakim? zaawansowanym programist? to troch? by mi to zaj??o.
Z g?ry dzi?kuje.
 

Piotre00

Advanced User
Joined
Aug 28, 2008
Messages
178
Reaction score
17
Odp: Pojedyncza misja zabij x potwor?w.

Przy otrzymywaniu questa ustaw graczowi storage 2222 na 1 oraz 3333 na 0

Code:
function onKill(cid, target)
	if getPlayerStorageValue(cid,2222) == 1 then
		if string.lower(getCreatureName(target)) == "dragon" then
			if getPlayerStorageValue(cid,3333) < 4 then
				setPlayerStorageValue(cid,3333, getPlayerStorageValue(cid,3333)+1)
			else
				setPlayerStorageValue(cid,2222,2)
			end
		end
	end
	return true
end
 

zabka229

Advanced User
Joined
Jul 12, 2009
Messages
371
Reaction score
7
Odp: Pojedyncza misja zabij x potwor?w.

Dzi?ki wielkie :)
 
Status
Not open for further replies.
Top