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

Ctrl + V

Status
Not open for further replies.
Paxton-xampy-ozico-paxton-ozico-dude-harry127-coiler-bazzese-deavz-chappie-coiler-harry127-bogart-harry127-bogart-harry127-paxton-bogart-harry127-byllan-bogart-harry127-ozico-bogart-harry127-bogart-harry127-paxton-coiler-harry127-bogart-coiler-harry127-husam-bogart-harry127-paxton-harry127-coiler-bazzese-troja-paxton-bogart-bogalza-ozico-winnerandy-mary sack-ozico-mary sack-ozico-mary sack-ozico-mary sack noob-remmacs-ozico-mary sack-ozico-bogalza-ozico-bogart-husam-lord ockero-bogart-lolaye-Rizzla-Uogart-Cimoco-Kizzla-paxton-lord ockero-coolguy-dude-rizzla-ozico-zonet-jocce-sypher-paxton-smirnoff-mary sack-ozico-mary sack-ozico-rizzla-coiler-tenaria-ozico-teh matt-coiler-bogart-rizzla-m4t30-Paxton-Rizzla-Micce-OzIcO-Coiler-OzIcO-Rizzla-Znarc-BOGALZA-OzIcO-Rizzla-bogart-Lolaye-Znarc-Paxton-Asghan-Rizzla-aleemao-Bogalza-Damny-OzIcO-Damny-OzIcO-Damny-OzIcO-Damny-OzIcO-Bogart-OzIcO-Rizzla-exique-Paxton-Micce-Rizzla-StATicX-OzIcO-Paxton-OzIcO-RunarM-OzIcO-Nevalopo-OzIcO-Bogart-OzIcO-Bogart-OzIcO-Bogart-OzIcO-Bogart-OzIcO-Bogart-OzIcO-bogart-OzIcO-Bogart-OzIcO-Bogart-OzIcO-Bogart-Sharp-Bogart-OzIcO-Bogart-OzIcO-Bogart-OzIcO-Bogart-Rizzla-Micce-Rizzla-Paxton-RunarM-Reka-Bogalza-Rizzla-Paxton-Bogalza-Dude-Bogalza-Bogart-Micce-OzIcO-Rizzla- Damny-Paxton-Nevalopo-Rizzla-Hibez-sorcerers king-Rizzla-Paxton-Rizzla-Xotis-Hibez-Rizzla-Rethen-Rizzla-Paxton-Lolaye-Rizzla-Syntax-Rizzla-Paxton-Bunkerdweller-Runarm-Flaite1-Micce-Bilmattan-GOD Wille-Serogan-OzIcO-Peroxide-Micce-Rizzla-Serogan-SmirNoff-Paxton-Hermes-Rizzla-Paxton-Rizzla-Azcarer-Archez-Rizzla-unknown666-Paxton-Kiju-Super Nova-Rizzla-Rizzla-Klaien-Rizzla-unknown666-Rizzla-sorcerers king-unknown666-Rizzla-unknown666-Rizzla-Azcarer-Paxton-Donio-Vejsa-Nevalopo-Rizzla-Zieworski denero-o KaBooM ginger kid-Rizzla-KabooM the Gingah-Neon-Ernstjan-Paxton-Vejsa-Rizzla-Paxton-Hevar-Super Nova-BardockTornado-Guitarkid459-Cykotitan-Rizzla-Snach-vimoco-zieworski denero-Rizzla-Azcarer-SmirNoff-Shawak-Rizzla-Djivar-Rizzla-Bogart-Rizzla-Abbedi-Northnorial -Djivar-Rizzla-Paxton-Nexxie-Rizzla-Samuro-Rizzla-Micce-Rizzla-Masterkiller-Rizzla-Nexxie-Rizzla-Powie-Rizzla-sorcerers king-Fredde3436-sorcerers king-Paxton-sorcerers king-Bogart-Szakal-Klaien-ddamiann-Rizzla-javiersin-Teh Matt-Pitufo™-Masterkiller-Szakal-sorcerers king-ThReE mAgIc-Naister-Shiimi-Zisly-Paxton-Colossus-Delirium-THREE MAGIC-Existance-ildefons-akues-asdasdvervverildefons- DONIO-Smentol-lol-ildefons-akues-t3tl3y-ildefons-Kius Long- soferikus-Four Magic - Elusive - DizZeR - Amiroslo - akues - Amiroslo - kopparsulfat - RunarM - Teh Matt - Slaktaren - AKUES -cyna-ildefons - Wibben - Faith -ildefons - beat the meat - Wibben - Klaien - Rala Knighta - SPLINTER - Sir Blondi - Woocslave - macaronie - Lanceq - soolus19 - Tosse12 - soolus19 - Yew - LATE - Lanceq - Peacy - Lanceq - Enxorix - blackish - kacpersky - unknown666 - Ethan - Neon - Nux - FabianoBN - Peacy - PIAST - Tosse12 - LATE -Flaite1 - Peacy - Sublime - Hellrage - zkum - Aftonbladet - Szakal - Micki - Lanceq - LATE - Lanceq - Gorgaboll - Lanceq - M4t30 - Smekcio - Lanceq - Ethan - wyzr - Piast - Enlighthell[ - Teh Matt - Unbelievable - Smirnoff - RunarM- Smirnoff - Piast-Damadgerz - makr0-Fallen-ildefons- Smirnoff - Woothias - PIAST - RealSoft - PIAST - ildefons - Technic - ildefons - makr0 - SnAcH!!! - elf - Sublime - RobsonDias - ildefons - Smirnoff - Seym - ildefons - Sublime - PIAST - Cirtaboytheking - ildefons - Marco96 - RealSoft - Smirnoff - Norse123 - Snach - Amtty - Lanceq - ildefons - RunarM - Elvang - Andy1995 - Smirnoff - slawkens - ddamiann - PIAST
 
Paxton-xampy-ozico-paxton-ozico-dude-harry127-coiler-bazzese-deavz-chappie-coiler-harry127-bogart-harry127-bogart-harry127-paxton-bogart-harry127-byllan-bogart-harry127-ozico-bogart-harry127-bogart-harry127-paxton-coiler-harry127-bogart-coiler-harry127-husam-bogart-harry127-paxton-harry127-coiler-bazzese-troja-paxton-bogart-bogalza-ozico-winnerandy-mary sack-ozico-mary sack-ozico-mary sack-ozico-mary sack noob-remmacs-ozico-mary sack-ozico-bogalza-ozico-bogart-husam-lord ockero-bogart-lolaye-Rizzla-Uogart-Cimoco-Kizzla-paxton-lord ockero-coolguy-dude-rizzla-ozico-zonet-jocce-sypher-paxton-smirnoff-mary sack-ozico-mary sack-ozico-rizzla-coiler-tenaria-ozico-teh matt-coiler-bogart-rizzla-m4t30-Paxton-Rizzla-Micce-OzIcO-Coiler-OzIcO-Rizzla-Znarc-BOGALZA-OzIcO-Rizzla-bogart-Lolaye-Znarc-Paxton-Asghan-Rizzla-aleemao-Bogalza-Damny-OzIcO-Damny-OzIcO-Damny-OzIcO-Damny-OzIcO-Bogart-OzIcO-Rizzla-exique-Paxton-Micce-Rizzla-StATicX-OzIcO-Paxton-OzIcO-RunarM-OzIcO-Nevalopo-OzIcO-Bogart-OzIcO-Bogart-OzIcO-Bogart-OzIcO-Bogart-OzIcO-Bogart-OzIcO-bogart-OzIcO-Bogart-OzIcO-Bogart-OzIcO-Bogart-Sharp-Bogart-OzIcO-Bogart-OzIcO-Bogart-OzIcO-Bogart-Rizzla-Micce-Rizzla-Paxton-RunarM-Reka-Bogalza-Rizzla-Paxton-Bogalza-Dude-Bogalza-Bogart-Micce-OzIcO-Rizzla- Damny-Paxton-Nevalopo-Rizzla-Hibez-sorcerers king-Rizzla-Paxton-Rizzla-Xotis-Hibez-Rizzla-Rethen-Rizzla-Paxton-Lolaye-Rizzla-Syntax-Rizzla-Paxton-Bunkerdweller-Runarm-Flaite1-Micce-Bilmattan-GOD Wille-Serogan-OzIcO-Peroxide-Micce-Rizzla-Serogan-SmirNoff-Paxton-Hermes-Rizzla-Paxton-Rizzla-Azcarer-Archez-Rizzla-unknown666-Paxton-Kiju-Super Nova-Rizzla-Rizzla-Klaien-Rizzla-unknown666-Rizzla-sorcerers king-unknown666-Rizzla-unknown666-Rizzla-Azcarer-Paxton-Donio-Vejsa-Nevalopo-Rizzla-Zieworski denero-o KaBooM ginger kid-Rizzla-KabooM the Gingah-Neon-Ernstjan-Paxton-Vejsa-Rizzla-Paxton-Hevar-Super Nova-BardockTornado-Guitarkid459-Cykotitan-Rizzla-Snach-vimoco-zieworski denero-Rizzla-Azcarer-SmirNoff-Shawak-Rizzla-Djivar-Rizzla-Bogart-Rizzla-Abbedi-Northnorial -Djivar-Rizzla-Paxton-Nexxie-Rizzla-Samuro-Rizzla-Micce-Rizzla-Masterkiller-Rizzla-Nexxie-Rizzla-Powie-Rizzla-sorcerers king-Fredde3436-sorcerers king-Paxton-sorcerers king-Bogart-Szakal-Klaien-ddamiann-Rizzla-javiersin-Teh Matt-Pitufo™-Masterkiller-Szakal-sorcerers king-ThReE mAgIc-Naister-Shiimi-Zisly-Paxton-Colossus-Delirium-THREE MAGIC-Existance-ildefons-akues-asdasdvervverildefons- DONIO-Smentol-lol-ildefons-akues-t3tl3y-ildefons-Kius Long- soferikus-Four Magic - Elusive - DizZeR - Amiroslo - akues - Amiroslo - kopparsulfat - RunarM - Teh Matt - Slaktaren - AKUES -cyna-ildefons - Wibben - Faith -ildefons - beat the meat - Wibben - Klaien - Rala Knighta - SPLINTER - Sir Blondi - Woocslave - macaronie - Lanceq - soolus19 - Tosse12 - soolus19 - Yew - LATE - Lanceq - Peacy - Lanceq - Enxorix - blackish - kacpersky - unknown666 - Ethan - Neon - Nux - FabianoBN - Peacy - PIAST - Tosse12 - LATE -Flaite1 - Peacy - Sublime - Hellrage - zkum - Aftonbladet - Szakal - Micki - Lanceq - LATE - Lanceq - Gorgaboll - Lanceq - M4t30 - Smekcio - Lanceq - Ethan - wyzr - Piast - Enlighthell[ - Teh Matt - Unbelievable - Smirnoff - RunarM- Smirnoff - Piast-Damadgerz - makr0-Fallen-ildefons- Smirnoff - Woothias - PIAST - RealSoft - PIAST - ildefons - Technic - ildefons - makr0 - SnAcH!!! - elf - Sublime - RobsonDias - ildefons - Smirnoff - Seym - ildefons - Sublime - PIAST - Cirtaboytheking - ildefons - Marco96 - RealSoft - Smirnoff - Norse123 - Snach - Amtty - Lanceq - ildefons - RunarM - Elvang - Andy1995 - Smirnoff - slawkens - ddamiann - PIAST
 
You have given out too much Reputation in the last 24 hours, try again later.
 
function onStepIn(cid, item, pos)
---Action by Jovial---

--Config--
voc = 4 --0 = no vocation, 1 = sorcerer, 2 = druida, 3 = paladin, 4 = knight--
voc2 = 1 --5 = master sorcerer, 6 = elder druid, 7 = royal paladin, 8 = elite knight--
voc3 = 2
voc5 = 5
voc7 = 6
voc8 = 8

dano = 1000 --quanto ira tirar de vida
cor = 180 --cor da letra do hit 5=azul, 180=red, etc
efeito = 3 --numero do efeito desejado
--End Config--

hp = getCreatureHealth(cid)
topos = getPlayerPosition(cid)
pvoc = getPlayerVocation(cid)
pvoc3 = getPlayerVocation(cid)
pvoc2 = getPlayerVocation(cid)
pvoc5 = getPlayerVocation(cid)
pvoc6 = getPlayerVocation(cid)
pvoc8 = getPlayerVocation(cid)

if voc == pvoc or voc2 == pvoc or voc3 == pvoc or voc5 == pvoc or voc6 == pvoc or voc8 == pvoc then
if getCreatureHealth(cid) >= dano then
doPlayerAddHealth(cid, -dano)
doSendAnimatedText(topos, dano, cor)
doSendMagicEffect(topos, efeito)
else
doPlayerAddHealth(cid, -hp)
doSendAnimatedText(topos, hp, cor)
doSendMagicEffect(topos, efeito)
end
end--function by Armageddom--
function onStepIn(cid, item, frompos, item2, topos)

playerpos = getPlayerPosition(cid)
novapos = {x=398, y=1380, z=9}

if item.uid == 10202 then

getThingfromPos(playerpos)
doSendMagicEffect(playerpos,2)
doTeleportThing(cid,novapos)
doSendMagicEffect(novapos,10)
end
end--function by Armageddom--
function onStepIn(cid, item, frompos, item2, topos)

playerpos = getPlayerPosition(cid)
novapos = {x=32918, y=32070, z=12}

if item.uid == 10991 then

getThingfromPos(playerpos)
doTeleportThing(cid,novapos) function onStepIn(cid, item, pos)
---Action by Jovial---

--Config--
voc = 3 --0 = no vocation, 1 = sorcerer, 2 = druida, 3 = paladin, 4 = knight--
voc2 = 1
voc3 = 2
voc5 = 5
voc7 = 6
voc8 = 7

dano = 2000 --quanto ira tirar de vida
cor = 180 --cor da letra do hit 5=azul, 180=red, etc
efeito = 3 --numero do efeito desejado
--End Config--

hp = getCreatureHealth(cid)
topos = getPlayerPosition(cid)
pvoc = getPlayerVocation(cid)
pvoc3 = getPlayerVocation(cid)
pvoc2 = getPlayerVocation(cid)
pvoc5 = getPlayerVocation(cid)
pvoc6 = getPlayerVocation(cid)
pvoc7 = getPlayerVocation(cid)

if voc == pvoc or voc2 == pvoc or voc3 == pvoc or voc5 == pvoc or voc6 == pvoc or voc7 == pvoc then
if getCreatureHealth(cid) >= dano then
doPlayerAddHealth(cid, -dano)
doSendAnimatedText(topos, dano, cor)
doSendMagicEffect(topos, efeito)
else
doPlayerAddHealth(cid, -hp)
doSendAnimatedText(topos, hp, cor)
doSendMagicEffect(topos, efeito)
end
end
return 1dofile(getDataDir() .. 'movements/scripts/swimming/swimlib.lua')

function onStepIn(cid, item, pos)
return checkSwim(cid, EAST, WEST)

SIALALALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMLALALALALALAL NO SPAMV
end
end
end
return 1
end
 
LUA:
local tasks =
{
        [1] = {questStarted = 1510, questStorage = 65000, killsRequired = 100, raceName = "Trolls", rewards = {first = {enable = true, type = "exp", values = 200}, second = {enable = true, type = "money", values = 200}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [2] = {questStarted = 1511, questStorage = 65001, killsRequired = 150, raceName = "Goblins", rewards = {first = {enable = true, type = "exp", values = 300}, second = {enable = true, type = "money", values = 250}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [3] = {questStarted = 1512, questStorage = 65002, killsRequired = 300, raceName = "Rotworms", rewards = {first = {enable = true, type = "exp", values = 1000}, second = {enable = true, type = "money", values = 400}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [4] = {questStarted = 1513, questStorage = 65003, killsRequired = 500, raceName = "Cyclops", rewards = {first = {enable = true, type = "exp", values = 3000}, second = {enable = true, type = "money", values = 800}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [5] = {questStarted = 1514, questStorage = 65004, killsRequired = 300, raceName = "Crocodiles", rewards = {first = {enable = true, type = "exp", values = 800}, second = {enable = true, type = "boss", values = THESNAPPER_POSITION}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [6] = {questStarted = 1515, questStorage = 65005, killsRequired = 300, raceName = "Tarantulas", rewards = {first = {enable = true, type = "exp", values = 1500}, second = {enable = true, type = "boss", values = HIDE_POSITION}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [7] = {questStarted = 1516, questStorage = 65006, killsRequired = 150, raceName = "Carniphilas", rewards = {first = {enable = true, type = "exp", values = 1500}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [8] = {questStarted = 1517, questStorage = 65007, killsRequired = 200, raceName = "Stone Golems", rewards = {first = {enable = true, type = "exp", values = 2000}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [9] = {questStarted = 1518, questStorage = 65008, killsRequired = 300, raceName = "Mammoths", rewards = {first = {enable = true, type = "exp", values = 4000}, second = {enable = true, type = "boss", values = THEBLOODTUSK_POSITION}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [10] = {questStarted = 1519, questStorage = 65009, killsRequired = 300, raceName = "Ice Golems", rewards = {first = {enable = true, type = "exp", values = 15000}, second = {enable = true, type = "boss", values = SHARDHEAD_POSITION}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [11] = {questStarted = 1520, questStorage = 65010, killsRequired = 300, raceName = "Quaras Scout", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [22] = {questStarted = 1521, questStorage = 65011, killsRequired = 300, raceName = "Quaras", rewards = {first = {enable = true, type = "exp", values = 12000}, second = {enable = true, type = "boss", values = THUL_POSITION}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [13] = {questStarted = 1522, questStorage = 65012, killsRequired = 70, raceName = "Water Elementals", rewards = {first = {enable = true, type = "exp", values = 7000}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [14] = {questStarted = 1523, questStorage = 65013, killsRequired = 70, raceName = "Earth Elementals", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [15] = {questStarted = 1524, questStorage = 65014, killsRequired = 70, raceName = "Energy Elementals", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [16] = {questStarted = 1525, questStorage = 65015, killsRequired = 70, raceName = "Fire Elementals", rewards = {first = {enable = true, type = "exp", values = 7000}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [17] = {questStarted = 1526, questStorage = 65016, killsRequired = 200, raceName = "Mutated Rats", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = true, type = "boss", values = ESMERALDA_POSITION}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [18] = {questStarted = 1527, questStorage = 65017, killsRequired = 500, raceName = "Giant Spiders", rewards = {first = {enable = true, type = "exp", values = 5000}, second = {enable = true, type = "boss", values = THEOLDWIDOW_POSITION}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [19] = {questStarted = 1528, questStorage = 65018, killsRequired = 2000, raceName = "Hydras", rewards = {first = {enable = true, type = "boss", values = THEMANY_POSITION}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [20] = {questStarted = 1529, questStorage = 65019, killsRequired = 2000, raceName = "Sea Serpents", rewards = {first = {enable = true, type = "boss", values = LEVIATHAN_POSITION}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [21] = {questStarted = 1530, questStorage = 65020, killsRequired = 2000, raceName = "Behemoths", rewards = {first = {enable = true, type = "boss", values = STONECRACKER_POSITION}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [22] = {questStarted = 1531, questStorage = 65021, killsRequired = 1500, raceName = "Serpents Spawn", rewards = {first = {enable = true, type = "teleport", values = THENOXIUSSPAWN_POSITION}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [23] = {questStarted = 1532, questStorage = 65022, killsRequired = 500, raceName = "Green Djinns", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = true, type = "money", values = 5000}, third = {enable = true, type = "boss", values = MERIKHTHESLAUGHTERER_POSITION}}},
 
        [24] = {questStarted = 1533, questStorage = 65023, killsRequired = 500, raceName = "Blue Djinns", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = true, type = "money", values = 5000}, third = {enable = true, type = "boss", values = FAHIMTHEWISE_POSITION}}},
 
        [25] = {questStarted = 1534, questStorage = 65024, killsRequired = 3000, raceName = "Pirates", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = true, type = "money", values = 5000}, third = {enable = true, type = "boss", values = RANDOMPIRATEBOSS_POSITION}}},
 
        [26]= {questStarted = 1535, questStorage = 65025, killsRequired = 3000, raceName = "Pirates", rewards = {first = {enable = true, type = "exp", values = 10000}, second = {enable = true, type = "money", values = 5000}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [27] = {questStarted = 1536, questStorage = 65026, killsRequired = 5000, raceName = "Minotaurs", rewards = {first = {enable = true, type = "boss", values = {x = 32441, y = 31993, z = 9}}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [28] = {questStarted = 1537, questStorage = 65027, killsRequired = 4000, raceName = "Magicians", rewards = {first = {enable = true, type = "boss", values = {x = 32613, y = 32791, z = 8}}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [29] = {questStarted = 1538, questStorage = 65028, killsRequired = 1000, raceName = "Magicians", rewards = {first = {enable = true, type = "exp", values = 40000}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}},
 
        [30] = {questStarted = 1539, questStorage = 65029, killsRequired = 6666, raceName = "Demons", rewards = {first = {enable = true, type = "storage", values = {65535, 1}}, second = {enable = false, type = nil, values = {nil, nil}}, third = {enable = false, type = nil, values = {nil, nil}}}}
}
 
local storage = 64521
 
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
local voc = {}
 
function onCreatureAppear(cid)                          npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid)                       npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)                  npcHandler:onCreatureSay(cid, type, msg) end
function onThink()                                      npcHandler:onThink() end
 
function creatureSayCallback(cid, type, msg)
 
        local s = getPlayerStorageValue(cid, storage)
 
        if(not npcHandler:isFocused(cid)) then
                return false
        end
        local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_PRIVATE and 0 or cid
        if msgcontains(msg, 'task') then
        if(s < 0) then
                doPlayerSetStorageValue(cid, storage, 1)
        end
                if tasks[s] then
                        if(getPlayerStorageValue(cid, tasks[s].questStarted) < 1) then
                                if(getPlayerStorageValue(cid, tasks[s].creatureStorage) < 0) then
                                        doPlayerSetStorageValue(cid, tasks[s].creatureStorage, 0)
                                end
                                if(getPlayerStorageValue(cid, tasks[s].questStorage) < 0) then
                                        doPlayerSetStorageValue(cid, tasks[s].questStorage, 0)
                                end
                                doPlayerSetStorageValue(cid, tasks[s].questStarted, 1)
                                selfSay('You have started the task number ' .. getPlayerStorageValue(cid, storage) .. ', in this task you need to kill ' .. tasks[s].killsRequired .. ' ' .. tasks[s].raceName .. '.', cid)
                        end
                end
 
        elseif msgcontains(msg, 'report') then
        if(s < 0) then
                doPlayerSetStorageValue(cid, storage, 1)
        end
                if tasks[s].questStarted > 0 then
                        if(getPlayerStorageValue(cid, tasks[s].creatureStorage) < 0) then
                                doPlayerSetStorageValue(cid, tasks[s].creatureStorage, 0)
                        end
                        if(getPlayerStorageValue(cid, tasks[s].questStorage) < 0) then
                                doPlayerSetStorageValue(cid, tasks[s].questStorage, 0)
                        end
                        if(getPlayerStorageValue(cid, tasks[s].questStorage) >= tasks[s].killsRequired) then
                                selfSay('Great!... you have finished the task number ' .. s .. '. Good job.', cid)
                                doPlayerSetStorageValue(cid, storage, s + 1)
                                        if(tasks[s].rewards.first.enable) then
                                                if(tasks[s].rewards.first.type == "boss") then
                                                        doTeleportThing(cid, tasks[s].rewards.first.values[1], tasks[s].rewards.first.values[2])
                                                elseif(tasks[s].rewards.first.type == "exp") then
                                                        doPlayerAddExperience(cid, tasks[s].rewards.first.values)
                                                elseif(tasks[s].rewards.first.type == "item") then
                                                        doPlayerAddItem(cid, tasks[s].rewards.first.values[1], tasks[s].rewards.first.values[2])
                                                elseif(tasks[s].rewards.first.type == "money") then
                                                        doPlayerAddMoney(cid, tasks[s].rewards.first.values)
                                                elseif(tasks[s].rewards.first.type == "storage") then
                                                        doPlayerSetStorageValue(cid, tasks[s].rewards.first.values[1], tasks[s].rewards.first.values[2])
                                                end
                                        end
                                        if(tasks[s].rewards.second.enable) then
                                                if(tasks[s].rewards.second.type == "boss") then
                                                        doTeleportThing(cid, tasks[s].rewards.second.values[1], tasks[s].rewards.second.values[2])
                                                elseif(tasks[s].rewards.second.type == "exp") then
                                                        doPlayerAddExperience(cid, tasks[s].rewards.second.values)
                                                elseif(tasks[s].rewards.second.type == "item") then
                                                        doPlayerAddItem(cid, tasks[s].rewards.second.values[1], tasks[s].rewards.second.values[2])
                                                elseif(tasks[s].rewards.second.type == "money") then
                                                        doPlayerAddMoney(cid, tasks[s].rewards.second.values)
                                                elseif(tasks[s].rewards.second.type == "storage") then
                                                        doPlayerSetStorageValue(cid, tasks[s].rewards.second.values[1], tasks[s].rewards.second.values[2])
                                                end
                                        end
                                        if(tasks[s].rewards.third.enable) then
                                                if(tasks[s].rewards.third.type == "boss") then
                                                        doTeleportThing(cid, tasks[s].rewards.third.values[1], tasks[s].rewards.third.values[2])
                                                elseif(tasks[s].rewards.third.type == "exp") then
                                                        doPlayerAddExperience(cid, tasks[s].rewards.third.values)
                                                elseif(tasks[s].rewards.third.type == "item") then
                                                        doPlayerAddItem(cid, tasks[s].rewards.third.values[1], tasks[s].rewards.third.values[2])
                                                elseif(tasks[s].rewards.third.type == "money") then
                                                        doPlayerAddMoney(cid, tasks[s].rewards.third.values)
                                                elseif(tasks[s].rewards.third.type == "storage") then
                                                        doPlayerSetStorageValue(cid, tasks[s].rewards.third.values[1], tasks[s].rewards.third.values[2])
                                                end
                                        end
 
                        else
                                selfSay('Current ' .. getPlayerStorageValue(cid, tasks[s].questStorage) .. ' ' .. tasks[s].raceName .. ' killed, you need to kill ' .. tasks[s].killsRequired .. '.', cid)
                        end
                else
                        selfSay('You do not have started any task.', cid)
                        talkState[talkUser] = 0
                end
        end
        return true
end
 
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())odule(FocusModule:new())
 
Status
Not open for further replies.
Back
Top