Added giant gar
Added giant gar. Updated Level 10a: Under Lake Glop
This commit is contained in:
		| @@ -1,32 +1,41 @@ | ||||
| string sDeny; | ||||
| /*   Script generated by | ||||
| Lilac Soul's NWN Script Generator, v. 2.1 | ||||
| #include "prc_inc_spells" | ||||
|  | ||||
| For download info, please visit: | ||||
| http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625    */ | ||||
|  | ||||
| //Put this OnUsed | ||||
| void main() | ||||
| { | ||||
|  | ||||
| object oPC = GetLastUsedBy(); | ||||
| 	object oPC			= GetLastUsedBy(); | ||||
| 	object oTarget 		= GetWaypointByTag("glop1"); | ||||
| 	 | ||||
| 	string sDeny; | ||||
| 	 | ||||
| 	location lTarget 	= GetLocation(oTarget); | ||||
| 	 | ||||
| 	 | ||||
| 	int bWB	= FALSE; | ||||
|  | ||||
| if (!GetIsPC(oPC)) return; | ||||
| 	if (!GetIsPC(oPC)) | ||||
| 	{ | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| if (GetItemPossessedBy(oPC, "BottleofAir")== OBJECT_INVALID) | ||||
|    { | ||||
|    sDeny="You cannot hold your breath long enough to swim down!"; | ||||
| 	if (GetHasFeat(FEAT_WATER_BREATHING, oPC) || GetHasFeat(FEAT_NIXIE_WATERBREATHING, oPC) || GetHasFeat(FEAT_BREATHLESS, oPC)) | ||||
| 	{ | ||||
| 		bWB = TRUE; | ||||
| 	} | ||||
| 	 | ||||
| 	if (MyPRCGetRacialType(oPC) == RACIAL_TYPE_CONSTRUCT || MyPRCGetRacialType(oPC) == RACIAL_TYPE_UNDEAD) | ||||
| 	{ | ||||
| 		bWB = TRUE; | ||||
| 	} | ||||
| 	 | ||||
| 	if (bWB = FALSE || GetItemPossessedBy(oPC, "BottleofAir")== OBJECT_INVALID) | ||||
| 	{ | ||||
| 		sDeny="You cannot hold your breath long enough to swim down!"; | ||||
|  | ||||
|    SendMessageToPC(oPC, sDeny); | ||||
| 		SendMessageToPC(oPC, sDeny); | ||||
|  | ||||
|    return; | ||||
|    } | ||||
|  | ||||
| object oTarget; | ||||
| location lTarget; | ||||
| oTarget = GetWaypointByTag("glop1"); | ||||
|  | ||||
| lTarget = GetLocation(oTarget); | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| //only do the jump if the location is valid. | ||||
| //though not flawless, we just check if it is in a valid area. | ||||
| @@ -34,10 +43,10 @@ lTarget = GetLocation(oTarget); | ||||
| //nothing put after the teleport will fire either. | ||||
| //the current location won't be stored, either | ||||
|  | ||||
| if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return; | ||||
| 	if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return; | ||||
|  | ||||
| AssignCommand(oPC, ClearAllActions()); | ||||
| 	AssignCommand(oPC, ClearAllActions()); | ||||
|  | ||||
| AssignCommand(oPC, ActionJumpToLocation(lTarget)); | ||||
| 	AssignCommand(oPC, ActionJumpToLocation(lTarget)); | ||||
|  | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user