PDA

View Full Version : [Release-Lua Script] Scripted Durotar Mobs


Yerney
04-19-2008, 02:07 PM
Hi Ac-web!
Now is your chance to get your server more blizzlike!

LUA SCRIPT INFO:
I've made the most mobs in the starting area of the Orcs/Trolls scripted, like:
- Yarrog BaneShadow(For the Burning Medaillon Quest)
- Vile Familairs(The blue demons)
- Sarkoth(The Black Scorpion)
- VenomTail Scorpion
- Thunder Lizard

Totally Blizzlike(Maybe the casting time a little off but the spells are working)

Code:
--Sarkoth, The scorpion by Yerney
function Sarkoth_OnCombat(pUnit, Event)
pUnit:RegisterEvent("Sarkoth_Claw", 1000, 2)
end

function Sarkoth_Claw(pUnit, Event)
pUnit:FullCastSpellOnTarget(16827, pUnit:GetClosestPlayer())
end

RegisterUnitEvent(3281, 1, "Sarkoth_OnCombat")

--Vile Familiar, The demon things in the cave by Yerney
function Vile_OnCombat(pUnit, Event)
pUnit:RegisterEvent("Vile_Fire", 5000, 0)
end

function Vile_Fire(pUnit, Event)
pUnit:FullCastSpellOnTarget(11921, pUnit:GetClosestPlayer(0))
end

function Vile_LeaveCombat(pUnit, Event)
pUnit:RemoveEvents()
end

function Vile_Dead(pUnit, Event)
pUnit:RemoveEvents()
end

RegisterUnitEvent(3101, 1, "Vile_OnCombat")
RegisterUnitEvent(3101, 2, "Vile_LeaveCombat")
RegisterUnitEvent(3101, 4, "Vile_Dead")

--Yarrog BaneShadow, The guy for Burning Blade Medallion quest
function Yarrog_OnCombat(pUnit, Event)
pUnit:RegisterEvent("Yarrog_Fire", 7500, 2)
pUnit:RegisterEvent("Yarrog_Curse", 20000, 1)
end

function Yarrog_Fire(pUnit, Event)
pUnit:FullCastSpellOnTarget(348, pUnit:GetClosestPlayer())
end

function Yarrog_Curse(pUnit, Event)
pUnit:FullCastSpellOnTarget(172, pUnit:GetClosestPlayer())
end

function Yarrog_LeaveCombat(pUnit, Event)
pUnit:RemoveEvents()
end

function Yarrog_Dead(pUnit, Event)
pUnit:RemoveEvents()
end

RegisterUnitEvent(3183, 1, "Yarrog_OnCombat")
RegisterUnitEvent(3183, 2, "Yarrog_LeaveCombat")
RegisterUnitEvent(3183, 4, "Yarrog_Dead")

--Thunder Lizard by Yerney
function TL_OnCombat(pUnit, Event)
pUnit:RegisterEvent("TL_cast", 8000, 0)
end

function TL_cast(pUnit, Event)
pUnit:FullCastSpellOnTarget(5401, pUnit:GetClosestPlayer())
end

function TL_LeaveCombat(pUnit, Event)
pUnit:RemoveEvents()
end

function TL_Dead(pUnit, Event)
pUnit:RemoveEvents()
end

RegisterUnitEvent(3130, 1, "TL_OnCombat")
RegisterUnitEvent(3130, 2, "TL_LeaveCombat")
RegisterUnitEvent(3130, 4, "TL_Dead")

--VenomTail by Yerney
function VT_OnCombat(pUnit, Event)
pUnit:RegisterEvent("VT_cast", 7500, 0)
end

function VT_cast(pUnit, Event)
pUnit:FullCastSpellOnTarget(5416, pUnit:GetClosestPlayer())
end

function VT_LeaveCombat(pUnit, Event)
pUnit:RemoveEvents()
end

function VT_Dead(pUnit, Event)
pUnit:RemoveEvents()
end

RegisterUnitEvent(3127, 1, "VT_OnCombat")
RegisterUnitEvent(3127, 2, "VT_LeaveCombat")
RegisterUnitEvent(3127, 4, "VT_Dead")

yuzoki
04-19-2008, 02:35 PM
Nice, someone should make a script for orgrimmar / stormwind guards =)

Yerney
04-19-2008, 02:42 PM
Orgrimmar is already scripted :P

Updated!
If you guys see any bugs, plz report so i can fix it! :D

howling
04-19-2008, 02:44 PM
Good work, +rep

Yerney
04-19-2008, 02:45 PM
Good work, +rep

Ty Howling!

Im going to script the kolkars this evening and maybe the others like Zalazane =D

martaz
04-20-2008, 11:04 AM
can i ask a question how do i use this script for my own ?

Yerney
04-20-2008, 11:08 AM
copy paste it in notepad, then save it as all files and write:
durotarmobs.lua

and put it in repackname/ascent/scripts folder

or go to:
http://projects.emupedia.com/svn/lasp

and login with
username: anonymous
passw: leave blank

martaz
04-20-2008, 11:27 AM
i did that but why don't is show it in my file

i don't think anything works for me i did what you told me.
copy paste it in notepad, then save it as all files and write:
durotarmobs.lua

and put it in repackname/ascent/scripts folder

wartick
04-20-2008, 12:07 PM
Yerney, come to MSN i have the Dun morog done.

And Howling read your PM box

i did that but why don't is show it in my file

i don't think anything works for me i did what you told me.
copy paste it in notepad, then save it as all files and write:
durotarmobs.lua

and put it in repackname/ascent/scripts folder

What your Ascent-world said when you loaded the script engine?

martaz
04-20-2008, 12:17 PM
i did not run that yet

Yerney
04-20-2008, 12:18 PM
go to the svn and download the files there, they are already ".lua" so you only have to download them.

martaz
04-20-2008, 12:19 PM
the script engine did not say anything about my scripts

where can i find the svn ?

Yerney
04-20-2008, 12:22 PM
or go to:
http://projects.emupedia.com/svn/lasp

and login with
username: anonymous
passw: leave blank

martaz
04-20-2008, 12:26 PM
ok thxs, i addedd them now.

Just one problem i have this script it is suppose to lv you to 70 and give you 1k gold but i don't work for somereason.

Well here is the script. and also loads are people arre good wth this type of thing how can you change the GM rank games to like server owner and also how can you take commands from lower ranks. and how can you change the .mod speed scale because it is way too high it will crash server same with .mod scale





void PlayerFirstEnter(Player * pPlayer)
{
LevelInfo * Info = objmgr.GetLevelInfo(pPlayer->getRace(), pPlayer->getClass(), 70);
pPlayer->ApplyLevelInfo(Info, 70);
pPlayer->SetUInt32Value(PLAYER_FIELD_COINAGE,10000000); // Set gold
pPlayer->_AdvanceAllSkills(375);

void SetupPlayerFirstEnter(ScriptMgr * mgr)
{
mgr->register_hook(SERVER_HOOK_EVENT_ON_FIRST_ENTER_WOR LD, (void*)PlayerFirstEnter);
}

Yerney
04-20-2008, 12:37 PM
Then you need to compile the ascent source and it has nothing to do with lua ;)

Yerney
04-20-2008, 01:02 PM
Plz make your own thread for that stuff ok?

martaz
04-20-2008, 01:09 PM
ok

wartick
04-20-2008, 01:27 PM
Yerney to MSN, gonna fix the Spells, and btw isnt Global cooldown 1500milliseconds?

Yerney
04-20-2008, 01:32 PM
Fixed spells ;) and uploaded to SVN ^^

wartick
04-20-2008, 01:33 PM
To MSN O.o?

Yerney
04-20-2008, 01:36 PM
XD I mean SVN xD

karal
04-20-2008, 03:13 PM
stormwind npc lua ??
npc : thomas miller
talking npc lua
D:

Yerney
04-20-2008, 03:29 PM
who the hell is talking in about SW? This is durotar...