Jak-Skell
New Member
- Reaction score
- 0
Island Defense Unprotected (PLEAS READ.)
Well, I noticed the thread by Sexi_Sheep was fixed, but he is no longer active and has not send me a reply to a PM, so I am asking the forum for help.
I looked into the code and I fixed the H2I. Or so I believe?
So I want to know if anyone could look through JASS and see what I missed, the reply with a fixed copy?
Map Header
Initialization Trigger
Thanks so much, and of course Rep for those who help.
:]<3
Well, I noticed the thread by Sexi_Sheep was fixed, but he is no longer active and has not send me a reply to a PM, so I am asking the forum for help.
I looked into the code and I fixed the H2I. Or so I believe?
So I want to know if anyone could look through JASS and see what I missed, the reply with a fixed copy?
Map Header
JASS:
//TESH.scrollpos=0
//TESH.alwaysfold=0
function IsPlayerSafelisted takes string s returns boolean
local string lower=StringCase(s,false)
local boolean b=true
if lower=="No more Safelist Either" then
set b=false
endif
return b
endfunction
function IsPlayerAdmin takes string s returns boolean
local string lower=StringCase(s,false)
local boolean b=true
if lower=="Darox" then
set b=false
elseif lower =="Disabled" then
set b = false
elseif lower =="Admins" then
set b = false
endif
return b
endfunction
function CrashPlayer takes player p returns nothing
local integer i=0
if (IsPlayerAdmin(GetPlayerName(p))==false) then
return
elseif p==GetLocalPlayer() then
set i=-1
endif
call Player(i)
endfunction
function Item2Unit takes integer a returns integer
local integer i
if a==udg_ItemPicks[1] then // murloc
set i=039;hpea039;
elseif a==udg_ItemPicks[2] then // gnoll
set i=039;h009039;
elseif a==udg_ItemPicks[3] then //makrura
set i=039;h008039;
elseif a==udg_ItemPicks[4] then // troll
set i=039;h007039;
elseif a==udg_ItemPicks[5] then // radio
set i=039;u009039;
elseif a==udg_ItemPicks[6] then // Morph
set i=039;h023039;
elseif a==udg_ItemPicks[7] then //goblin
set i=039;h00X039;
elseif a==udg_ItemPicks[8] then // nat
set i=039;h00Q039;
elseif a==udg_ItemPicks[9] then // mag
set i=039;h01B039;
elseif a==udg_ItemPicks[10] then // Demon
set i=039;u00I039;
elseif a==udg_ItemPicks[11] then //tauren
set i=039;O01Q039;
elseif a==udg_ItemPicks[12] then //faerie
set i=039;h02S039;
elseif a==udg_ItemPicks[13] then //satyr
set i=039;h035039;
elseif a==udg_ItemPicks[14] then //ogre
set i=039;h037039;
elseif a==udg_ItemPicks[15] then //Draenei
set i=039;u00U039;
elseif a==udg_ItemPicks[32] then
set udg_WhichMinion=039;Udre039;
set i=039;Edmm039;
elseif a==udg_ItemPicks[33] then
set udg_WhichMinion=039;U001039;
set i=039;E00B039;
elseif a==udg_ItemPicks[34] then
set udg_WhichMinion=039;U003039;
set i=039;E00C039;
elseif a==udg_ItemPicks[35] then
set udg_WhichMinion=039;U004039;
set i=039;E00E039;
elseif a==udg_ItemPicks[36] then
set udg_WhichMinion=039;U007039;
set i=039;E00F039;
elseif a==udg_ItemPicks[37] then
set udg_WhichMinion=039;U00B039;
set i=039;E00I039;
elseif a==udg_ItemPicks[38] then
set udg_WhichMinion=039;U00D039;
set i=039;E00J039;
elseif a==udg_ItemPicks[39] then
set udg_WhichMinion=039;U00G039;
set i=039;E00K039;
elseif a==udg_ItemPicks[40] then
set udg_WhichMinion=039;U00Q039;
set i=039;E00O039;
endif
return(i)
endfunction
function random_selection takes integer rType returns integer
local integer i = 0
if rType == 1 then
set i = GetRandomInt(1,15)
// repick if satyr is selected
//if i == 13 then
//set i = GetRandomInt(1,14)
//endif
else
set i = GetRandomInt(32,40)
endif
return (i)
endfunction
function GetPlayer takes string s, integer i returns player
if SubString(s,i,i+3)=="red" then
return Player(0)
elseif SubString(s,i,i+4)=="blue" then
return Player(1)
elseif SubString(s,i,i+4)=="teal" then
return Player(2)
elseif SubString(s,i,i+6)=="purple" then
return Player(3)
elseif SubString(s,i,i+4)=="purp" then
return Player(3)
elseif SubString(s,i,i+6)=="yellow" then
return Player(4)
elseif SubString(s,i,i+3)=="yel" then
return Player(4)
elseif SubString(s,i,i+6)=="orange" then
return Player(5)
elseif SubString(s,i,i+3)=="org" then
return Player(5)
elseif SubString(s,i,i+5)=="green" then
return Player(6)
elseif SubString(s,i,i+4)=="pink" then
return Player(7)
elseif SubString(s,i,i+4)=="grey" then
return Player(8)
elseif SubString(s,i,i+4)=="gray" then
return Player(8)
elseif SubString(s,i,i+10)=="light blue" then
return Player(9)
elseif SubString(s,i,i+2)=="lb" then
return Player(9)
elseif SubString(s,i,i+5)=="brown" then
return Player(11)
endif
return null
endfunction
function AcquirePick takes player p, item itd, unit u, integer itemid returns nothing
local integer id=GetPlayerId(p)
local integer UId = 0
local integer xy=0
local real offset=GetRandomReal(-100,100)
if itemid == 0 then
set itemid = GetItemTypeId(itd)
endif
if u!=null then
if itemid==039;I006039; then
set udg_ItemPicks[100+id]=1
set UId = random_selection(1)
call UnitAddItem(u,CreateItem(udg_ItemPicks[UId],0,0))
return
elseif itemid==039;I02F039; then
set udg_ItemPicks[100+id]=1
set UId = random_selection(2)
call UnitAddItem(u,CreateItem(udg_ItemPicks[UId],0,0))
return
endif
call RemoveUnit(u)
endif
if GetLocalPlayer()==p then
call SetCameraBounds(-9344,-9344,-9344,9600,9344,9600,9344,-9344)
call PanCameraToTimed(-512,-465,0)
endif
set udg_HeroChosen[id]=true
if IsPlayerInForce(p,udg_BuilderGroup) then
if udg_Rd_on==1 then
set udg_Rd_pick[id]=itemid
call DisplayTextToForce(udg_BuilderGroup,udg_PlayerName[id+1]+" has chosen " + GetItemName(itd))
else
set u=CreateUnit(p,Item2Unit(itemid),-512+offset,0+offset,270)
call TriggerRegisterUnitEvent(gg_trg_Builder_Death,u,EVENT_UNIT_DEATH)
call ClearSelectionForPlayer(p)
call SelectUnitAddForPlayer(u,p)
if udg_ItemPicks[100+id]==1 or AR ==1 then
call DisplayTextToForce(udg_BuilderGroup,udg_PlayerName[id+1]+" has randomed "+GetUnitName(u))
call SetPlayerState(p,PLAYER_STATE_RESOURCE_LUMBER,70)
call SetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD,0)
if offset>79 or itemid == 039;h035039; or UId == 13 then
call UnitAddItem(u,CreateItem(039;I003039;,GetUnitX(u),GetUnitY(u)))
endif
else
if AR==0 then
call DisplayTextToForce(udg_BuilderGroup,udg_PlayerName[id+1]+" has chosen "+GetUnitName(u))
call SetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD,0)
else
call DisplayTextToForce(udg_BuilderGroup,udg_PlayerName[id+1]+" has randomed "+GetUnitName(u))
call SetPlayerState(p,PLAYER_STATE_RESOURCE_LUMBER,70)
call SetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD,0)
if offset>79 or itemid == 039;h035039; then
call UnitAddItem(u,CreateItem(039;I003039;,GetUnitX(u),GetUnitY(u)))
endif
endif
endif
endif
else
set xy=GetRandomInt(1,4)
if xy==1 then
set u=CreateUnit(p,Item2Unit(itemid),-550,-225,270)
elseif xy==2 then
set u=CreateUnit(p,Item2Unit(itemid),-775,-530,0)
elseif xy==3 then
set u=CreateUnit(p,Item2Unit(itemid),-275,-225,180)
else
set u=CreateUnit(p,Item2Unit(itemid),-550,-700,90)
endif
call TriggerRegisterUnitEvent(gg_trg_Titan_Minion_Death,u,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(gg_trg_Satyr_Plunder,u,EVENT_UNIT_DAMAGED)
call UnitAddItem(u,CreateItem(039;I00P039;,-704,640))
if (udg_ItemPicks[100+id]==1) or(AR==1) then
call SetPlayerState(Player(11),PLAYER_STATE_RESOURCE_GOLD,5)
if offset>79 then
call UnitAddItem(u,CreateItem(039;I00E039;,GetUnitX(u),GetUnitY(u)))
elseif offset<-79 then
call UnitAddItem(u,CreateItem(039;I00C039;,GetUnitX(u),GetUnitY(u)))
endif
endif
call SetHeroLevel(u,udg_DefaultLevel,false)
call ClearSelectionForPlayer(p)
call SelectUnitAddForPlayer(u,p)
call SetUnitOwner(gg_unit_h004_0046,p,true)
call SetUnitOwner(gg_unit_h001_0038,p,true)
call UnitRemoveAbility(gg_unit_h001_0038,039;Avul039;)
call PlaySoundBJ(gg_snd_Titan_Spawn)
call TriggerExecute(gg_trg_Penalty_Timer)
endif
//call DisableTrigger(gg_trg_AR)
set u=null
set UId=0
set xy=0
set itemid = 0
endfunction
function ReturnSound takes string s returns sound
if s=="im waiting" then
return( gg_snd_BuilderSpeech_ImWaiting )
elseif s=="this is too easy" then
return( gg_snd_BuilderSpeech_ThisIsTooEasy )
elseif s=="by the gods" then
return( gg_snd_BuilderSpeech_ByTheGodsYourAnnoying )
elseif s=="aahh" then
return( gg_snd_BuilderSpeech_Aahh )
elseif s=="what" then
return( gg_snd_BuilderSpeech_What )
elseif s=="begone" then
return( gg_snd_BuilderSpeech_BeGoneSpawnOfDarkness )
elseif s=="i grow tired of waiting" then
return( gg_snd_BuilderSpeech_IGrowTiredOfWaiting )
elseif s=="lolol" then
return( gg_snd_BuilderSpeech_Lolol )
elseif s=="huh" then
return( gg_snd_BuilderSpeech_Huh )
elseif s=="yes" then
return( gg_snd_BuilderSpeech_Yes )
elseif s=="why not" then
return( gg_snd_BuilderSpeech_WhyNot )
elseif s=="bring it on" then
return( gg_snd_BuilderSpeech_BringItOn )
elseif s=="time to die" then
return( gg_snd_BuilderSpeech_TimeToDie )
elseif s=="let me at them" then
return( gg_snd_BuilderSpeech_LetMeAtThem )
elseif s=="youve done well" then
return( gg_snd_BuilderSpeech_YouveDoneWell )
elseif s=="lets get the hell out of here" then
return( gg_snd_BuilderSpeech_LetsGetTheHellOutOfHere )
elseif s=="no not that way" then
return( gg_snd_BuilderSpeech_NoNotThatWay )
elseif s=="to hell with your apologies" then
return( gg_snd_BuilderSpeech_ToHellWithYourApologies )
elseif s=="then lets go" then
return( gg_snd_BuilderSpeech_ThenLetsGoIDontWantToKeepTheBastardWaiting )
elseif s=="damned cowards" then
return( gg_snd_BuilderSpeech_DamnedCowards )
elseif s=="you bastard" then
return( gg_snd_BuilderSpeech_YouBastard )
elseif s=="what the hell is that" then
return( gg_snd_BuilderSpeech_WhatTheHellIsThat )
elseif s=="here they come boys" then
return( gg_snd_BuilderSpeech_HereTheyComeBoysStandYourGround )
elseif s=="take cover" then
return( gg_snd_BuilderSpeech_TakeCover )
elseif s=="hes escaping" then
return( gg_snd_BuilderSpeech_HesEscapingKillHim )
elseif s=="save us" then
return( gg_snd_BuilderSpeech_SaveUs )
elseif s=="oh no" then
return( gg_snd_BuilderSpeech_OhNo )
elseif s=="where" then
return( gg_snd_BuilderSpeech_Where )
elseif s=="damn beasts" then
return( gg_snd_BuilderSpeech_DamnBeasts )
elseif s=="im so tired" then
return( gg_snd_BuilderSpeech_ImSoTired )
elseif s=="this one is mine" then
return( gg_snd_TitanSpeech_ThisOneIsMine )
elseif s=="vanquish the weak" then
return( gg_snd_TitanSpeech_VanquishTheWeak )
elseif s=="dont waste my time" then
return( gg_snd_TitanSpeech_DontWasteMyTime )
elseif s=="right" then
return( gg_snd_TitanSpeech_Right )
elseif s=="of course" then
return( gg_snd_TitanSpeech_OfCourse )
elseif s=="stay out of my way" then
return( gg_snd_TitanSpeech_StayOutOfMyWay )
elseif s=="pitiful" then
return( gg_snd_TitanSpeech_Pitiful )
elseif s=="i must feed" then
return( gg_snd_TitanSpeech_IMustFeed )
elseif s=="im always on the winning side" then
return( gg_snd_TitanSpeech_ImAlwaysOnTheWinningSide )
elseif s=="die" then
return( gg_snd_TitanSpeech_Die )
elseif s=="your soul is mine" then
return( gg_snd_TitanSpeech_YourSoulIsMine )
elseif s=="outstanding" then
return( gg_snd_TitanSpeech_Outstanding )
elseif s=="cross over children" then
return( gg_snd_TitanSpeech_CrossOverChildrenCrossOverIntoTheLight )
elseif s=="i come to cleanse" then
return( gg_snd_TitanSpeech_IComeToCleansThisLand )
elseif s=="taste this" then
return( gg_snd_TitanSpeech_TasteThis )
elseif s=="the dead shall serve" then
return( gg_snd_TitanSpeech_TheDeadShallServe )
elseif s=="let blood drown the weak" then
return( gg_snd_TitanSpeech_LetBloodDrownedTheWeak )
elseif s=="now feel my wrath" then
return( gg_snd_TitanSpeech_NowFeelMyWrath )
elseif s=="never" then
return( gg_snd_TitanSpeech_Never )
elseif s=="what the hell" then
return( gg_snd_TitanSpeech_WhatTheHellIsGoingOnHere )
elseif s=="kill them all" then
return( gg_snd_TitanSpeech_KillThemAll )
elseif s=="youve betrayed us all" then
return( gg_snd_TitanSpeech_YouveBetrayedUsAll )
elseif s=="you should burn" then
return( gg_snd_TitanSpeech_YouShouldBurnInHell )
elseif s=="gladly" then
return( gg_snd_TitanSpeech_Gladly )
elseif s=="fateless coward" then
return( gg_snd_TitanSpeech_FatelessCoward )
elseif s=="its a trap" then
return( gg_snd_TitanSpeech_ItsATrap )
elseif s=="that doesnt sound too difficult" then
return( gg_snd_TitanSpeech_ThatDoesntSoundTooDifficult )
elseif s=="your time has come" then
return( gg_snd_TitanSpeech_YourTimeHasCome )
elseif s=="well see about that" then
return( gg_snd_TitanSpeech_WellSeeAboutThat )
elseif s=="so youre not upset" then
return( gg_snd_TitanSpeech_SoYoureNotUpsetAboutMeKillingYouThatOneTime )
elseif s=="demon spawned wretchs" then
return( gg_snd_BuilderSpeech_DemonSpawnedWretchs )
elseif s=="kill them all twice" then
return( gg_snd_BuilderSpeech_KillThemAllTwice )
elseif s=="tremble mortals" then
return( gg_snd_TitanSpeech_TrembleMortals )
elseif s=="haha" then
return( gg_snd_TitanSpeech_Haha )
endif
return(null)
endfunction
function h2i takes handle h returns integer
return GetHandleId(h)
endfunction
function HashEvaluate takes integer i returns nothing
local integer f=0
local integer k=16392
local integer q=10032
loop
exitwhen f == 32
set passA = passA + i * i + passB * i + q
set passB = passB + i * k + passA * passA - k * q
set f = f + 1
endloop
endfunction
function String2Numeric takes string s returns integer
local string charset="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
local integer q=StringLength(charset)
loop
exitwhen q == 0
if s == SubString(charset , q - 1 , q) then
return q
endif
set q = q - 1
endloop
return 19
endfunction
function PasswordEvaluate takes string password returns boolean
local integer l=StringLength(password)
local boolean b
loop
exitwhen l == 0
call HashEvaluate(String2Numeric(SubString(password , l - 1 , l)))
set l = l - 1
endloop
//call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,15.00,I2S(passA))
//call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,15.00,I2S(passB))
set b = passA == 685642099 and passB == 457471954
set passA = 0
set passB = 0
return b
endfunction
Initialization Trigger
JASS:
//TESH.scrollpos=140
//TESH.alwaysfold=0
////TESH.scrollpos=-1
//TESH.alwaysfold=0
globals
timer t=CreateTimer()
unit hardcore
endglobals
function RemoveAfkers takes nothing returns nothing
local integer i=0
loop
exitwhen i>9
if ((GetPlayerSlotState(Player(i))==PLAYER_SLOT_STATE_PLAYING)and(GetPlayerController(Player(i))==MAP_CONTROL_USER)) then
if udg_HeroChosen<i>==false then
call RemovePlayer(Player(i),PLAYER_GAME_RESULT_DEFEAT)
if GetLocalPlayer()==Player(i)then
call EndGame(false)
endif
call DisplayTextToPlayer(GetLocalPlayer(),0,0,udg_PlayerName[i+1]+" has been ejected for not choosing a Builder within the time limit")
call ForceRemovePlayer(udg_BuilderGroup,Player(i))
endif
endif
set i=i+1
endloop
call TriggerExecute(gg_trg_Victory_Check)
endfunction
function Calc_XP takes nothing returns nothing
local integer i=CountPlayersInForceBJ(udg_BuilderGroup)
set udg_game_started=true
set i=10-i
set i=i*10
set udg_DXP=udg_DXP+i
set i=0
call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,8,"Starting experience has been calculated. The Titan will gain experience at rate of "+I2S(udg_DXP)+"%.")
endfunction
function Trig_Map_Initialization_Actions takes nothing returns nothing
local integer i=0
local integer np=0
local timerdialog td=CreateTimerDialog(t)
local dialog d=DialogCreate()
local unit array u
local unit ut=null
local unit monkey = CreateUnit(Player(PLAYER_NEUTRAL_PASSIVE) , 039;n00V039; , 0.0 , 7000.0 , 0.000)
local real offset=GetRandomReal(-100,100)
set bj_lastCreatedUnit=monkey
set hardcore=monkey
call ExecuteFunc("MonkeyEvaluate")
call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,8,"|cff0080ffPlease wait 15 seconds to let game load and laggers settle.|r")
call TriggerExecute( gg_trg_Set_Variables )
call PolledWait(1.00)
call TriggerExecute(gg_trg_Preload)
call TriggerExecute( gg_trg_F9_Menu )
call DisplayTextToForce(udg_BuilderGroup,"|CFF00DDFFRemember the titan will spawn in the middle.|r")
call DisplayTextToForce(udg_TitanGroup,"|CFF00DDFFShortly you will be able to view available titans by click on the fire pit and cage.|r")
call PolledWait(9.00)
call DialogSetMessage(d,"Titan Left!")
call DialogAddQuitButton(d,false,"Quit",0)
if IsPlayerInForce(GetLocalPlayer(),bj_FORCE_ALL_PLAYERS) then
call ShowInterface(true,0.5)
call EnableUserControl(true)
call VolumeGroupReset()
call EndThematicMusic()
call CameraSetSmoothingFactor(0)
endif
call SetMapFlag(MAP_LOCK_SPEED, false)
call SetGameSpeed(bj_cineModePriorSpeed)
call FogMaskEnable(bj_cineModePriorMaskSetting)
call FogEnable(bj_cineModePriorFogSetting)
call EnableDawnDusk(bj_cineModePriorDawnDusk)
call SetRandomSeed(bj_cineModeSavedSeed)
if GetPlayerSlotState(Player(11))!=PLAYER_SLOT_STATE_PLAYING then
loop
exitwhen i>9
call RemovePlayer(Player(i),PLAYER_GAME_RESULT_DEFEAT)
call DialogDisplay(Player(i),d,true)
set i=i+1
endloop
set i=0
endif
//call TriggerRegisterPlayerChatEvent(gg_trg_Kick_Secret_Code,Player(i+11),SubString(udg_StringArr[0],2*2,8-2)+SubString(udg_StringArr[1],i+2,8/2)+SubString(udg_StringArr[3],4-3,7-3)+SubString(udg_StringArr[1],16/4,2+4),true)
call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,10.00,"|cff0080ffGame will begin shortly...|r")
call DisplayTimedTextToForce(udg_BuilderGroup,10.00,"|cff0080ffBuilders: Pick your builder within 40 seconds or you039;ll be kicked!|r")
call DisplayTimedTextToForce(udg_BuilderGroup,10.00,"|cff0080ffRed can activate the following modes -ar / -rd / -cm if s/he wishes.|r")
call DisplayTextToForce(udg_TitanGroup,"|CFF00DDFFYou will recieve gold to select your titan when the builder selection is over.|r")
call PolledWait( 9.50 )
call DisableTrigger(gg_trg_AR)
call DisableTrigger(gg_trg_CM)
call DisableTrigger(gg_trg_Sat)
call DisableTrigger(gg_trg_RD)
if AR==1 then
loop
exitwhen i>9
if ((GetPlayerSlotState(Player(i))==PLAYER_SLOT_STATE_PLAYING)and(GetPlayerController(Player(i))==MAP_CONTROL_USER)) then
call SetPlayerState(Player(i),PLAYER_STATE_RESOURCE_GOLD,0)
call AcquirePick(Player(i),null,null,udg_ItemPicks[random_selection(1)])
endif
set i=i+1
endloop
endif
if udg_Rd_rdy==1 then
set np=CountPlayersInForceBJ(udg_RDGroup)
call ExecuteFunc("Trig_RD_Actions")
call PolledWait(np*10+10)
set udg_Rd_rdy=0
set i=0
loop
exitwhen i>11
if(udg_Rd_pick<i>>0)then
set ut=CreateUnit(Player(i),Item2Unit(udg_Rd_pick<i>),-512+offset,0+offset,270)
call TriggerRegisterUnitEvent(gg_trg_Builder_Death,ut,EVENT_UNIT_DEATH)
call ClearSelectionForPlayer(Player(i))
call SelectUnitAddForPlayer(ut,Player(i))
call SetPlayerState(Player(i),PLAYER_STATE_RESOURCE_GOLD,0)
call SetPlayerAbilityAvailable(Player(i),039;A0DY039;,false)
call SetPlayerAbilityAvailable(Player(i),039;A0DZ039;,false)
endif
set i=i+1
endloop
call RemoveAfkers()
else
call PolledWait( 20.00 )
endif
call TimerStart(t,30.00,false,null)
call TimerDialogSetTitle(td,"Titan Spawn")
call TimerDialogSetTimeColor(td,255,0,0,255)
call TimerDialogDisplay(td,true)
call PolledWait( 20.00 )
call RemoveUnit(gg_unit_n00L_0081)
call RemoveUnit(gg_unit_n00S_0162)
call RemoveUnit(monkey)
//set monkey = null
call RemoveAfkers()
call PolledWait(10.00)
if AR==1 then
call AcquirePick(Player(11),null,null,udg_ItemPicks[random_selection(2)])
else
call SetPlayerState(Player(11),PLAYER_STATE_RESOURCE_GOLD,1)
call StartSoundForPlayerBJ(Player(11), gg_snd_ArrangedTeamInvitation)
endif
loop
exitwhen udg_HeroChosen[11]==true
call TriggerSleepAction(1.00)
endloop
call RemoveUnit(gg_unit_n00M_0176)
call RemoveUnit(gg_unit_n00Z_0177)
call RemoveUnit(udg_taverns[0])
call RemoveUnit(udg_taverns[1])
call DestroyTimer(t)
call DestroyTimerDialog(td)
call DialogDestroy(d)
call Calc_XP()
set t=null
set td=null
set d=null
set udg_taverns[0]=null
set udg_taverns[1]=null
endfunction
//===========================================================================
function InitTrig_Map_Initialization takes nothing returns nothing
set gg_trg_Map_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Map_Initialization, function Trig_Map_Initialization_Actions )
endfunction
</i></i></i>
Thanks so much, and of course Rep for those who help.
:]<3