Area Changes and other fixes
added areas and ccoh, fixed some areas to work with crafting fixed some on death issues added server entry/ooc
This commit is contained in:
@@ -1,40 +0,0 @@
|
||||
/*--------------------------------------------------------
|
||||
|
||||
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!");
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user