Page 1 of 1

SVN Revision 3330 - Portal Ceremony

PostPosted: Sat Aug 16, 2014 11:00 am
by Leodagan
As newest version of Dark Age of Camelot (1.115) features the plain old Portal Ceremony, here is a new GameServerScript to easily handle any kind of teleport Ceremony.

Extend the DOL.GS.Scripts.PortalCeremonyBaseNPC.cs, override the destination attribute, customize the spell effect attribute, override the TeleportTimerCallback method to dynamicly handle the PortalTeleportInterval duration depending on Realm war status. (Or maybe any Quest Pre-requesite...)

This object is used as a simple mob, it will spawn its Disciples when Added to World, you can override the Range at which disciples spawn, as well as the number spawned and the NPCTemplateID used to dress them !

The speed at which spells effects are casted is 1/16th of the total PortalTeleportInterval, you can display different spell effect near the end of the interval to display some kind of "countdown" to players.

This class can also spawn an object with custom model id at the foot of the ceremony master, this has not been tested and object size isn't customizable (Maybe in a future update !)

You can know handle any kind of Teleport Ceremony Easily !

Re: SVN Revision 3330 - Portal Ceremony

PostPosted: Sat Aug 16, 2014 11:08 am
by Leodagan
Testing and Example NPCTemplate :
Code: Select all
INSERT INTO `npctemplate` (`NpcTemplate_ID`, `TemplateId`, `Name`, `GuildName`, `Model`, `Size`, `MaxSpeed`, `EquipmentTemplateID`, `Flags`, `MeleeDamageType`, `ParryChance`, `EvadeChance`, `BlockChance`, `LeftHandSwingChance`, `Spells`, `Styles`, `Strength`, `Constitution`, `Dexterity`, `Quickness`, `Intelligence`, `Piety`, `Charisma`, `Empathy`, `Abilities`, `AggroLevel`, `AggroRange`, `ClassType`, `Level`, `Race`, `BodyType`, `MaxDistance`, `TetherRange`, `PackageID`, `VisibleWeaponSlots`, `ReplaceMobValues`, `ItemsListTemplateID`, `TranslationId`, `Suffix`, `ExamineArticle`, `MessageArticle`, `Gender`) VALUES('8f1079b6-2525-11e4-b54e-902b343f1d8b', 111500002, 'Portal Teleporter Master', 'Guildie', '61', '50', 200, 'b736c265-b052-4a5c-a35d-cbe2703ef963', 16, 2, 0, 0, 0, 0, NULL, NULL, 30, 30, 30, 30, 30, 30, 30, 30, NULL, 0, 0, 'DOL.GS.Scripts.PortalCeremonyExampleNPC', '75', 0, 0, 0, 0, 'Freyad Test', 34, 1, NULL, NULL, NULL, NULL, NULL, 1); INSERT INTO `npctemplate` (`NpcTemplate_ID`, `TemplateId`, `Name`, `GuildName`, `Model`, `Size`, `MaxSpeed`, `EquipmentTemplateID`, `Flags`, `MeleeDamageType`, `ParryChance`, `EvadeChance`, `BlockChance`, `LeftHandSwingChance`, `Spells`, `Styles`, `Strength`, `Constitution`, `Dexterity`, `Quickness`, `Intelligence`, `Piety`, `Charisma`, `Empathy`, `Abilities`, `AggroLevel`, `AggroRange`, `ClassType`, `Level`, `Race`, `BodyType`, `MaxDistance`, `TetherRange`, `PackageID`, `VisibleWeaponSlots`, `ReplaceMobValues`, `ItemsListTemplateID`, `TranslationId`, `Suffix`, `ExamineArticle`, `MessageArticle`, `Gender`) VALUES('b5f0478c-2525-11e4-b54e-902b343f1d8b', 111500001, 'Portal Teleporter Disciple', 'Padawan', '61', '50', 200, 'b736c265-b052-4a5c-a35d-cbe2703ef963', 16, 2, 0, 0, 0, 0, NULL, NULL, 30, 30, 30, 30, 30, 30, 30, 30, NULL, 0, 0, 'DOL.GS.GameNPC', '75', 0, 0, 0, 0, 'Freyad Test', 34, 1, NULL, NULL, NULL, NULL, NULL, 1);
Attached equipment template
Code: Select all
REPLACE INTO `npcequipment` (`NPCEquipment_ID`, `TemplateID`, `Slot`, `Model`, `Color`, `Effect`, `Extension`, `PackageID`, `Emblem`) VALUES('1dd094b3-ead7-4567-8103-ba83fcff6b05', 'b736c265-b052-4a5c-a35d-cbe2703ef963', 12, 1166, 0, 0, 0, NULL, NULL); REPLACE INTO `npcequipment` (`NPCEquipment_ID`, `TemplateID`, `Slot`, `Model`, `Color`, `Effect`, `Extension`, `PackageID`, `Emblem`) VALUES('42728a5a-6be8-4146-84bd-efc87c20182a', 'b736c265-b052-4a5c-a35d-cbe2703ef963', 26, 96, 27, 0, 0, NULL, NULL); REPLACE INTO `npcequipment` (`NPCEquipment_ID`, `TemplateID`, `Slot`, `Model`, `Color`, `Effect`, `Extension`, `PackageID`, `Emblem`) VALUES('cecc7353-a011-4f98-befe-979df319ad58', 'b736c265-b052-4a5c-a35d-cbe2703ef963', 25, 1005, 37, 0, 0, NULL, NULL);

Re: SVN Revision 3330 - Portal Ceremony

PostPosted: Mon Aug 18, 2014 12:16 am
by Graveen
Thank you Leo !