| Author: | ICE Hammer |
| Author Website: | n/a |
| Script Name: | Pack Mule/Ox (Currently model is OX though) |
| Description: | This scripts let's you buy an ox and add him to you party. The ox follows the person who bought it, you can place items into the Ox and take them out agian any time you want (no Charge). Also you can make the Ox acts like a normal Henchmen, such as making it stand ground outside a cave or telling it to follow you agian. The ox has a limited number of hit points and can die. |
| Instructions on Use: | These Scripts require:
Implementation steps:
|
| Notes: | Miscellaneous Notes:
How to use Pack Ox: Future Plans: |
Script 1 (ActionTaken):
//:://///////////////////////////////////////////// //:: ice_add_ox //:: //::////////////////////////////////////////////// /* Buys Ox and adds him to your party. */ //::////////////////////////////////////////////// //:: Created By:ICE Hammer //:: Created On:7-12-02 //::////////////////////////////////////////////// void main() { if(GetGold(GetPCSpeaker()) >= 500) { //Creates an object variable object oOx = GetObjectByTag("Pack_OX_1"); //This take 500Gp from the PC who buying the OX TakeGoldFromCreature(500, GetPCSpeaker(), TRUE); SetAssociateListenPatterns(oOx); // * Companions, come in, by default with Attack Nearest Enemy && Follow Master //modes //This tells the OX to follow the PC SetLocalInt(oOx, "NW_COM_MODE_MOVEMENT", ASSOCIATE_COMMAND_FOLLOWMASTER); //This adds the Ox into the party as a Henchmen AddHenchman(GetPCSpeaker(),oOx); //This varable let's the PC now be able to talk to the Ox(gives acess to inventory). SetLocalInt(GetPCSpeaker(),"Bought_OX",1); } } |
Script 2 (TextAppearsWhen):
|
//:://///////////////////////////////////////////// //:: FileName ice_ox_bought //::////////////////////////////////////////////// //::////////////////////////////////////////////// //:: Created By: ICE Hammer //:: Created On: 7/12/2002 //::////////////////////////////////////////////// int StartingConditional() { // Checks to see if You have bought the Ox if(!(GetLocalInt(GetPCSpeaker(), "Bought_OX") == 1)) return FALSE; return TRUE; } |
Script 3 (ActionTaken):
|
//:://///////////////////////////////////////////// //:: FileName ice_convox_inven //::////////////////////////////////////////////// //::////////////////////////////////////////////// //:: Created By: ICE Hammer //:: Created On: 7/11/2002 //::////////////////////////////////////////////// void main() { // Either open the store with that tag or let the user know that no store exists. object oStore = GetObjectByTag("Pack_OX_Store_1"); if(GetObjectType(oStore) == OBJECT_TYPE_STORE) OpenStore(oStore, GetPCSpeaker()); else ActionSpeakStringByStrRef(53090, TALKVOLUME_TALK); } |