Cripplez

Member
  • Content Count

    50
  • Joined

  • Last visited

Community Reputation

3 Neutral

About Cripplez

  • Rank
    Friendly

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Cripplez

    Free Azrael weapons set - perfect for Halloween

    Hi, i tried to use this weapon set but i think it is missing the dds files of the weapon in the download, they are "white" in game.
  2. Hi, I receive the gold from the mob directly in my "inventory", but sometimes mob and boss drop extra gold to the ground, i would like to know how to remove all the extra gold they can drop. Thank you this is just an example
  3. Hi, I would need a quest that start when you kill mobs, and based on your level, drop different item. But i don't know if something like this may cause too much lag and should be better doing it ina different way This is an example of what i would need to do: quest test_drop begin state start begin when kill with not npc.is_pc() begin -- not sure how to do this part, if mob is 10 level > or < than pc_leven then return return else local drop math.random(1, 10000) local items1 = {101, 102, 103, 104, 105, 106} local items2 = {201, 202, 203, 204, 205, 206} local items3 = {301, 302, 303, 304, 305, 306} local items4 = {401, 402, 43, 404, 405, 406} local items5 = {501, 502, 503, 504, 505, 506} if drop <= 100 then if pc.get_level() > 19 and pc.get_level() < 40 then game.drop_item_with_ownership(items1[number(1, table.getn(items1))]) elseif pc.get_level() > 39 and pc.get_level() < 60 then game.drop_item_with_ownership(items2[number(1, table.getn(items2))]) elseif pc.get_level() > 59 and pc.get_level() < 80 then game.drop_item_with_ownership(items3[number(1, table.getn(items3))]) elseif pc.get_level() > 79 and pc.get_level() < 99 then game.drop_item_with_ownership(items4[number(1, table.getn(items4))]) elseif pc.get_level() > 99 then game.drop_item_with_ownership(items5[number(1, table.getn(items5))]) else return end end end end end
  4. Cripplez

    solved How to reduce maximum bow distance?

    Thank you, this is perfect
  5. Cripplez

    solved How to reduce maximum bow distance?

    Yes this calculate the damage based on your distance, but i want to change the distance that an assassin can use the bow, if he is too far from the target he needs to come closer to shoot the arrow
  6. Hi, I would like to reduce the maximum bow distance that an assassin can shoot with the bow. If for example the max distance is 2500, i would like to reduce it to 1100/1200, but i can't find where it is this thing Does anyone of you know it? Thank you
  7. VegaS helped me on AnyDesk and he resolved the problem! Now everything works perfect, he even added a list of the mount that can be used in dungeon if i want. Thank you again!
  8. Okay I tried like this but when i'm riding a mount it still doesn't make me unmount it with the horse it is perfect
  9. Hi, I'd like to make that with a specific vnum (like 299, 399, 499 ecc) the int iSkillBonus = int iNormalHitBonus = will be different, I don't think this is the right way to do it, it is just an example to explain how i'd like to do it Thank you void CItemAddonManager::ApplyAddonTo(int iAddonType, LPITEM pItem) { if (!pItem) { sys_err("ITEM pointer null"); return; } //FOR EXAMPLE SOMETHING LIKE THIS: switch (item->GetVnum()) { case 299: case 399: case 499: case 599: int iSkillBonus = MINMAX(-40, (int) (gauss_random(0, 5) + 0.5f), 40); int iNormalHitBonus = 0; if (abs(iSkillBonus) <= 30) iNormalHitBonus = -2 * iSkillBonus + abs(number(-8, 8) + number(-8, 8)) + number(1, 4); else iNormalHitBonus = -2 * iSkillBonus + number(1, 5); pItem->RemoveAttributeType(APPLY_SKILL_DAMAGE_BONUS); pItem->RemoveAttributeType(APPLY_NORMAL_HIT_DAMAGE_BONUS); pItem->AddAttribute(APPLY_NORMAL_HIT_DAMAGE_BONUS, iNormalHitBonus); pItem->AddAttribute(APPLY_SKILL_DAMAGE_BONUS, iSkillBonus); } //ELSE IF THE VNUM ISN'T ABOVE, DO THIS ATTRIBUTE int iSkillBonus = MINMAX(-30, (int) (gauss_random(0, 5) + 0.5f), 30); int iNormalHitBonus = 0; if (abs(iSkillBonus) <= 20) iNormalHitBonus = -2 * iSkillBonus + abs(number(-8, 8) + number(-8, 8)) + number(1, 4); else iNormalHitBonus = -2 * iSkillBonus + number(1, 5); pItem->RemoveAttributeType(APPLY_SKILL_DAMAGE_BONUS); pItem->RemoveAttributeType(APPLY_NORMAL_HIT_DAMAGE_BONUS); pItem->AddAttribute(APPLY_NORMAL_HIT_DAMAGE_BONUS, iNormalHitBonus); pItem->AddAttribute(APPLY_SKILL_DAMAGE_BONUS, iSkillBonus); }
  10. Thank you, it is working for horse, but not for the mount Maybe is because first the game read if i'm riding and make me StopRiding, but if I login in a map while i was riding a mount, the game doesn't immediatly know I'm riding and update my character riding 1 second later? Sometimes when i login with a mount i see my character standing and 1 second later i am riding again my mount I'm not sure if i did this part as you write in your message, maybe the problem is here?
  11. Only the dungeon should have >= 10000, so I don't think this could be a problem for me, it is fine if every dungeon has mount blocked. I'm trying to make that when you enter a dungeon you unmount the horse or mount, but i can't make it work This is working only for horse, if you are riding a mount it doesn't work when login with dungeon_test.beran_test_index(pc.get_map_index()) begin pc.set_warp_location (99, 1234, 5678) if pc.get_level() < 90 then warp_to_village() end timer ( "time_test_dungeon", 20 * 60 ) pc.unmount() horse.unsummon() d.setf("mobs_left", d.count_monster()) end EDIT: I resolved the mount problem adding timer ( "time_unmount", 6 ) above the other timer when time_unmount.timer with dungeon_test.beran_test_index(pc.get_map_index()) begin pc.unmount() end But i don't really like this solution..., i was wondering if there is something better
  12. Hi, I'd like to add in source that you can't use the mount and horse while you are in a dungeon if pc.in_dungeon() then syschat("You can't use this mount while you are in a Dungeon.") return end I used this in my quest of ride.lua, but i would prefer add this in the server source and add that you can't summon/ride the horse in dungeon and if you are riding a mount/horse you unmount it. Anyone can help me to do this? Thank you again!
  13. Cripplez

    open Can this cause Crash Core?

    Thanks, I could try to replace with this int _number(lua_State* L) I'm just a little afraid that this could cause some other problems, or not? ahah i don't know Anyway I'll try and see what happens
  14. Hi, in my syser of CH i have a lot of this, i don't think this can cause crash but i wanted to ask you if it still can create problems. If it doesn't I was thinking to delete this syserr from the source so i don't see it anymore, even if I know it sill remains there SYSERR: Oct 4 02:48:02 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:48:07 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:48:27 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:48:42 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:48:57 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:49:07 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:49:12 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:49:37 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 SYSERR: Oct 4 02:49:47 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52 I tried to search where the problem is, but it is impossible to find for me... it could be anywhere Here (questlua_global.cpp 52) there is only this: ALUA(_number) { if (!lua_isnumber(L, 1) || !lua_isnumber(L, 2)) lua_pushnumber(L, 0); else lua_pushnumber(L, number((int)lua_tonumber(L, 1), (int)lua_tonumber(L, 2))); //this is line 52 return 1; }