diff options
author | raczman <none@none> | 2009-03-24 00:06:47 +0100 |
---|---|---|
committer | raczman <none@none> | 2009-03-24 00:06:47 +0100 |
commit | 76f466cb3dc4e6fbe343b35e453c0d00c26c350a (patch) | |
tree | c854979691c24d54aa88dc805463c7a5ae9792d5 /src | |
parent | 71bcdec848661f93f34e958f535041964b6f01de (diff) |
Added script for GO 184421 by Lukaasm.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings/scripts/scripts/go/go_scripts.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/bindings/scripts/scripts/go/go_scripts.cpp b/src/bindings/scripts/scripts/go/go_scripts.cpp index 9b775a3ef98..5c171b035b4 100644 --- a/src/bindings/scripts/scripts/go/go_scripts.cpp +++ b/src/bindings/scripts/scripts/go/go_scripts.cpp @@ -170,6 +170,30 @@ bool GOHello_go_jump_a_tron(Player *player, GameObject* _GO) return true; } +/*###### +## go_ethereum_prison +######*/ + +float ethereum_NPC[2][7] = +{ + {20785,20790,20789,20784,20786,20783,20788}, // hostile npc + {22810,22811,22812,22813,22814,22815,0} // fiendly npc (need script in acid ? only to cast spell reputation reward) +}; + +bool GOHello_go_ethereum_prison(Player *player, GameObject* _GO) +{ + _GO->SetGoState(0); + switch(rand()%2){ + case 0: + _GO->SummonCreature(ethereum_NPC[0][rand()%6],_GO->GetPositionX(),_GO->GetPositionY(),_GO->GetPositionZ()+0.3, 0,TEMPSUMMON_CORPSE_TIMED_DESPAWN,10000); + break; + case 1: + _GO->SummonCreature(ethereum_NPC[1][rand()%5],_GO->GetPositionX(),_GO->GetPositionY(),_GO->GetPositionZ()+0.3, 0,TEMPSUMMON_TIMED_DESPAWN,10000); + break; +} +return true; +} + void AddSC_go_scripts() { Script *newscript; @@ -223,5 +247,11 @@ void AddSC_go_scripts() newscript->Name="go_jump_a_tron"; newscript->pGOHello = &GOHello_go_jump_a_tron; newscript->RegisterSelf(); + + newscript = new Script; + newscript->Name="go_ethereum_prison"; + newscript->pGOHello = &GOHello_go_ethereum_prison; + newscript->RegisterSelf(); + } |