100 lines
2.9 KiB
Plaintext
100 lines
2.9 KiB
Plaintext
effect eEffect;
|
|
object oTarget;
|
|
|
|
//This script goes in the OnClientEnter event in the module properties.
|
|
void main()
|
|
{
|
|
object oPC;
|
|
oPC = GetEnteringObject();
|
|
if(!GetIsPC(oPC))return;
|
|
if(GetIsDMPossessed(oPC))return;
|
|
if(GetIsDM(oPC))return;
|
|
|
|
//AddJournalQuestEntry("feats", 1, oPC, FALSE, FALSE);
|
|
//AddJournalQuestEntry("spells", 1, oPC, FALSE, FALSE);
|
|
AddJournalQuestEntry("serverrules", 1, oPC, FALSE, FALSE);
|
|
|
|
//The player's Character has been banned from the server..
|
|
if (GetLocalInt(oPC, "BANNED")== 2)
|
|
{
|
|
object oTarget;
|
|
location lTarget;
|
|
oTarget = GetWaypointByTag("bannedway");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
|
|
|
|
AssignCommand(oPC, ClearAllActions());
|
|
|
|
AssignCommand(oPC, ActionJumpToLocation(lTarget));
|
|
}
|
|
|
|
if (GetSubRace(oPC)=="Badd")
|
|
{
|
|
DelayCommand(6.0, SetCutsceneMode(oPC, TRUE));
|
|
|
|
DelayCommand(6.0, FadeToBlack(oPC, FADE_SPEED_SLOW));
|
|
|
|
DelayCommand(6.0, SetCameraMode(oPC, CAMERA_MODE_CHASE_CAMERA));
|
|
|
|
DelayCommand(7.0, FloatingTextStringOnCreature("You have been bannished from Ascension, Satan Has You Now!!", oPC));
|
|
|
|
DelayCommand(8.0, FloatingTextStringOnCreature("Wave goodbye cause you're pwned!!!", oPC));
|
|
}
|
|
|
|
//If a player has been found with an illegal character they will have this item.
|
|
//It will prevent them from logging onto your server with that character.
|
|
if (GetItemPossessedBy(oPC, "banned")!= OBJECT_INVALID)
|
|
{
|
|
AssignCommand(oPC, ClearAllActions());
|
|
|
|
SetCutsceneMode(oPC, TRUE);
|
|
|
|
SetCameraMode(oPC, CAMERA_MODE_CHASE_CAMERA);
|
|
|
|
DelayCommand(4.0, FloatingTextStringOnCreature("You have an illegal character which is not allowed on this server.", oPC));
|
|
|
|
DelayCommand(5.0, SetCutsceneMode(oPC, FALSE));
|
|
|
|
DelayCommand(6.0, BootPC(oPC));
|
|
|
|
}
|
|
|
|
if (GetItemPossessedBy(oPC, "immotoken")!= OBJECT_INVALID)
|
|
{
|
|
object oTarget;
|
|
oTarget = oPC;
|
|
|
|
int nInt;
|
|
nInt = GetObjectType(oTarget);
|
|
|
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectVisualEffect(VFX_DUR_PARALYZED), oTarget);
|
|
else ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, EffectVisualEffect(VFX_DUR_PARALYZED), GetLocation(oTarget));
|
|
|
|
SendMessageToPC(oPC, "Welcome back to Paths of Ascension Immortal.");
|
|
|
|
DelayCommand(5.0, SendMessageToPC(oPC, "If you have any comments / suggestions or problems with a player or DM feel free to email me at galefer003@aol.com, thank you."));
|
|
|
|
}
|
|
if (GetItemPossessedBy(oPC, "death")!= OBJECT_INVALID)
|
|
{
|
|
oTarget = oPC;
|
|
|
|
eEffect = EffectDeath();
|
|
|
|
eEffect = SupernaturalEffect(eEffect);
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);
|
|
|
|
SendMessageToPC(oPC, "You were dead the last time you logged out.");
|
|
|
|
}
|
|
else
|
|
{
|
|
SendMessageToPC(oPC, "Welcome to Paths of Ascension PRC, thank you for visiting.");
|
|
DelayCommand(5.0, SendMessageToPC(oPC, "If you have any problems / comments / suggestions please email me at galefer003@hotmail.com, thank you."));
|
|
}
|
|
|
|
}
|