Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
24
_module/nss/jw_portal2pr_use.nss
Normal file
24
_module/nss/jw_portal2pr_use.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
void main()
|
||||
{
|
||||
object oPC=GetLastUsedBy();
|
||||
|
||||
object oKey=GetItemPossessedBy(oPC,"jw_portal_key");
|
||||
|
||||
if (!GetIsObjectValid(oKey))
|
||||
|
||||
{
|
||||
SendMessageToPC(oPC,"Speak to the merchant before using the portal");
|
||||
}
|
||||
|
||||
else
|
||||
|
||||
{
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_IMP_UNSUMMON),oPC);
|
||||
GiveXPToCreature(oPC,1);
|
||||
DestroyObject(oKey);
|
||||
DelayCommand(0.7,AssignCommand(oPC,JumpToObject(GetWaypointByTag("jw_newbiestart_wp"),FALSE)));
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user