Ir para conteúdo

Working Demon Oak Quest


swordie123

Posts Recomendados

GOOD OT-SERVER = MUCH PLAYERS!

GET DEDICATED SERVER WITH DDOS PROTECTION UP TO 10 GB/S HERE:

banner728.gif

 

 

Demon Oak Quest By Darkhaos [Tested in last The Forgotten Server Version = (Crying Damson) 0.3.6]

V0.7.0 Rev: 1.
Update Log:

Code:
http://otland.net/f81/working-demon-oak-quest-40244/index49.html#post1556557V0.6.8 Rev: 6:	Rev: 1 - [16 / 07 / 2011]		Changed some variables name, they fit their roles better now.		Some optimizations made to function 'getCreaturesInRange(type, fromPos, toPos, get[, countSummon])'.		Changed name to function 'getCreaturesInRange', now is 'getCreaturesInQuestArea'.		Some other changes.	Rev: 2 - [16 / 07 / 2011]		Updated function 'checkLib', now it checks if variables exists and are in the correct format.	Rev: 3 - [22 / 07 / 2011]		New variable on lib (waves), now you can declare hoy many waves for each oak-part.	Rev: 4 - [11 / 08 / 2011]		Updated 'demonOakDeath.lua', now creatures are removed when player dies.	Rev: 5 - [30 / 08 / 2011]		Updated the function 'monsterExists' to avoid errors on console. Lib updated.	Rev: 6 - [06 / 09 / 2011]		Now script will warn when one or more monsters is/are not summoned.V0.6.7 Rev: 45:	Rev: 25 -  [14 / 02 / 2011]		Now script will check if monsters can be summoned, if all monster can't be summoned, player won't get the storage.	Rev: 26 -  [14 / 02 / 2011]		Fixed a bug.	Rev: 27 -  [16 / 02 / 2011]		Updated function 'checkLib()' to prevent errors on console	Rev: 28 -  [16 / 02 / 2011]		Some changes to lib and actions/demonOak.lua	Rev: 29 -  [17 / 02 / 2011]		Fixed a bug on fucntion 'demonOakThink()'	Rev: 30 -  [17 / 02 / 2011]		Fixed a bug on function 'demonOakThink()'	Rev: 31 -  [17 / 02 / 2011]		Fixed a bug on function 'canEnter(cid, tree)'		Fixed a text bug on actions/demonOak.lua	Rev: 32 -  [17 / 02 / 2011]		Fixed a bug on function 'getCreaturesInRange(type, fromPos, toPos, toget, countSummon)'	Rev: 33 -  [23 / 02 / 2011]		Now demonOakThink will work only when gamestate is normal and not starting	Rev: 34 -  [24 / 02 / 2011]		Added function 'onThink' to oldrak.lua	Rev: 35 -  [25 / 02 / 2011]		Some changes.	Rev: 36 -  [26 / 02 / 2011]		Some optimitations to lib file.	Rev: 37 -  [26 / 02 / 2011]		More optimitations to lib file.	Rev: 38 -  [26 / 02 / 2011]		Added a new feature, now you can enable/disable if the errors founded in the lib will be saved on a text file (data/logs/demonOak.txt)	Rev: 39 -  [27 / 02 / 2011]		Now only errors will be saved in the .txt file	Rev: 40 -  [27 / 02 / 2011]		Now script will check for updates (Optional)	Rev: 41 -  [27 / 02 / 2011]		Fixed bug on lib.	Rev: 42 -  [27 / 02 / 2011]		Some changes to auto update-checker.	Rev: 43 -  [27 / 02 / 2011]		Now you can enable/disable if you want the script downloads a file with all new scripts on a specified dir by the user (Only players that are using auto-update checker.	Rev: 44 -  [03 / 03 / 2011]		Some updates to auto updater and fixed item ids in rewards.	Rev: 45 -  [08 / 07 / 2011]		Removed auto-updater, not in use anymore.V0.6.6 Rev: 24: [13 / 02 / 2011]- Updated lib file --[[	Updated function 'checkLib()' to prevent errors on console	Updated function 'demonOakThink()' to prevent errors on console]]V0.6.5 Rev: 23: [13 / 02 / 2011]- Updated lib file --[[	Removed messageUids, was useless.	Updated function 'checkLib()', now function will check if variables exists (To prevent errors on console)	Updated function 'demonOakThink()']]V0.6.4: [12 / 02 / 2011]- Updated lib file --[[	Added a variable to declare the dead tree id	Added a new variable to declare demon oak think storage.	Added a think function for the demon oak (demon oak will yell sounds like monster, added in lib to prevent a new file (globalevent file))	Added a variable to enable/disable demon oak think]]
wol_error.png Click this bar to view the full image.

55jvo0.png

Go to data/lib and create a new file called 102-demonOak.lua and paste this:

Lua Code:


called demonOak.lua and paste:

Lua Code:
Create a file on data/actions called demonOakGravestone.lua and paste:
Lua Code:
Create a file on data/actions called demonOakChests.lua and paste:
Lua Code:


XML Code:
Create a file on data/movements called demonOakTree.lua and paste:
Lua Code:
Create a file on data/movements called demonOakArea.lua and paste:
Lua Code:
Create a file on data/movements called demonOakSquares.lua and paste:
Lua Code:
Now add this to movements.xml:
XML Code:
Create a file on data/creaturescripts called demonOakLogout.lua and paste:
Lua Code:
Create a file on data/creaturescripts called demonOakDeath.lua and paste:
Lua Code:
Create a file on data/creaturescripts called demonOakAttack.lua and paste:
Lua Code:
Add this to login.lua:
Lua Code:
And this to creaturescripts.xml:
XML Code:
Create a file on data/npc called Oldrak.xml and paste:
XML Code:
Go to data/npc/scripts and create a file called oldrak.lua and paste:
Lua Code:
GOOD OT-SERVER = MUCH PLAYERS!

GET DEDICATED SERVER WITH DDOS PROTECTION UP TO 10 GB/S HERE:

banner728.gif

from otland.net
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...