Mam problem z inquisition questem, otóż u mnie owy quest polega on na tym, że jak się zabije jednego z boosów, załóżmy, że Ushuriel, jego ciało daje się na odpowiedni sqm po czym ciągnie się za dźwignie i dzięki temu ściana blokująca tp ma zniknąć. Ale nie wiem z jakiej przyczyny, nie działa mi ten skrypt, mógłby ktoś go poprawić?
Oraz skrypt do jednego z bossów:
PHP:
function onUse(cid, item, frompos, item2, topos)
local switchUniqueID = 12612 -- uniqueID of switch
local switchID = 1945
local switch2ID = 1946
local itemID = 5527
local itempos = {x=1857, y=1642, z=5, stackpos=1}
local wallpos = {x=1855, y=1644, z=5, stackpos=1}
local playername = getPlayerName(cid)
local getitem = getThingfromPos(itempos)
local wallchk = getThingfromPos(wallpos)
if item.uid == switchUniqueID and item.itemid == switchID and getitem.itemid == itemID and wallchk.itemid == 1032 then
doSendMagicEffect(itempos,10)
doSendMagicEffect(wallchk,10)
doRemoveItem(getitem.uid,1)
doRemoveItem(wallchk.uid,1)
doTransformItem(item.uid,item.itemid+1)
addEvent(onTimer4, 2*60*1000)
elseif item.uid == switchUniqueID and item.itemid == switch2ID then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"You need to place the corpse of the slain demon lord.")
end
return 1
end
function onTimer4()
wallnewpos = {x=1855, y=1644, z=5}
doCreateItem(1032,1,wallnewpos)
end
Oraz skrypt do jednego z bossów:
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Ushuriel" nameDescription="Ushuriel" race="fire" experience="10000" speed="350" manacost="0">
<health now="50000" max="50000"/>
<look type="12" head="0" body="95" legs="19" feet="112" corpse="5527"/>
<targetchange interval="5000" chance="8"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="0"/>
<flag convinceable="0"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag canpushcreatures="1"/>
<flag targetdistance="1"/>
<flag staticattack="85"/>
<flag runonhealth="0"/>
</flags>
<!--script>
<event name="inquisitionPortals"/>
</script-->
<attacks>
<attack name="melee" interval="2000" min="0" max="-1028"/>
<attack name="physical" interval="1000" chance="10" length="10" spread="0" min="-0" max="-500">
<attribute key="areaEffect" value="mortarea"/>
</attack>
<attack name="death" interval="1000" chance="8" radius="5" target="0" min="-30" max="-760">
<attribute key="areaEffect" value="mortarea"/>
<attribute key="shootEffect" value="death"/>
</attack>
<attack name="earth" interval="2000" chance="9" length="8" spread="0" min="-0" max="-585">
<attribute key="areaEffect" value="smallplants"/>
</attack>
<attack name="ice" interval="1000" chance="8" target="0" radius="6" min="0" max="-430">
<attribute key="areaEffect" value="icetornado"/>
</attack>
<attack name="drunk" interval="3000" chance="11" radius="6" target="0" duration="30000">
<attribute key="areaEffect" value="purplenote"/>
</attack>
<attack name="energycondition" interval="2000" chance="15" radius="4" target="0" min="-250" max="-250">
<attribute key="areaEffect" value="energy"/>
</attack>
</attacks>
<defenses armor="50" defense="45">
<defense name="healing" interval="1000" chance="12" min="400" max="600">
<attribute key="areaEffect" value="greenshimmer"/>
</defense>
<defense name="speed" interval="1000" chance="4" speedchange="400" duration="7000">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
</defenses>
<immunities>
<immunity lifedrain="1"/>
<immunity paralyze="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10"/>
<loot>
<item id="6300" chance="7777"/> --death ring
<item id="2195" chance="4444" /> -- Boh
<item id="2393" chance="3000"/> -- Giant sword
<item id="2432" chance="5555"/> -- Fire Axe
<item id="2402" chance="10000"/> --Silver dagger
<item id="2477" chance="6666" /> --Knight legs
<item id="2164" chance="7300"/> --might ring
<item id="1987" chance="100000">
<inside>
<item id="2150" countmax="17" chance1="6000" chancemax="0"/> --Small amethyst
<item id="2462" chance="9700"/>
<item id="7591" chance="17000"/> --GHP
<item id="7591" chance="9000"/> --GHP
<item id="2149" countmax="6" chance1="4388" chancemax="0"/>
<item id="2396" chance="6666"/> --Ice Rapier
<item id="2158" chance="4444"/> --Blue gem
<item id="2470" chance="6500"/> --Golden legs
<item id="2520" chance="9999"/> --Demon shield
</inside>
</item>
</loot>
</monster>