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

CreatureEvent NPC Grizzly Adams - almost how RL Tibia.

Oskar1121

Excellent OT User
Joined
Jul 15, 2009
Messages
634
Reaction score
537
Location
Poland
Updated At: Saturday November 19th, 2011 at 8:17 A.M
Last Tested At: Saturday November 12th, 2011 at 10:07 A.M
Tested On: The Forgotten Server 0.3.6pl1



~~NPC~~
Make a file about name is Grizzly_Adams.lua and paste:
Grizzly_Adams.lua - NPC file

Make a file about name is Grizzly Adams.xml and paste this:
PHP:
<?xml version="1.0" encoding="UTF-8"?> 
<mod name="Grizzly Adams" version="2.0" author="Oskar" contact="http://tibia.net.pl/members/oskar.html" enabled="yes"> 
<config name="grizzlyAdams_conf"><![CDATA[ 
task = { 
                --6-49-- 
                ['crocodile'] = {storage = 9999, beginStorageValue = 1, finishStorageValue = 2, count = 300}, 
                ['tarantula'] = {storage = 9998, beginStorageValue = 3, finishStorageValue = 4, count = 300}, 
                ['badger'] = {storage = 9997, beginStorageValue = 5, finishStorageValue = 6, points = 1, count = 300}, 
                ['carniphila'] = {storage = 9996, beginStorageValue = 7, finishStorageValue = 8, count = 150}, 
                ['stone golem'] = {storage = 9995, beginStorageValue = 9, finishStorageValue = 10, points = 1, count = 200}, 
                ['mammoth'] = {storage = 9994, beginStorageValue = 11, finishStorageValue = 12, count = 300}, 
                ['gnarlhound'] = {storage = 9993, beginStorageValue = 13, finishStorageValue = 14, points = 2, count = 300}, 
                ['ape'] = {monsterTypes = {['kongra']=9953,['merklin']=9952,['sibang']=9951}, beginStorageValue = 15, finishStorageValue = 16, points = 2, count = 300}, 
                ['terramite'] = {storage = 9991, beginStorageValue = 17, finishStorageValue = 18, points = 2, count = 300},
                ['thornback tortoise'] = {storage = 9990, beginStorageValue = 19, finishStorageValue = 20, points = 2, count = 300}, 
                ['gargoyle'] = {storage = 9989, beginStorageValue = 21, finishStorageValue = 22, points = 2, count = 300}, 
                                     
                --level 50-79--  
                ['ice golem'] = {storage = 9988, beginStorageValue = 23, finishStorageValue = 24, count = 300}, 
                ['quara scouts'] = {monsterTypes = {['quara predator scout']=9950,['quara pincher scout']=9949,['quara mantassin scout']=9948,['quara constrictor scout']=9947,['quara hydromancer scout']=9946}, beginStorageValue = 25, finishStorageValue = 26, points = 2, count = 400}, 
                ['mutated rat'] = {storage = 9986, beginStorageValue = 27, finishStorageValue = 28, count = 400}, 
                ['crystal spider'] = {storage = 9985, beginStorageValue = 29, finishStorageValue = 30, count = 300}, 
                ['ancient scarab'] = {storage = 9984, beginStorageValue = 31, finishStorageValue = 32, count = 250}, 
                ['wyvern'] = {storage = 9983, beginStorageValue = 33, finishStorageValue = 34, points = 2, count = 300}, 
                ['lancer beetle'] = {storage = 9982, beginStorageValue = 35, finishStorageValue = 36, points = 2, count = 300}, 
                ['mutated tiger'] = {storage = 9981, beginStorageValue = 37, finishStorageValue = 38, points = 2, count = 400}, 
                ['wailing widow'] = {storage = 9980, beginStorageValue = 39, finishStorageValue = 40, points = 3, count = 400}, 
                ['killer caiman'] = {storage = 9979, beginStorageValue = 41, finishStorageValue = 42, points = 3, count = 250}, 
                ['bonebeast'] = {storage = 9978, beginStorageValue = 43, finishStorageValue = 44, count = 300}, 
                                     
                --level 80-129-- 
                ['giant spider'] = {storage = 9977, beginStorageValue = 45, finishStorageValue = 46, count = 500}, 
                ['quaras'] = {monsterTypes = {['quara predator']=9945,['quara pincher']=9944,['quara mantassin']=9943,['quara constrictor']=9942,['quara hydromancer']=9941}, beginStorageValue = 47, finishStorageValue = 48, count = 600}, 
                ['werewolf'] = {storage = 9975, beginStorageValue = 49, finishStorageValue = 50, points = 4, count = 300}, 
                ['nightmare'] = {storage = 9974, beginStorageValue = 51, finishStorageValue = 520, points = 4, count = 400}, 
                ['hellspawn'] = {storage = 9973, beginStorageValue = 53, finishStorageValue = 54, count = 600}, 
                ['high class lizards'] = {monsterTypes = {['lizard zaogun']=9940,['lizard noble']=9939,['lizard magistratus']=9938,['lizard legionnaire']=9937,['lizard high guard']=9936,['lizard dragon priest']=9935,['lizard chosen']=9934}, beginStorageValue = 55, finishStorageValue = 56, points = 4, count = 800}, 
                ['brimstone bug'] = {storage = 9971, beginStorageValue = 57, finishStorageValue = 58, count = 500}, 
                ['mutated bat'] = {storage = 9970, beginStorageValue = 59, finishStorageValue = 60, points = 4, count = 500}, 
                                             
                --level 130+ --  
                ['hydra'] = {storage = 9969, beginStorageValue = 61, finishStorageValue = 62, count = 650}, 
                ['sea serpents'] = {monsterTypes = {['sea serpent']=9933,['young sea serpent']=9932}, beginStorageValue = 63, finishStorageValue = 64, count = 900}, 
                ['behemoth'] = {storage = 9967, beginStorageValue = 65, finishStorageValue = 66, count = 700}, 
                ['serpent spawn'] = {storage = 9966, beginStorageValue = 67, finishStorageValue = 68, count = 800}, 
                ['medusa'] = {storage = 9965, beginStorageValue = 69, finishStorageValue = 70, count = 500}, 
                ['hellhound'] = {storage = 9964, beginStorageValue = 71, finishStorageValue = 72, count = 250}, 
                ['ghastly dragon'] = {storage = 9963, beginStorageValue = 73, finishStorageValue = 74, count = 500}, 
                ['drakens'] = {monsterTypes = {['draken elite']=9931,['draken spellweaver']=9930,['draken abomination']=9929,['draken warmaster']=9928}, beginStorageValue = 75, finishStorageValue = 76, points = 4, count = 900}, 
                ['destroyer'] = {storage = 9961, beginStorageValue = 77, finishStorageValue = 78, points = 4, count = 650},
                ['undead dragon'] = {storage = 9960, beginStorageValue = 79, finishStorageValue = 80, points = 6, count = 450}, 
                ['demon'] = {storage = 9959, beginStorageValue = 81, finishStorageValue = 82, count = 6666} 
                } 
specialTask = { 
                    --special tasks 
                    ['demodras'] = {storage = 10006, beginBossStorageValue = 0, finishedBossStorageValue = 1,
                                    [5300] = {effect = CONST_ME_FIREATTACK, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_FIREATTACK, 
                                             sizeRoom = {5,5}}}, 
                    ['tiquandas revenge'] = {storage = 10005, beginBossStorageValue = 0, finishedBossStorageValue = 1,
                                    [5301] = {effect = CONST_ME_PLANTATTACK, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_PLANTATTACK, 
                                             sizeRoom = {5,5}}}, 
                    --bosses 
                    ['the snapper'] = {beginBossStorageValue = 1, finishedBossStorageValue = 2, points = 1,
                                    [5302] = {effect = CONST_ME_CARNIPHILA, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_CARNIPHILA, 
                                             sizeRoom = {5,5}}}, 
                    ['hide'] = {beginBossStorageValue = 3, finishedBossStorageValue = 4, points = 1,
                                    [5303] = {effect = CONST_ME_STONES, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_STONES, 
                                             sizeRoom = {5,5}}}, 
                    ['deathbine'] = {beginBossStorageValue = 5, finishedBossStorageValue = 6, points = 1,
                                    [5304] = {effect = CONST_ME_CARNIPHILA, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_CARNIPHILA, 
                                             sizeRoom = {5,5}}}, 
                    ['the bloodtusk'] = {beginBossStorageValue = 7, finishedBossStorageValue = 8, points = 2,
                                    [5305] = {effect = CONST_ME_ICEAREA, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_ICEAREA, 
                                             sizeRoom = {5,5}}}, 
                    ['shardhead'] = {beginBossStorageValue = 9, finishedBossStorageValue = 10, points = 2,
                                    [5306] = {effect = CONST_ME_ICEATTACK, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_ICEATTACK, 
                                             sizeRoom = {5,5}}}, 
                    ['esmeralda'] = {beginBossStorageValue = 11, finishedBossStorageValue = 12, points = 2,
                                    [5307] = {effect = CONST_ME_HITBYPOISON, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_HITBYPOISON, 
                                             sizeRoom = {5,5}}}, 
                    ['bloodweb'] = {beginBossStorageValue = 13, finishedBossStorageValue = 14, points = 3,
                                    [5308] = {effect = CONST_ME_ICEATTACK, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_ICEATTACK, 
                                             sizeRoom = {5,5}}}, 
                    ['fleshcrawler'] = {beginBossStorageValue = 15, finishedBossStorageValue = 16, points = 2,
                                    [5309] = {effect = CONST_ME_SMALLPLANTS, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_SMALLPLANTS, 
                                             sizeRoom = {5,5}}}, 
                    ['ribstride'] = {beginBossStorageValue = 17, finishedBossStorageValue = 18, points = 3,
                                    [5310] = {effect = CONST_ME_SMALLCLOUDS, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_SMALLCLOUDS, 
                                             sizeRoom = {5,5}}}, 
                    ['the old widow'] = {beginBossStorageValue = 19, finishedBossStorageValue = 20, points = 3,
                                    [5311] = {effect = CONST_ME_SMALLPLANTS, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_SMALLPLANTS, 
                                             sizeRoom = {5,5}}}, 
                    ['thul'] = {beginBossStorageValue = 21, finishedBossStorageValue = 22, points = 3,
                                    [5312] = {effect = CONST_ME_WATERSPLASH, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_WATERSPLASH, 
                                             sizeRoom = {5,5}}}, 
                    ['flameborn'] = {beginBossStorageValue = 23, finishedBossStorageValue = 24, points = 3,
                                    [5313] = {effect = CONST_ME_HITBYFIRE, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_HITBYFIRE, 
                                             sizeRoom = {5,5}}}, 
                    ['sulphur scuttler'] = {beginBossStorageValue = 25, finishedBossStorageValue = 26, points = 3,
                                    [5314] = {effect = CONST_ME_SMALLPLANTS, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_SMALLPLANTS, 
                                             sizeRoom = {5,5}}}, 
                    ['the many'] = {beginBossStorageValue = 27, finishedBossStorageValue = 28, points = 3, 
                                    [5315] = {effect = CONST_ME_SMALLPLANTS, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_SMALLPLANTS, 
                                             sizeRoom = {5,5}}}, 
                    ['leviathan'] = {beginBossStorageValue = 29, finishedBossStorageValue = 30, points = 4, 
                                    [5316] = {effect = CONST_ME_ICEATTACK, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_ICEATTACK, 
                                             sizeRoom = {5,5}}}, 
                    ['stonecracker'] = {beginBossStorageValue = 31, finishedBossStorageValue = 32, points = 4, 
                                    [5317] = {effect = CONST_ME_POFF, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_POFF, 
                                             sizeRoom = {5,5}}}, 
                    ['the noxious spawn'] = {beginBossStorageValue = 33, finishedBossStorageValue = 34, points = 4, 
                                    [5318] = {effect = CONST_ME_YELLOW_RINGS, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_YELLOW_RINGS, 
                                             sizeRoom = {5,5}}}, 
                    ['gorgo'] = {beginBossStorageValue = 35, finishedBossStorageValue = 36, points = 4, 
                                    [5319] = {effect = CONST_ME_GROUNDSHAKER, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_GROUNDSHAKER, 
                                             sizeRoom = {5,5}}}, 
                    ['kerberos'] = {beginBossStorageValue = 37, finishedBossStorageValue = 38, points = 5, 
                                    [5320] = {effect = CONST_ME_FIREAREA, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_FIREAREA, 
                                             sizeRoom = {5,5}}}, 
                    ['ethershrek'] = {beginBossStorageValue = 39, finishedBossStorageValue = 40, points = 5, 
                                    [5321] = {effect = CONST_ME_MORTAREA, centerRoomPosition = {x=1000,y=1000,z=7}, 
                                             bossSummonPlace = {x=1000,y=1000,z=7}, bossEffect = CONST_ME_MORTAREA, 
                                             sizeRoom = {5,5}}} 
                    } 
mainStorage = 10001 
points = 10002 
bossesStorage = 10003 

function isSummon(cid) 
    if(not isCreature(cid)) then 
        return false 
    end 
    return getCreatureMaster(cid) ~= cid 
end 
]]></config> 

<event type="kill" name="grizzlyKill" event="script"><![CDATA[ 
domodlib('grizzlyAdams_conf') 
function onKill(cid, target) 
if isPlayer(target) or isSummon(target) or isNpc(target) then  
    return true  
end 
for k, v in pairs(task) do 
    if (v.monsterTypes and v.monsterTypes[getCreatureName(target):lower()]) or k:lower() == getCreatureName(target):lower() then 
        if getPlayerStorageValue(cid, mainStorage) == v.beginStorageValue then 
            storages = v.monsterTypes and v.monsterTypes[getCreatureName(target)] or v.storage 
            if getPlayerStorageValue(cid, storages) <= v.count then 
                local x, s = 0, 'You killed ' 
                if v.monsterTypes then 
                    for monster, storage in pairs(v.monsterTypes) do 
                        if getPlayerStorageValue(cid, storage) == -1 then 
                            doPlayerSetStorageValue(cid, storage, 0) 
                        end 
                        if monster:lower() == getCreatureName(target):lower() then 
                            doPlayerSetStorageValue(cid, storage, getPlayerStorageValue(cid, storage) + 1) 
                        end 
                        x = x + getPlayerStorageValue(cid, storage) 
                        s = s .. getPlayerStorageValue(cid, storage) .. ' ' .. monster .. ', ' 
                    end 
                else 
                    doPlayerSetStorageValue(cid, storages, getPlayerStorageValue(cid, storages) + 1) 
                    s = s .. getPlayerStorageValue(cid, storages) .. ' of ' .. v.count .. ' ' .. k .. '.' 
                end 
                s = (x > 0 and (string.sub(s, 1, string.len(s) - 2)..'. You have killed ' .. x ..' of '.. v.count ..' '..k..'.') or s) 
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, s) 
                if getPlayerStorageValue(cid, storages) == v.count then 
                    doPlayerSetStorageValue(cid, mainStorage, v.finishStorageValue) 
                    if v.monsterTypes then 
                        for monster, storage in pairs(v.monsterTypes) do 
                            doPlayerSetStorageValue(cid, storage, 0) 
                        end 
                    else 
                        doPlayerSetStorageValue(cid, v.storage, 0) 
                    end 
                    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Congratulations! You have killed enough '..(v.monsterTypes and k or getCreatureName(target)..'s')..'.') 
                    if getPlayerStorageValue(cid, points) < 100 and v.points then 
                        doPlayerSetStorageValue(cid, points, getPlayerStorageValue(cid, points) + v.points) 
                        doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, 'You gained '..v.points..' points. Your total points is '..getPlayerStorageValue(cid, points)..'.') 
                    end 
                end 
            end 
        end 
    end 
end 
for k, v in pairs(specialTask) do 
    if k:lower() == getCreatureName(target):lower() and v.storage and getPlayerStorageValue(cid, v.storage) == v.beginBossStorageValue then 
        doPlayerSetStorageValue(cid, v.storage, v.finishedBossStorageValue) 
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Congratulations! You have killed '..getCreatureName(target)..'.') 
    elseif k:lower() == getCreatureName(target):lower() and getPlayerStorageValue(cid, bossesStorage) == v.beginBossStorageValue then 
        doPlayerSetStorageValue(cid, bossesStorage, v.finishedBossStorageValue) 
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Congratulations! You have killed '..getCreatureName(target)..'.') 
        if getPlayerStorageValue(cid, points) < 100 and v.points then 
            doPlayerSetStorageValue(cid, points, getPlayerStorageValue(cid, points) + v.points) 
            doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, 'You gained '..v.points..' points. Your total points is '..getPlayerStorageValue(cid, points)..'.') 
        end 
    end 
end 
return true 
end 
]]></event> 

<moveevent type="stepIn" name="grizzlyAdamsStepIn" fromuid="5300" touid="5321" event="script"><![CDATA[ 
domodlib('grizzlyAdams_conf') 
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) 
for k, v in pairs(specialTask) do 
    if v[item.uid] and isPlayer(cid) then 
        if getSpectators(v[item.uid].centerRoomPosition, v[item.uid].sizeRoom[1], v[item.uid].sizeRoom[2]) then 
            for _, target in ipairs(getSpectators(v[item.uid].centerRoomPosition, v[item.uid].sizeRoom[1], v[item.uid].sizeRoom[2])) do 
                if isPlayer(target) then 
                    return doTeleportThing(cid, fromPosition, true) and doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Somebody fight with '..k..'!') 
                elseif isMonster(target) then 
                    doRemoveThing(target) 
                end 
            end 
        end 
        if getPlayerStorageValue(cid, bossesStorage) == v.beginBossStorageValue then 
            doTeleportThing(cid, v[item.uid].centerRoomPosition, true) 
            doSendMagicEffect(v[item.uid].centerRoomPosition, v[item.uid].effect) 
            doSendMagicEffect(v[item.uid].bossSummonPlace, v[item.uid].bossEffect) 
            return doCreateMonster(k, v[item.uid].bossSummonPlace) 
        end 
        return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You can\'t enter here!') 
    elseif v[item.uid-100] and isPlayer(cid) then 
        if getSpectators(v[item.uid-100].centerRoomPosition, v[item.uid-100].sizeRoom[1], v[item.uid-100].sizeRoom[2]) then
            for _, target in ipairs(getSpectators(v[item.uid-100].centerRoomPosition, v[item.uid-100].sizeRoom[1], v[item.uid-100].sizeRoom[2])) do 
                if isMonster(target) then 
                    doRemoveThing(target) 
                end 
            end 
        end 
        return true 
    end 
end 
return true 
end 
]]></moveevent> 

<event type="login" name="grizzlyLogin" event="buffer"><![CDATA[ 
    registerCreatureEvent(cid, 'grizzlyKill') 
]]></event> 
</mod>



~~QUEST LOG (NEED COMPILED)~~

~~QUESTS~~
Into quests.xml paste:
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<quests>
    <quest name="Killing In The Name Of..." startstorageid="10001" startstoragevalue="0">
        <mission name="Paw and Fur - Rank" storageid="10004" startvalue="1" endvalue="6">
            <missionstate id="1" description="You have been promoted to the rank of a 'Huntsman' in the 'Paw and Fur-Hunting Elite'."/>
            <missionstate id="2" description="You have been promoted to the rank of a 'Ranger' in the 'Paw and Fur-Hunting Elite'."/>
            <missionstate id="3" description="You have been promoted to the rank of a 'Big Game Hunter' in the 'Paw and Fur-Hunting Elite'."/>
            <missionstate id="4" description="You have been promoted to the rank of a 'Trophy Hunter' in the 'Paw and Fur-Hunting Elite'."/>
            <missionstate id="5" description="You have been promoted to the rank 'Elite Hunter' in the 'Paw and fur -Hunting Elite'. This is the highest rank you can get."/>
        </mission>
        
        <mission name="Paw and Fur - Carniphilas" storageid="9999" startvalue="0" endvalue="1">
            <missionstate id="0" description="You already hunted |STORAGE:19999|/150 carniphilas."/>
            <missionstate id="1" description="You killed 150 carniphilas. You can restart that task if you are still under level 50."/>
        </mission>
        <mission name="Paw and Fur - Crocodiles" storageid="9998" startvalue="0" endvalue="3">
            <missionstate id="0" description="You already hunted |STORAGE:19998|/300 crocodiles."/>
            <missionstate id="1" description="You killed 300 crocodiles. Now you can go to Grizzly Adams with information what now."/>
            <missionstate id="2" description="Now you can fight with 'The Snapper'."/>
            <missionstate id="3" description="You fought 'The Snapper' the crocodile. You can restart the task if you are still under Level 50."/>
        </mission>
        <mission name="Paw and Fur - Tarantulas" storageid="9997" startvalue="0" endvalue="3">
            <missionstate id="0" description="You already hunted |STORAGE:19997|/300 tarantulas."/>
            <missionstate id="1" description="You killed 300 tarantulas. Now you can go to Grizzly Adams with information what now."/>
            <missionstate id="2" description="Now you can fight with 'Hide'."/>
            <missionstate id="3" description="You fought 'Hide' the taratula. You can restart the task if you are still under Level 50."/>
        </mission>
        <mission name="Paw and Fur - Stone Golems" storageid="9996" startvalue="0" endvalue="1">
            <missionstate id="7" description="You already hunted |STORAGE:19996|/200 stone golems."/>
            <missionstate id="1" description="You killed 200 stone golems. You can restart that task if you are still under level 50."/>
        </mission>
        <mission name="Paw and Fur - Mammoths" storageid="9995" startvalue="0" endvalue="3">
            <missionstate id="0" description="You already hunted |STORAGE:19995|/300 mammoths."/>
            <missionstate id="1" description="You killed 300 mammoths. Now you can go to Grizzly Adams with information what now."/>
            <missionstate id="2" description="Now you can fight with 'The Bloodtusk'."/>
            <missionstate id="3" description="You fought 'The Bloodtusk' the mammoth. You can restart the task if you are still under Level 50."/>
        </mission>
        
        
        <mission name="Paw and Fur - Ice Golems" storageid="9994" startvalue="0" endvalue="3">
            <missionstate id="0" description="You already hunted |STORAGE:19994|/300 ice golems."/>
            <missionstate id="1" description="You killed 300 ice golems. Now you can go to Grizzly Adams with information what now."/>
            <missionstate id="2" description="Now you can fight with 'Shardhead'."/>
            <missionstate id="3" description="You fought 'Shardhead' the ice golem. You can restart the task if you are still under Level 90."/>
        </mission>
        <mission name="Paw and Fur - Underwater Quara Scouts" storageid="9993" startvalue="0" endvalue="1">
            <missionstate id="0" description="You already killed |STORAGE:19993| constrictor scouts, |STORAGE:19992| hydromancer scouts, |STORAGE:19991| mantassin scouts, |STORAGE:19990| pincher scouts and |STORAGE:19989| predator scouts. You are supposed to kill 300 in total."/>
            <missionstate id="1" description="You killed 300 quara scouts. You can restart that task if you are still under level 90."/>
        </mission>
        <mission name="Paw and Fur - Underwater Quaras" storageid="9992" startvalue="0" endvalue="3">
            <missionstate id="0" description="You already killed |STORAGE:19988| constrictors, |STORAGE:19987| hydromancers, |STORAGE:19986| mantassins, |STORAGE:19985| pinchers and |STORAGE:19984| predators. You are supposed to kill 300 in total."/>
            <missionstate id="1" description="You killed 300 quaras. Now you can go to Grizzly Adams with information what now."/>
            <missionstate id="2" description="Now you can fight with 'Thul'."/>
            <missionstate id="3" description="You fought 'Thul' the quara. You can restart the task if you are still under Level 90."/>
        </mission>
        <mission name="Paw and Fur - Fire Elementals" storageid="9991" startvalue="0" endvalue="1">
            <missionstate id="0" description="You already hunted |STORAGE:19983| fire elementals and |STORAGE:19982| massive fire elementals. You are supposed to kill 70 in total."/>
            <missionstate id="1" description="You killed 70 fire elementals. You can restart that task if you are still under level 90."/>
        </mission>
        <mission name="Paw and Fur - Water Elementals" storageid="9990" startvalue="0" endvalue="1">
            <missionstate id="0" description="You already hunted |STORAGE:19981| water elementals and |STORAGE:19980| massive water elementals. You are supposed to kill 70 in total."/>
            <missionstate id="1" description="You killed 70 water elementals. You can restart that task if you are still under level 90."/>
        </mission>
        <mission name="Paw and Fur - Earth Elementals" storageid="9989" startvalue="0" endvalue="1">
            <missionstate id="0" description="You already hunted |STORAGE:19979| earth elementals and |STORAGE:19978| massive earth elementals. You are supposed to kill 70 in total."/>
            <missionstate id="1" description="You killed 70 earth elementals. You can restart that task if you are still under level 90."/>
        </mission>
        <mission name="Paw and Fur - Energy Elementals" storageid="9988" startvalue="0" endvalue="1">
            <missionstate id="0" description="You already hunted |STORAGE:19977| energy elementals and |STORAGE:19976| massive energy elementals. You are supposed to kill 70 in total."/>
            <missionstate id="1" description="You killed 70 energy elementals. You can restart that task if you are still under level 90."/>
        </mission>
        <mission name="Paw and Fur - Mutated Rats" storageid="9987" startvalue="0" endvalue="3">
            <missionstate id="0" description="You already hunted |STORAGE:19975|/200 mutataed rats."/>
            <missionstate id="1" description="You killed 200 mutated rats. Now you can go to Grizzly Adams with information what now."/>
            <missionstate id="2" description="Now you can fight with 'Esmeralda'."/>
            <missionstate id="3" description="You fought 'Esmeralda' the mutated rat. You can restart the task if you are still under Level 90."/>
        </mission>
        <mission name="Paw and Fur - Giant Spiders" storageid="9986" startvalue="0" endvalue="3">
            <missionstate id="0" description="You already hunted |STORAGE:19974|/500 giant spiders."/>
            <missionstate id="1" description="You killed 500 giant spiders. Now you can go to Grizzly Adams with information what now."/>
            <missionstate id="2" description="Now you can fight with 'The Old Widow'."/>
            <missionstate id="3" description="You fought 'The Old Widow' the giant spider. You can restart the task if you are still under Level 90."/>
        </mission>
        
        
        <mission name="Paw and Fur - Hydras" storageid="9985" startvalue="0" endvalue="3">
            <missionstate id="0" description="You already hunted |STORAGE:19973|/2000 hyras."/>
            <missionstate id="1" description="You killed 2000 hydras. Now you can go to Grizzly Adams with information what now."/>
            <missionstate id="2" description="Now you can fight with 'The Many'."/>
            <missionstate id="3" description="You fought 'The Many' the hydra. You can restart the task if you are higger level than 90."/>
        </mission>
        <mission name="Paw and Fur - Sea Serpents" storageid="9984" startvalue="0" endvalue="3">
            <missionstate id="0" description="You already hunted |STORAGE:19972|/2000 sea serpents."/>
            <missionstate id="1" description="You killed 2000 sea serpents. Now you can go to Grizzly Adams with information what now."/>
            <missionstate id="2" description="Now you can fight with 'Leviathan'."/>
            <missionstate id="3" description="You fought 'Leviathan' the sea serpent. You can restart the task if you are higger level than 90."/>
        </mission>
        <mission name="Paw and Fur - Behemoths" storageid="9983" startvalue="0" endvalue="3">
            <missionstate id="0" description="You already hunted |STORAGE:19971|/2000 behemoths."/>
            <missionstate id="1" description="You killed 2000 behemoths. Now you can go to Grizzly Adams with information what now."/>
            <missionstate id="2" description="Now you can fight with 'Stonecracker'."/>
            <missionstate id="3" description="You fought 'Stonecracker' the behemoth. You can restart the task if you are higger level than 90."/>
        </mission>
        <mission name="Paw and Fur - Serpent Spawns" storageid="9982" startvalue="0" endvalue="3">
            <missionstate id="0" description="You already hunted |STORAGE:19970|/2000 serpent spawns."/>
            <missionstate id="1" description="You killed 2000 serpent spawns. Now you can go to Grizzly Adams with information what now."/>
            <missionstate id="2" description="Now you can fight with 'The Noxious Spawn'."/>
            <missionstate id="3" description="You fought 'The Noxious Spawn' the serpent spawn. You can restart the task if you are higger level than 90."/>
        </mission>
        <mission name="Paw and Fur - Hunting Elite" storageid="10004" startvalue="0" endvalue="6">
            <missionstate id="0" description="You joined the 'Paw and Fur - Hunting Elite'. Ask Grizzly Adams for some hunting tasks. You already completed |STORAGE:10002| of them."/>
            <missionstate id="1" description="You joined the 'Paw and Fur - Hunting Elite'. Ask Grizzly Adams for some hunting tasks. You already completed |STORAGE:10002| of them."/>
            <missionstate id="2" description="You joined the 'Paw and Fur - Hunting Elite'. Ask Grizzly Adams for some hunting tasks. You already completed |STORAGE:10002| of them."/>
            <missionstate id="3" description="You joined the 'Paw and Fur - Hunting Elite'. Ask Grizzly Adams for some hunting tasks. You already completed |STORAGE:10002| of them."/>
            <missionstate id="4" description="You joined the 'Paw and Fur - Hunting Elite'. Ask Grizzly Adams for some hunting tasks. You already completed |STORAGE:10002| of them."/>
            <missionstate id="5" description="You joined the 'Paw and Fur - Hunting Elite'. Ask Grizzly Adams for some hunting tasks. You already completed |STORAGE:10002| of them."/>
        </mission>
    </quest>
</quests>

~~C++~~
http://otland.net/f35/parsing-storage-values-inside-quest-xml-89354/


Bosses:
Thul
The Snapper
The Old Widow
The Nexious Spawn
The Many
Stonecracker
Shardhead
Leviathan
Hide
Esmeralda
 
Last edited:
Both scripts can be shortened 5 - 6 times (using more advanced arrays). Nice work though.
 
It's not even about the loops. Look.
Code:
function welcome(value)
	array = {
		[1] = {a = "Hello", b = "bye"},
		[2] = {a = "Hi"},
		[3] = {b = "cya"},
		[4] = {a = "Greetings", b = "farewell"}
	}
	if not value then
		value = math.random(1,table.maxn(array))
	end
	
	local tmp, txt = array[value], ""
	
	if tmp.a then txt = tostring(tmp.a) end
	if tmp.b then txt = tostring(txt .. " and " .. tmp.b .. ".") else txt = tostring(txt .. ".") end
	
	return print(txt)
end

welcome()
welcome(1)
welcome(3)
welcome(2)
welcome(4)
 
Last edited:

Sorry but I don't understand polish...I hat to ask friends to actually be able to download it -.-"

BTW I'm not actually seeing any way to be able to go to the boss room, is that on the script or not?
 
Sorry but I don't understand polish...I hat to ask friends to actually be able to download it -.-"

BTW I'm not actually seeing any way to be able to go to the boss room, is that on the script or not?

Use storage values with a door script.
 
Small fix to avoid problems..

Change:
Code:
local mob = config[getCreatureName(target)]

To:
Code:
local mob = config[string.lower(getCreatureName(target))]
 
now it bugged ;/ function on kill
can't killing monsters ;/
 
It's so damn buggy :) I have rewritten it and got 100% like real tibia :) Thanks for script sample, do not repair it, I think that those people which are supposed to, they will use it well
 
Where do I put

registerCreatureEvent(cid, "Grizzly_Adams")


Like this?

registerCreatureEvent(cid, "Grizzly_Adams")
return true
end
 
Back
Top