andu
Sold 649 scripts, 25 maps and 9 events!
Only for OTLand.net Members!
Ver 1.1
Change log
Ver 1.1
Change log
Code:
ver 1.1
- added option to change amount of quests
- fixed bug where npc not always gives full reward
- some language fixes
Compatybility?
scripted on TFS 0.3.5
but should work on every TFS above 0.3 and 0.4
What this NPC doing?
He is giving 6 diffrent quests in one chain quest.
This mean: you have to finish first to be able to start another.
Aslo these quests are repeatable every day! (can be changed in cfg)
If you finish just 4 quests in first day,
in the next day these quests will reset and you have to start from begin again.
As I said before, THESE QUESTS ARE REPEATABLE!
Rights?
Me.
Ask me if you want publish it on any other place.
How to install?
Part 1 of 3
Go to your NPC folder data/npc and create new file named ex: Astra.xml.
And put this inside:
scripted on TFS 0.3.5
but should work on every TFS above 0.3 and 0.4
What this NPC doing?
He is giving 6 diffrent quests in one chain quest.
This mean: you have to finish first to be able to start another.
Aslo these quests are repeatable every day! (can be changed in cfg)
If you finish just 4 quests in first day,
in the next day these quests will reset and you have to start from begin again.
As I said before, THESE QUESTS ARE REPEATABLE!
Rights?
Me.
Ask me if you want publish it on any other place.
How to install?
Part 1 of 3
Go to your NPC folder data/npc and create new file named ex: Astra.xml.
And put this inside:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Astra" script="data/npc/scripts/daily.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="128" head="17" body="54" legs="114" feet="0" addons="2"/>
<parameters>
<parameter key="message_greet" value="Hello |PLAYERNAME|."/>
</parameters>
</npc>
Part 2 of 3
Go to your directory data/npc/scripts and create a file daily.lua
Copy this and paste into it:
Core code:
Download: daily_1 - Copy.txt
Part 3 of 3
Log in on your GM and use this command:
to summon this npc, try to test quests with normal character instead of gamemaster.
If you would like to make availabe "monster killing" option:
Part 1 of 4
Go to your data/creaturescripts, open your creaturescripts.xml and add this:
Go to your directory data/npc/scripts and create a file daily.lua
Copy this and paste into it:
Core code:
Download: daily_1 - Copy.txt
Part 3 of 3
Log in on your GM and use this command:
Code:
/n astra
If you would like to make availabe "monster killing" option:
Part 1 of 4
Go to your data/creaturescripts, open your creaturescripts.xml and add this:
Code:
<event type="kill" name="Daily quests killing" event="script" value="dailyQuestsKilling.lua"/>
Part 2 of 4
Paste this in your login.lua default located in data/creaturescripts/scripts
Paste this in your login.lua default located in data/creaturescripts/scripts
Code:
registerCreatureEvent(cid, "Daily quests killing")
Part 3 of 4
Now in your data/creaturescripts/scripts make a new file named dailyQuestsKilling.lua and add this inside:
Now in your data/creaturescripts/scripts make a new file named dailyQuestsKilling.lua and add this inside:
Code:
local mobsList = {
["dragon"] = {storage = 44444, raceName = "Dragons"}, -- storage have to be exacly the same as in your npc file!
["demon"] = {storage = 45554, raceName = "Demons"}
}
function onKill(cid, target, lastHit)
local mob = mobs[getCreatureName(target):lower()]
if isPlayer(cid) == true then
return true
else
if mob == true then
local check = getPlayerStorageValue(cid, mob.storage)
if check >= 0 then
doPlayerSetStorageValue(cid, storage, check + 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, mob.raceName .. " killed: " .. (check + 1) .. ".")
end
end
end
return true
end
Part 4 of 4
Add this to every creature file used in this quest. Exacly before last line, where is </monster>.
Add this to every creature file used in this quest. Exacly before last line, where is </monster>.
Code:
<script>
<event name="Daily Quest Killing"/>
</script>
Hope you like this!
Attachments
-
daily_1 - Copy.txt11.7 KB · Views: 382 · VirusTotal
Last edited: