What's new

Poty dla voca

Status
Not open for further replies.

Mondez

Advanced User
Joined
Sep 14, 2008
Messages
244
Reaction score
16
Mam poty, wszystko ?adnie, pi?knie ..
Doda?em now? profesje o nazwie "Essence Druid"
Jak doda? do great mana pota ?eby ta voc te? mog?a u?ywa? pota ??
PHP:
	if((not(isSorcerer(itemEx.uid) or isDruid(itemEx.uid) or isNone(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 80) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
		doCreatureSay(itemEx.uid, "Only sorcerers and druids of level 80 or above may drink this fluid.", TALKTYPE_ORANGE_1)
		return TRUE
	end
Chyba w tej linijce to trzeba zrobi?, prosze o help
 

Matre

Nie b?dzie ciszy...
Joined
Sep 12, 2008
Messages
789
Reaction score
143
Odp: Poty dla voca

Code:
 if((not(isSorcerer(itemEx.uid) or isDruid(itemEx.uid) or isEssence Druid(itemEx.uid) or isNone(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 80) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then 
        doCreatureSay(itemEx.uid, "Only sorcerers and druids of level 80 or above may drink this fluid.", TALKTYPE_ORANGE_1) 
        return TRUE 
    end


aczkolwiek je?li da?e? tej profecji vocation 10 to powinna mie? mo?liwo?? u?ywania tych potion?w
bez zmiany skryptu
 

Mondez

Advanced User
Joined
Sep 14, 2008
Messages
244
Reaction score
16
Odp: Poty dla voca

Moje nowe voce s? od 9 do 12 .... doda?em t? linijke i nie dzia?a..
 

Xart Irok

Senior User
Joined
Sep 7, 2008
Messages
2,925
Reaction score
419
Age
32
Odp: Poty dla voca

podmini sobie na to w pliku function te funkcje i bedzie chodzic tez mam profy na tych id ale trzeba bylo gdzie idzej szukac bledu
PHP:
function isSorcerer(cid)
	if(isPlayer(cid) == FALSE) then
		debugPrint("isSorcerer: Player not found.")
		return false
	end

	return (isInArray({1,5,9}, getPlayerVocation(cid)) == TRUE)
end

function isDruid(cid)
	if(isPlayer(cid) == FALSE) then
		debugPrint("isDruid: Player not found.")
		return false
	end

	return (isInArray({2,6,10}, getPlayerVocation(cid)) == TRUE)
end

function isPaladin(cid)
	if(isPlayer(cid) == FALSE) then
		debugPrint("isPaladin: Player not found.")
		return false
	end

	return (isInArray({3,7,11}, getPlayerVocation(cid)) == TRUE)
end

function isKnight(cid)
	if(isPlayer(cid) == FALSE) then
		debugPrint("isKnight: Player not found.")
		return false
	end

	return (isInArray({4,8,12}, getPlayerVocation(cid)) == TRUE)
end
 
Status
Not open for further replies.
Top