• 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

    TFS 1.X+ TFS 1.3 8.60

    post your doNpcSellItem function in data/npc/lib/npc.lua
  2. 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)...
  3. 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 =...
  4. 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
  5. 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
  6. 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...
  7. 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
  8. 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?
  9. 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...
  10. 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!
  11. Pawcio6

    CreatureEvent [TFS 1.3] 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
  12. 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...
  13. 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?
  14. Pawcio6

    CreatureEvent [TFS 1.3] 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
  15. 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
  16. 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...
  17. 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
  18. 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...
  19. Pawcio6

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

    combat5 is used only to get the target, you clarify that target in onTargetCreature and then if possitive it will cast real damage combat something like this local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, 79) function...
  20. Pawcio6

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

    I dont know what is up with that. Try changing temporarly for testing maxViewportX and maxViewportY in map.h and rebuild whole project instead of compile. For testing the best would be to run 2 clients one with GOD(max) access the monsters supose to ignore that player and second normal character...
Top