• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

banshee/behamoth quest tfs 0.3.5

Joined
Jun 24, 2009
Messages
103
Reaction score
0
Location
Sweden
add in actions.xml

Code:
		<!-- Banshee Quest And Behamoth Quest -->
    <action uniqueid="20100" script="bb/behbanshchests.lua" />
    <action uniqueid="20200" script="bb/behbanshchests.lua" />
    <action uniqueid="20300" script="bb/behbanshchests.lua" />
    <action uniqueid="20400" script="bb/behbanshchests.lua" />
    <action uniqueid="40100" script="bb/behbanshchests.lua" />
    <action uniqueid="40200" script="bb/behbanshchests.lua" />
    <action uniqueid="40300" script="bb/behbanshchests.lua" />
    <action uniqueid="40400" script="bb/behbanshchests.lua" />
    <action uniqueid="40600" script="bb/behbanshchests.lua" />
	<action uniqueid="40500" script="bb/behbanshchests.lua" />



add in actions/scripts/bb
creatfile behbanshchests.lua


LUA:
 function onUse(cid, item, fromPosition, itemEx, toPosition)
       if item.uid == 20100 then
        queststatus = getPlayerStorageValue(cid,1414)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found Demon Shield.")
               doPlayerAddItem(cid,2520,1)
               setPlayerStorageValue(cid,1414,1)
           else
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
           end
       elseif item.uid == 20200 then
        queststatus = getPlayerStorageValue(cid,4141)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found Golden Armor.")
               doPlayerAddItem(cid,2466,1)
               setPlayerStorageValue(cid,4141,1)
           else
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
           end
       elseif item.uid == 20300 then
        queststatus = getPlayerStorageValue(cid,1441)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found Guardian Halberd.")
               doPlayerAddItem(cid,2427,1)
               setPlayerStorageValue(cid,1441,1)
           else
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
        end
       elseif item.uid == 20400 then
        queststatus = getPlayerStorageValue(cid,1144)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found Platinum Amulet.")
               doPlayerAddItem(cid,2171,1)
               setPlayerStorageValue(cid,1144,1)
           else
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
           end
      elseif item.uid == 40100 then
        queststatus = getPlayerStorageValue(cid,4411)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Crystal Coin.")
               doPlayerAddItem(cid,2160,1)
               setPlayerStorageValue(cid,4411,1)
           else
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
           end
    elseif item.uid == 40200 then
        queststatus = getPlayerStorageValue(cid,1515)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Stealth Ring.")
               doPlayerAddItem(cid,2165,1)
               setPlayerStorageValue(cid,1515,1)
           else
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
           end
    elseif item.uid == 40300 then
        queststatus = getPlayerStorageValue(cid,1551)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Stone Skin Amulet.")
               doPlayerAddItem(cid,2197,1)
               setPlayerStorageValue(cid,1551,1)
           else
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
           end
    elseif item.uid == 40400 then
        queststatus = getPlayerStorageValue(cid,5511)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found Boots Of Haste.")
               doPlayerAddItem(cid,2195,1)
               setPlayerStorageValue(cid,5511,1)
           else
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
           end
	elseif item.uid == 40600 then
        queststatus = getPlayerStorageValue(cid,1155)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found Tower Shield.")
               doPlayerAddItem(cid,2528,1)
               setPlayerStorageValue(cid,1155,1)
           else
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
           end
    elseif item.uid == 40500 then
        queststatus = getPlayerStorageValue(cid,1616)
           if queststatus == -1 then
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a Giant Sword.")
               doPlayerAddItem(cid,2393,1)
               setPlayerStorageValue(cid,1616,1)
           else
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
           end
    end
       return 1
end



Ids
Behamoth
20100-demon shield
20200-golden armor
20300-guardian halberd
20400-platinum amulet
and
banshee quest
40100-crystal coin
40200-stealth ring
40300-stone skin amulet
40400-boots of haste
40500-Giant Sword
40600-tower shield
 
Last edited:
They're not optimized. Also, the stoneskin amulet will only have 1 charge.
 
Back
Top