private void Awake() { //add m_nview = GetComponent <ZNetView>(); if (m_nview.GetZDO() == null) { DBG.blogWarning("Mark Report zdo null"); return; } if (m_nview.GetZDO().GetBool("LocMarkUsed", false)) { MarkList.Remove(ID); Destroy(this); return; } else { ID = ZoneSystem.instance.GetZone(transform.position).Pak(); if (MarkList.ContainsKey(ID)) { DubList.Add(ID, this); } else { MarkList.Add(ID, this); } DBG.blogInfo("locmark placed at zone : " + ID); } }
public static void ValRegister(ZNetScene zns) { foreach (var item in odbRegList.Values) { zns.m_prefabs.Add(item); } DBG.blogInfo("Register odb to zns"); }
public static void OdinPreRegister(Dictionary <string, GameObject> list, string name) { foreach (var item in list) { odbRegList.Add(item.Key.GetStableHashCode(), item.Value); } DBG.blogInfo("Register " + name + " for ODB"); }
private void requestOidnPosition() { if (NpcManager.Root.transform.position == Vector3.zero) { LocationManager.GetStartPos(); return; } DBG.blogInfo("Client Stop Request odin position"); CancelInvoke("requestOidnPosition"); }
private void Awake() { m_instance = this; Summon(); m_head = this.gameObject.transform.Find("visual/Armature/Hips/Spine0/Spine1/Spine2/Head"); m_name = "$op_god"; m_talker = this.gameObject; InvokeRepeating("requestOidnPosition", 1, 3); DBG.blogInfo("Client start to Calling Request Odin Location"); }
public static void ValRegister(ObjectDB odb) { var m_itemByHash = Traverse.Create(odb).Field <Dictionary <int, GameObject> >("m_itemByHash").Value; foreach (var item in odbRegList) { m_itemByHash.Add(item.Key, item.Value); odb.m_items.Add(item.Value); } DBG.blogInfo("Register to ODB"); }
public static void ValRegister() { var m_namedPrefabs = Traverse.Create(ZNetScene.instance).Field <Dictionary <int, GameObject> >("m_namedPrefabs").Value; foreach (var item in znsRegList) { ZNetScene.instance.m_prefabs.Add(item.Value); m_namedPrefabs.Add(item.Key, item.Value); } isRegistered = true; DBG.blogInfo("Register zns"); }
public static void Register(ObjectDB odb) { if (SElist.Count == 0) { return; } foreach (var se in SElist.Values) { odb.m_StatusEffects.Add(se); } DBG.blogInfo("Register SE"); }
public bool GiveUpQuest(int ind) { foreach (var quest in MyQuests.Values) { if (quest.m_index == ind) { quest.Giveup(); MyQuests.Remove(quest.ID); UpdateQuestList(); DBG.blogInfo("Client give up quest" + ind); return(true); } } return(false); }
private void Update() { if (ID == "") { return; } var m_task = QuestManager.instance.GetQuest(ID); if (m_task == null) { DBG.blogInfo("Cant find task,Destroy Hunt Target" + ID); Traverse.Create(m_cDrop).Field <bool>("m_dropsEnabled").Value = false; m_nview.Destroy(); return; } }
public static void UpdateDictinary() { string missing = "Missing Words:"; foreach (var el in english) { if (t.ContainsKey(el.Key)) { AddWord(new object[] { el.Key, t[el.Key] }); continue; } AddWord(new object[] { el.Key, el.Value }); missing += el.Key; } DBG.blogInfo("Translation added"); DBG.blogWarning(missing); }
private void Awake() { Plugin.logger = base.Logger; CFG_ItemSellValue = base.Config.Bind <string>("Config", "ItemSellValue", "TrophyBlob:20;TrophyBoar:5;TrophyBonemass:50;TrophyDeathsquito:20;TrophyDeer:5;TrophyDragonQueen:50;TrophyDraugr:20;TrophyDraugrElite:30;TrophyDraugrFem:20;TrophyEikthyr:50;TrophyFenring:30;TrophyForestTroll:30;TrophyFrostTroll:20;TrophyGoblin:20;TrophyGoblinBrute:30;TrophyGoblinKing:50;TrophyGoblinShaman:20;TrophyGreydwarf:5;TrophyGreydwarfBrute:15;TrophyGreydwarfShaman:15;TrophyHatchling:20;TrophyLeech:15;TrophyLox:20;TrophyNeck:5;TrophySerpent:30;TrophySGolem:30;TrophySkeleton:10;TrophySkeletonPoison:30;TrophySurtling:20;TrophyTheElder:50;TrophyWolf:20;TrophyWraith:30;AncientSeed:5;BoneFragments:1;Chitin:5;WitheredBone:10;DragonEgg:40;GoblinTotem:20;OdinLegacy:20"); Plugin.nexusID = base.Config.Bind <int>("General", "NexusID", 798, "Nexus mod ID for updates"); KS_SecondInteractkey = base.Config.Bind <KeyboardShortcut>("1Hotkeys", "Second Interact key", new KeyboardShortcut(KeyCode.G)); CFG_OdinPosition = base.Config.Bind <Vector3>("2Server set only", "Odin position", Vector3.zero); CFG_ForceOdinPosition = base.Config.Bind <bool>("2Server set only", "Force Odin Position", false); RegRPC = (Action)ReigsterRpc; _harmony = Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), null); //-- init here OdinPlusRoot = new GameObject("OdinPlus"); OdinPlusRoot.AddComponent <ResourceAssetManager>(); OdinPlusRoot.AddComponent <OdinPlus>(); //notice Debug OdinPlusRoot.AddComponent <DevTool>(); DontDestroyOnLoad(OdinPlusRoot); DBG.blogInfo("OdinPlus Loadded"); }
public static void Clear() { TrollIns = null; DBG.blogInfo("PetList Clear"); }