• 01-04.05.2026 - DOUBLE EXP / SKILL EVENT!

Wczytywanie czaru

Status
Zamknięty.

Cris07

User
Zarejestrowany
Dołączył
Sierpień 25, 2011
Posty
19
Liczba reakcji
0
Cze,mam problem z wczytywaniem potwora stworzonego przez niejakiego Gelio ,
mianowicie wyskakuje mi problem ze wczytaniem skryptu na czary.
Link do skryptu :http://tibia.net.pl/kosz-biblioteki/67513-player-killer-wyglada-jak-prawdziwy-player-gesior.html


aaa...zapomnia?bym screen z konsoli :

errormonst.jpg
 
Odp: Wczytywanie czaru

od?wie?am ...nadal potrzebuje waszej pomocy !
 
Odp: Wczytywanie czaru

No wiesz. Wiele os?b by Ci pomog?o, ale jedyne co mo?emy w tej chwili zrobi? to rzuci? w Ciebie tym zdj?ciem.
 
Odp: Wczytywanie czaru

skrypt og?lnie niczym si? nie r??ni ni? ten co poda?em w 1 po?cie no ale prosz? !

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Player Killer" nameDescription="a player killer(Level 102). He is a Royal Paladin. He is Member of PK SQD" race="blood" experience="1500" speed="450" manacost="0">
<health now="1700" max="1700"/>
<look type="128" head="20" body="30" legs="40" feet="50" corpse="6080"/>
<targetchange interval="20000" chance="0"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="0"/>
<flag convinceable="0"/>
<flag pushable="1"/>
<flag canpushitems="1"/>
<flag staticattack="100"/>
<flag lightlevel="233"/>
<flag lightcolor="35"/>
<flag targetdistance="3"/>
<flag runonhealth="500"/>
<flag skull="3" />
</flags>
<attacks>
<attack name="physical" interval="2000" chance="100" range="6" min="-20" max="-320">
<attribute key="shootEffect" value="arrow"/>
</attack>
<attack name="PKspellMonster" interval="2000" chance="100"/>
</attacks>
<defenses armor="27" defense="52" />
<immunities>
<immunity physical="0"/>
<immunity energy="0"/>
<immunity fire="0"/>
<immunity poison="0"/>
<immunity lifedrain="0"/>
<immunity paralyze="0"/>
<immunity outfit="0"/>
<immunity drunk="0"/>
<immunity invisible="1"/>
</immunities>
<loot>
<item id="2148" countmax="20" chance1="100000" chancemax="0"/>
<item id="1949" chance="10000"/>
<item id="2467" chance="10000"/>
<item id="2642" chance="6666"/>
<item id="1987" chance="100000">
<inside>
<item id="2044" chance="6666"/>
<item id="2689" countmax="3" chance1="20000" chancemax="0"/>
<item id="2401" chance="3333"/>
<item id="2166" chance="1428"/>
</inside>
</item>
</loot>
</monster>


-- haste
local combatHaste = createCombatObject()
setCombatParam(combatHaste, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combatHaste, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combatHaste, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 14000)
setConditionFormula(condition, 0, 350, 0, 350)
setCombatCondition(combatHaste, condition)
-- outfit
local outCombat = createCombatObject()
setCombatParam(outCombat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
local condition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 3 * 24 * 3600 * 1000) -- here time in miliseconds, default 3 days
addOutfitCondition(condition, 0, 128, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 129, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 130, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 131, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 132, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 133, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 134, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 143, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 144, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 145, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 146, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 151, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 152, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 153, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 154, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 251, 114, 114, 94, 94)
addOutfitCondition(condition, 0, 128,39, 35,45, 45)
addOutfitCondition(condition, 0, 129,39, 35,45, 45)
addOutfitCondition(condition, 0, 130,39, 35,45, 45)
addOutfitCondition(condition, 0, 131,39, 35,45, 45)
addOutfitCondition(condition, 0, 132,39, 35,45, 45)
addOutfitCondition(condition, 0, 133,39, 35,45, 45)
addOutfitCondition(condition, 0, 134,39, 35,45, 45)
addOutfitCondition(condition, 0, 143,39, 35,45, 45)
addOutfitCondition(condition, 0, 144,39, 35,45, 45)
addOutfitCondition(condition, 0, 145,39, 35,45, 45)
addOutfitCondition(condition, 0, 146,39, 35,45, 45)
addOutfitCondition(condition, 0, 151,39, 35,45, 45)
addOutfitCondition(condition, 0, 152,39, 35,45, 45)
addOutfitCondition(condition, 0, 153,39, 35,45, 45)
addOutfitCondition(condition, 0, 154,39, 35,45, 45)
addOutfitCondition(condition, 0, 251,39, 35,45, 45)
setCombatCondition(outCombat, condition)
-- exevo san
local sanCombat = createCombatObject()
setCombatParam(sanCombat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(sanCombat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatParam(sanCombat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
function onGetDmg1(cid, level, maglevel)
return -60, -200
end
setCombatCallback(sanCombat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetDmg1")
-- SD
local sdCombat = createCombatObject()
setCombatParam(sdCombat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(sdCombat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(sdCombat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
function onGetDmg2(cid, level, maglevel)
return 250, 500
end
setCombatCallback(sdCombat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetDmg2")
function onCastSpell(cid, var)
if(isCreature(variantToNumber(var)) == TRUE) then
if(getCreatureCondition(cid, CONDITION_OUTFIT) == 0) then -- random outfit
doCombat(0, outCombat, numberToVariant(cid))
end
if(getCreatureHealth(cid) < 500 and getCreatureCondition(cid, CONDITION_HASTE) == 0) then
doCombat(0, combatHaste, numberToVariant(cid))
doCreatureSay(cid,"utani hur",TALKTYPE_SAY)
else
if(math.random(0,99) > 80 and (getCreatureMaxHealth(cid) - getCreatureHealth(cid) > 450)) then -- 20% percent chance to heal when hp lose higher then 450
doTargetCombatHealth(0, cid, COMBAT_HEALING, 600, 800, CONST_ME_MAGIC_BLUE)
doCreatureSay(cid,"exura san",TALKTYPE_SAY)
elseif(math.random(0,99) > 60 and (getCreatureMaxHealth(cid) - getCreatureHealth(cid) > 750)) then -- 40% percent chance to heal when hp lose higher then 750
doTargetCombatHealth(0, cid, COMBAT_HEALING, 600, 800, CONST_ME_MAGIC_BLUE)
doCreatureSay(cid,"exura san",TALKTYPE_SAY)
elseif(math.random(0,99) > 20 and (getCreatureMaxHealth(cid) - getCreatureHealth(cid) > 950)) then -- 80% percent chance to heal when hp lose higher then 950
doTargetCombatHealth(0, cid, COMBAT_HEALING, 600, 800, CONST_ME_MAGIC_BLUE)
doCreatureSay(cid,"exura san",TALKTYPE_SAY)
elseif(getCreatureMaxHealth(cid) - getCreatureHealth(cid) > 300) then -- 100% to drink great spirit potion if hp lose higher then 100
doTargetCombatHealth(0, cid, COMBAT_HEALING, 200, 400, CONST_ME_MAGIC_BLUE)
doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)
end
end
if(math.random(0,99) > 60) then -- 40% to shot sd
doCombat(cid, sdCombat, var)
doTargetCombatHealth(cid, variantToNumber(var), COMBAT_DEATHDAMAGE, -250, -500, CONST_ME_NONE)
elseif(math.random(0,99) > 30) then -- 70% to shot exori san
doCombat(cid, sanCombat, var)
doTargetCombatHealth(cid, variantToNumber(var), COMBAT_HOLYDAMAGE, -60, -200, CONST_ME_NONE)
doCreatureSay(cid,"exori san",TALKTYPE_SAY)
end
end
end

<instant name="PKspellMonster" words="PKspellMonster" lvl="10" mana="500" prem="1" aggressive="0" needtarget="1" params="0" exhaustion="100" soul="3500" script="PK.lua" />


Prosz? :)
 
Odp: Wczytywanie czaru

PHP:
-- haste 
local combatHaste = createCombatObject() 
setCombatParam(combatHaste, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) 
setCombatParam(combatHaste, COMBAT_PARAM_AGGRESSIVE, 0) 
setCombatParam(combatHaste, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

local condition = createConditionObject(CONDITION_HASTE) 
setConditionParam(condition, CONDITION_PARAM_TICKS, 14000) 
setConditionFormula(condition, 0, 350, 0, 350) 
setCombatCondition(combatHaste, condition) 

-- outfit 
local outCombat = createCombatObject() 
setCombatParam(outCombat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) 

local condition = createConditionObject(CONDITION_OUTFIT) 
setConditionParam(condition, CONDITION_PARAM_TICKS, 3 * 24 * 3600 * 1000) -- here time in miliseconds, default 3 days 
addOutfitCondition(condition, 0, 128, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 129, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 130, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 131, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 132, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 133, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 134, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 143, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 144, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 145, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 146, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 151, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 152, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 153, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 154, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 251, 114, 114, 94, 94) 
addOutfitCondition(condition, 0, 128,39, 35,45, 45) 
addOutfitCondition(condition, 0, 129,39, 35,45, 45) 
addOutfitCondition(condition, 0, 130,39, 35,45, 45) 
addOutfitCondition(condition, 0, 131,39, 35,45, 45) 
addOutfitCondition(condition, 0, 132,39, 35,45, 45) 
addOutfitCondition(condition, 0, 133,39, 35,45, 45) 
addOutfitCondition(condition, 0, 134,39, 35,45, 45) 
addOutfitCondition(condition, 0, 143,39, 35,45, 45) 
addOutfitCondition(condition, 0, 144,39, 35,45, 45) 
addOutfitCondition(condition, 0, 145,39, 35,45, 45) 
addOutfitCondition(condition, 0, 146,39, 35,45, 45) 
addOutfitCondition(condition, 0, 151,39, 35,45, 45) 
addOutfitCondition(condition, 0, 152,39, 35,45, 45) 
addOutfitCondition(condition, 0, 153,39, 35,45, 45) 
addOutfitCondition(condition, 0, 154,39, 35,45, 45) 
addOutfitCondition(condition, 0, 251,39, 35,45, 45) 
setCombatCondition(outCombat, condition) 

-- exevo san 
local sanCombat = createCombatObject() 
setCombatParam(sanCombat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) 
setCombatParam(sanCombat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE) 
setCombatParam(sanCombat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY) 

function onGetDmg1(cid, level, maglevel) 
return -60, -200 
end 
setCombatCallback(sanCombat, CALLBACK_PARAM_LEVELMAGICVALUE, 'onGetDmg1') 

-- SD 
local sdCombat = createCombatObject() 
setCombatParam(sdCombat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) 
setCombatParam(sdCombat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) 
setCombatParam(sdCombat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH) 

function onGetDmg2(cid, level, maglevel) 
return -250, -500 
end 
setCombatCallback(sdCombat, CALLBACK_PARAM_LEVELMAGICVALUE, 'onGetDmg2') 

function onCastSpell(cid, var) 
if isCreature(variantToNumber(var)) then 
	if(getCreatureCondition(cid, CONDITION_OUTFIT) == 0) then -- random outfit 
		doCombat(variantToNumber(var), outCombat, numberToVariant(cid)) 
	end
	if(getCreatureHealth(cid) < 500 and getCreatureCondition(cid, CONDITION_HASTE) == 0) then 
		doCombat(cid, combatHaste, numberToVariant(cid)) 
		doCreatureSay(cid, 'utani hur', TALKTYPE_SAY) 
	else 
		if(math.random(100) <= 20 and (getCreatureMaxHealth(cid) - getCreatureHealth(cid) > 450)) then -- 20% percent chance to heal when hp lose higher then 450 
			doTargetCombatHealth(0, cid, COMBAT_HEALING, 600, 800, CONST_ME_MAGIC_BLUE) 
			doCreatureSay(cid,'exura san',TALKTYPE_SAY) 
		elseif(math.random(100) <= 40 and (getCreatureMaxHealth(cid) - getCreatureHealth(cid) > 750)) then -- 40% percent chance to heal when hp lose higher then 750 
			doTargetCombatHealth(0, cid, COMBAT_HEALING, 600, 800, CONST_ME_MAGIC_BLUE) 
			doCreatureSay(cid,'exura san',TALKTYPE_SAY) 
		elseif(math.random(100) <= 80 and (getCreatureMaxHealth(cid) - getCreatureHealth(cid) > 950)) then -- 80% percent chance to heal when hp lose higher then 950 
			doTargetCombatHealth(0, cid, COMBAT_HEALING, 600, 800, CONST_ME_MAGIC_BLUE) 
			doCreatureSay(cid,'exura san',TALKTYPE_SAY) 
		elseif(getCreatureMaxHealth(cid) - getCreatureHealth(cid) > 300) then -- 100% to drink great spirit potion if hp lose higher then 100 
			doTargetCombatHealth(0, cid, COMBAT_HEALING, 200, 400, CONST_ME_MAGIC_BLUE) 
			doCreatureSay(cid, 'Aaaah...', TALKTYPE_ORANGE_1) 
		end 
	end 
	if math.random(100) <= 40 then -- 40% to shot sd 
		doCombat(cid, sdCombat, var) 
		return doTargetCombatHealth(cid, variantToNumber(var), COMBAT_DEATHDAMAGE, -250, -500, CONST_ME_NONE) 
	elseif math.random(100) <= 70 then -- 70% to shot exori san 
		doCombat(cid, sanCombat, var) 
		doTargetCombatHealth(cid, variantToNumber(var), COMBAT_HOLYDAMAGE, -60, -200, CONST_ME_NONE)
		return doCreatureSay(cid,'exori san',TALKTYPE_SAY) 
	end 
end 
return true
end
 
Odp: Wczytywanie czaru

ehh...niestety nadal to samo ;/
tutaj dodaje jeszcze wpis z spells.xml

Kod:
	<instant name="Death Strike" words="exori mort" lvl="16" mana="20" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="attack/death strike.lua">
		<vocation id="1"/>
		<vocation id="2"/>
		<vocation id="5"/>
		<vocation id="6"/>
	</instant>
 
Ostatnia edycja:
Odp: Wczytywanie czaru

jak dalmnie usun (level102)

i Zamiast osobnego skryptu na czar w miejsce

<attacks>
<attack name="physical" interval="2000" chance="100" range="6" min="-20" max="-320">
<attribute key="shootEffect" value="arrow"/>
</attack>

Wklej.
<attack name="Explosive Arrow" interval="3000" chance="100" min="-40000" max="-50000" />

Wyglonda? ma to tak:
<attacks>
<attack name="Explosive Arrow" interval="3000" chance="100" min="-40000" max="-50000" />
<attack name="physical" interval="2000" chance="100" range="6" min="-20" max="-320">
<attribute key="shootEffect" value="arrow"/>
</attack>
A je?eli to nie pomo?e Potworek jest ?le napisany :)
 
Status
Zamknięty.
Back
Do góry