• 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!

Super Promocja [HELP]

rafi47

New Member
Joined
May 1, 2013
Messages
8
Reaction score
0
Witam, mam skrypt na super promocje do ots roxor ale nie działa on poprawnie ponieważ daje np super knight i wszystko jest dobrze ale po relogu postaci mamy zaraz elite knight i nie wiem co jest.

Za pomoc dam rep++

Oto skrypt:

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerVocation(cid) == 5 then
		doPlayerSetVocation(cid, 9)
		doCreatureSay(cid, "You are now a Super Sorcerer!", TALKTYPE_ORANGE_1)
		doRemoveItem(item.uid, 1)
	elseif getPlayerVocation(cid) == 6 then
		doPlayerSetVocation(cid, 10)
		doCreatureSay(cid, "You are now a Super Druid!", TALKTYPE_ORANGE_1)
		doRemoveItem(item.uid, 1)
	elseif getPlayerVocation(cid) == 7 then
		doPlayerSetVocation(cid, 11)
		doCreatureSay(cid, "You are now a Super Paladin!", TALKTYPE_ORANGE_1)
		doRemoveItem(item.uid, 1)
	elseif getPlayerVocation(cid) == 8 then
		doPlayerSetVocation(cid, 12)
		doCreatureSay(cid, "You are now a Super Knight!", TALKTYPE_ORANGE_1)
		doRemoveItem(item.uid, 1)
	else
		doPlayerSendCancel(cid,"You need to be promoted in order to use this item.")
	end
end
 
Zamiast zmieniania profesji postaci po prostu ustaw im promocję, służy do tego funkcja:
Lua:
doPlayerSetPromotionLevel(cid, poziom_promocji)

Tylko nie jestem pewien, czy na twoim silniku będzie to działać.
 
Back
Top