• 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!

[Question] script !backpack

No but seriously. :oops:
What is this script supposed to do?
!backpack tells us nothing. :p
What TFS are you using?
 
ooookay.
no TFS, so here's a 0.3.7 script for you.

talkactions.xml
Code:
<talkaction words="!backpack" event="script" value="backpack.lua"/>
backpack.lua
Code:
function onSay(cid, words, param, channel)
   doPlayerAddItem(cid, 1998, 1, false)
   return true
end
 
I need help to make my arrow hit like 5000000 and when i got distance skillz hit harder . if any one know how to make it .. help ,please :)
 
A quick update to the script. :oops:
Code:
function onSay(cid, words, param, channel)
   if getPlayerFreeCap(cid) >= (getItemWeightById(1998, 1)) then
     if doPlayerAddItem(cid, 1998, 1, false) ~= RETURNVALUE_NOERROR then
       doPlayerSendCancel(cid, "You require free inventory space to get more backpacks.")
     end
   else
     doPlayerSendCancel(cid, "You require ".. (getItemWeightById(1998, 1)).." capacity to get more backpacks.")
   end
   return true
end
 
No, like this but when i got skillz hit harder

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 0)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 18)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -300000000, 0, -600000000)

function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
 
Code:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -300000000, 0, -600000000)
0 = level multiplier
-300000000 = min dmg
0 = skill multiplier
-600000000 = max dmg
Code:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 50, -300000000, 50, -600000000)

If you need more help, create your own thread. :oops:
 
Back
Top