Jump to content

Heathcliff™

Member
  • Content Count

    59
  • Joined

  • Last visited

  • Yangs

    115 [ Donate ]

Community Reputation

35 Good

About Heathcliff™

  • Rank
    Friendly

Informations

  • Gender
    Male
  • Location
    Hungary

Recent Profile Visitors

745 profile views
  1. For those who have the same problem. Instead of this: startNumber = 0 for slot in self.quickslot: for i in xrange(4): slotNumber = i+startNumber (Type, Position) = player.GetLocalQuickSlot(slotNumber) if player.IsSkillCoolTime(Position): (coolTime, elapsedTime) = player.GetSkillCoolTime(Position) slot.SetSlotCoolTime(slotNumber, coolTime, elapsedTime) cooldownDelay = 0 cooldown = int(coolTime-elapsedTime+cooldownDelay) self.cooldownText[slotNumber].SetOutline() self.cooldownText[slotNumber].SetText("%d" % cooldown) cooldown = str(cooldown) self.cooldownText[slotNumber].SetPosition((7, 2, -1)[len(cooldown) - 1],0) self.cooldownText[slotNumber].Show() else: self.cooldownText[slotNumber].Hide() startNumber += 4 Use this: startNumber = 0 for slot in self.quickslot: for i in xrange(4): slotNumber = i+startNumber (Type, Position) = player.GetLocalQuickSlot(slotNumber) if player.IsSkillCoolTime(Position) and player.SLOT_TYPE_SKILL == Type: (coolTime, elapsedTime) = player.GetSkillCoolTime(Position) slot.SetSlotCoolTime(slotNumber, coolTime, elapsedTime) cooldownDelay = 0 cooldown = int(coolTime-elapsedTime+cooldownDelay) self.cooldownText[slotNumber].SetOutline() self.cooldownText[slotNumber].SetText("%d" % cooldown) cooldown = str(cooldown) self.cooldownText[slotNumber].SetPosition((7, 2, -1)[len(cooldown) - 1],0) self.cooldownText[slotNumber].Show() else: self.cooldownText[slotNumber].Hide() startNumber += 4
  2. That's not bad, but let's walk closer to your target, and use the skill. You will notice, it's triggering twice. Or this was happening only for me?
  3. You'll get one more good idea from me guys
  4. Add the d.new_jump_party inside the quest_function file
  5. Don't remove the whole condition Just this line: if not name in constInfo.ALREADY_NOTIFY_LIST: and this line: constInfo.ALREADY_NOTIFY_LIST.append(name)
  6. #_# I made it like this some months ago: case USE_EXTEND_TIME: { LPITEM item2; if (!IsValidItemPosition(DestCell) || !(item2 = GetItem(DestCell))) return false; if (item2->IsExchanging() || item2->IsEquipped()) return false; if (item2->GetType() != ITEM_COSTUME || (item2->GetSubType() != COSTUME_BODY && item2->GetSubType() != COSTUME_HAIR && item2->GetSubType() != COSTUME_MOUNT && item2->GetSubType() != COSTUME_WEAPON)) return false; int extendTime = (item2->GetSocket(0) + item->GetValue(0)) - get_global_time(); if (extendTime >= item2->GetDuration()) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("COSTUME_LIMIT_REACHED_MAX")); return false; } item2->SetSocket(0, item2->GetSocket(0) + item->GetValue(0)); item->SetCount(item->GetCount() - 1); ChatPacket(CHAT_TYPE_INFO, LC_TEXT("COSTUME_TIME_LIMIT_EXTENDED")); } break;
  7. Thank you maaan. I love your works so much
  8. I think this will help you: In the first line you can change the usage range of your arrow. In the second line you can change the damage you do, what depends on how much is the distance between you and your enemy, if I'm correct. Btw. I haven't changed it yet.
  9. In root/uiMinimap.py: Then uiScript/minimap.py: PS: Btw this will show your local time that has been set in your windows and not your server time. Care with tabs.
  10. Search this: for (int i = 0; i < _countof(strMapListGlobal); i++) { if (strMapListGlobal == stringName) { for (int i = 0; i < _countof(pListGlobal); i++) { if (rVictim.GetRace() == pListGlobal || 0 <= rVictim.GetRace() && rVictim.GetRace() <= 7 ) return FALSE; } } } Replace with this: for (int i = 0; i < _countof(strMapListGlobal); i++) { if (strMapListGlobal[i] == stringName) { for (int i = 0; i < _countof(pListGlobal); i++) { if (rVictim.GetRace() == pListGlobal[i]) return FALSE; } } } It will working fine, but I think is no need to make a condition for every type of npc with vnums. I suggest you to use condition with IsNPC instead of one by one checking, because it will apply for all of your npcs includes shops, pets, and of course mounts.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.