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

Polepszenie danej profesji

Retired

New Member
Joined
Apr 19, 2009
Messages
233
Reaction score
1
Witam Jak polepszyc master sorca zeby walil mocniej z sd od elder druida wie ktos?
 
A z 0.3.3 na 0.3.4 to normalnei tylko npc data i actions pliki skopiowac i bdzie dzialalo czy trzeba bedzie cos przerabiac ??
 
Jeśli jednak chciał byś zmienić tylko dla sd to proszę.
Oczywiście ustaw dmg tak żeby było odpowiednio bo to co dałem nie jest zbytnio zbalansowane.
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2.5, -30, -3.125, 0)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2.0, -30, -2.5, 0)

function onCastSpell(cid, var)
local voc = getPlayerVocation(cid)
if voc == 1 or voc == 5 or voc == 9  then
return doCombat(cid, combat, var)
elseif voc ~= 1 and voc ~= 5 and voc ~= 9 then
return doCombat(cid, combat2, var)
end
end
 
elf jest jeszcze taki mały debug jak używałem tego itema:
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerVocation(cid) == 5 then
		setPlayerPromotionLevel(cid, 2)
		doCreatureSay(cid, "You are now a Super Sorcerer!", TALKTYPE_ORANGE_1)
		doRemoveItem(item.uid, 1)
	elseif getPlayerVocation(cid) == 6 then
		setPlayerPromotionLevel(cid, 2) 
		doCreatureSay(cid, "You are now a Super Druid!", TALKTYPE_ORANGE_1)
		doRemoveItem(item.uid, 1)
	elseif getPlayerVocation(cid) == 7 then
		setPlayerPromotionLevel(cid, 2) 
		doCreatureSay(cid, "You are now a Super Paladin!", TALKTYPE_ORANGE_1)
		doRemoveItem(item.uid, 1)
	elseif getPlayerVocation(cid) == 8 then
		setPlayerPromotionLevel(cid, 2) 
		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

żeby zmienić profesje na np. super sorcerer, i byłem super sorcerer dawałem reloga i znów powracałem do starej profesji (master sorcerer)
chyba jest jakiś debug z zapisywaniem profesji powyżej id 8
 
Back
Top