• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Search results

  1. Pawcio6

    C++ enums update item attribute over 31 question

    on 32+ number you should use extend 1U << 32 i think 31 dont even need extend so was given as example for futher attributes but if you want to add new set of attributes maybe better would be to just use ITEM_ATTRIBUTE_CUSTOM #edit if you thinking about to adding more than one attribute...
  2. Pawcio6

    TFS 1.X+ TFS 1.3 8.60

    looks fine, i dont have 1.3 but 1.4 seems to use ITEM_SHOPPING_BAG = 23782 if you are using 8.6 spr/dat there is probably no item with this id try to change all ITEM_SHOPPING_BAG to ITEM_BAG in npc/lib/npcsystem/modules.lua
  3. Pawcio6

    TFS 1.X+ TFS 1.3 8.60

    post your doNpcSellItem function in data/npc/lib/npc.lua
  4. Pawcio6

    developing weapon

    hard to say since i dont recognize most functions you used i guess you can try something like this function tryUseSword(item) local itemCharges = getItemCharges(item.uid) local maxCharges = 50000 local getExpChance = 100 -- get charge percent if itemCharges < maxCharges and math.random(1,100)...
  5. Pawcio6

    TFS 0.X Bless System - Improved

    blessing by definition lower the exp and skill penalties so what different about your "new blessing" would be? Increase your basic blessing in config.lua blessingReductionBase = 30 blessingReductionDecrement = 5 eachBlessReduction = 8 npc lua local keywordHandler =...
  6. Pawcio6

    TFS 0.X Bless System - Improved

    just limit your talkaction blessing, change all loops to for i = 1, 2 do and price price = price * 2 * 1.2 copy buyAllBlessings function to npc and change it to bless from 3 to 5, now trigger that function after saying some words to npc
  7. Pawcio6

    How to use uint64_t?

    If you are using otclient find in protocolgameparse.cpp money = msg->getU32(); change it to 64 and recompile client
  8. Pawcio6

    TFS 1.X+ Help Creature Event Storage

    something like this should work function onKill(cid, target) if(isMonster(target) == TRUE) then local name = getCreatureName(target) local monster = monsters[string.lower(name)] if(monster) then for i,child in pairs(target:getDamageMap()) do if isPlayer(i) then...
  9. Pawcio6

    C++ [TFS 1.4] Increase monster movement/non-idle range but keep monster targeting range

    You kinda right changing getPathSearchParams will help for sure but since client view isnt a square you will need to tweak it anyway and it use canUseAttack anyway in overriden monster::getPathSearchParams
  10. Pawcio6

    C++ [TFS 1.4] Increase monster movement/non-idle range but keep monster targeting range

    At least some progress ^_^ Do you changed canUseAttack and canUseSpell like I wrote earlier?
  11. Pawcio6

    Lua fromPosition (how use this with stackpos)

    creating item by default should create apple on top of tree i assume your problem is that it is creating under the tree so you can check your dat/otb attributes as i remember there was something that specify if the item will be on top/bottom of stack or you can loop tree position with something...
  12. Pawcio6

    OTClient 1.0 (Release)

    Damn good work looking forward for future improvements! Client realy feel smoother when walking with arrows, mouse walking still seems snappy tho. I've found some bugs will post them on issues later. Good luck with project!
  13. Pawcio6

    CreatureEvent [TFS 1.3 / 1.4] Upgrade System

    yeah, probably count(number) is returned as fromPosition(position table) if you have source to your engine find there onMoveItem and check correct order or troubleshoot yourself by printing every value
  14. Pawcio6

    Lua fromPosition (how use this with stackpos)

    I mean both scripts you posted dont even suppose to run not mention work, do you have any errors in tfs console? you should have add something like this in actions.xml <action itemid="2703" script="yourscriptname.lua" /> and something like this in script function onUse(cid, item, fromPosition...
  15. Pawcio6

    Lua fromPosition (how use this with stackpos)

    maybe tree has no elevation attribute in otb/dat can you throw apple from inventory to tree position?
  16. Pawcio6

    CreatureEvent [TFS 1.3 / 1.4] Upgrade System

    Do you have this problem on every items? If you added custom item maybe it will need extra lines in movements.xml, but firstly test if you have same problem with item that is already present in movement.xml with equip and deequip functions
  17. Pawcio6

    Lua fromPosition (how use this with stackpos)

    And when you move this created apple out of tree position to inventory and then use there, it works? Maybe you just dont have added 2764 in actions.xml and in others/food.lua table since 2764 is not standard id for apple [2674] = {6, "Yum."}, -- red apple
  18. Pawcio6

    TFS 0.X Autoloot MOD - Issue with Stone Skin Amulet

    try to change doPlayerAddItem(cid, id) to doPlayerAddItem(cid, id, getItemInfo(id).charges or 1) but test it i'm not sure if it wont add 5 amulets with 1 charges instead if it does try this instead local tmpItem = doCreateItemEx(id) local charged = getItemInfo(id).charges if charged and...
  19. Pawcio6

    Lua Monsters ranged spell only be casted if target is far away, possible?

    i'm kinda fast responding with one eye opened try copy once more i edited it 1 minute after post
  20. Pawcio6

    Lua Monsters ranged spell only be casted if target is far away, possible?

    yeah i copied your script forgot to add that, hmm hard to say i'm not familiar with tfs 1.x+ functions maybe something like this will work local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, 79) function getDmg_Brush_2(cid...
Back
Top