Removed old cripple creek maps and added originals back in. Fixed outfits for some mobs that were not showing up previously. Added and fixed some transitions.
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
/*--------------------------------------------------------
|
|
|
|
Script Name: port_to_leader
|
|
----------------------------------------------------------
|
|
Created By: Genisys(Guile)
|
|
Created On: 2/09/09
|
|
----------------------------------------------------------
|
|
|
|
The PC Teleports to the Party Leader from the conversation.
|
|
This script goes in the Action Taken event for that line.
|
|
----------------------------------------------------------*/
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
object oLeader = GetFactionLeader(oPC);
|
|
|
|
if(GetIsInCombat(oPC))
|
|
{
|
|
FloatingTextStringOnCreature("You cannot recall while in combat!", oPC, TRUE);
|
|
return;
|
|
}
|
|
|
|
else if(GetLocalInt(GetArea(oPC), "PVP")>=1)
|
|
{
|
|
FloatingTextStringOnCreature("You cannot recall from a PVP area!", oPC, TRUE);
|
|
return;
|
|
}
|
|
|
|
if (oLeader != oPC) {
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_UNSUMMON), oPC);
|
|
AssignCommand(oPC, JumpToObject(oLeader));
|
|
|
|
} else {
|
|
|
|
SendMessageToPC(oPC, "You are the party leader!");
|
|
|
|
}
|
|
}
|