Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
Hello everyone,
I want to share a script that gives reward bag to all the players participating in fight against boss. The reward will be sent automatically as soon as boss dies, to players' inventory, or when no cap or space, will be sent to players' mailbox.
It features:
any player who has...
Thanks to you I was able to improve the script and basically solve ths issue that I had starting this thread :)
local skills = {
--shields
[41860] = {id=SKILL_SHIELD,voc=4}, -- KNIGHT
[41861] = {id=SKILL_SHIELD,voc=4}, -- KNIGHT
[41862] = {id=SKILL_SHIELD,voc=4}, -- KNIGHT...
You rebuilded it completely, respect. Using from store inbox is working, but in my case the training now looks like this:
Kinda funny ^^
It is rather a walkaround than a solution, you might try something like this to remove the wepons from store inbox:
use with -> dustbin
if...
Hello,
After few failed trials, I give up. I would want to change the exercise training script so that it would allow players to use the weapons BOTH from their store inbox right away, without a need of moving them into inventory first, and preserve the ability to use them from the backpack in...
Haha, what the heck? 😅
Now, just pasting your script - it doesn't work for me, unless I remove -11 from brackets, then I cannot move the item on the ground, but I CAN take it into inventory (bag/backpack).
Today I spent like 2 hours to find a way to prevent items from being taken into...
One more thing you can try to do is writing the same or similar code in player.lua directly.
function Player:onMoveItem(item, count, fromPosition, toPosition, fromCylinder, toCylinder)
if item:getActionId() == 6000 then
return RETURNVALUE_NOTPOSSIBLE
end...
Nope, i didnt change sources, only the script. Well, check if the item has the action id from array and it should work. No idea why it doesnt, it looks pretty straightforward 🤷♂️
Edit
@Mateus Robeerto
go to events.xml and set it to "1"
<event class="Player" method="onMoveItem" enabled="1" />...
Alright, seems to be working nicely, the problem must have been with my NPC file where I changed some stuff since posting this thread, because it is working nicely now :) Thanks for you time!
It certainly looks much more professional, but somehow it refuses to count the kills, but I'll take a look at this later, as I don't have that much time and I rather think slowly while scripting :rolleyes:
Besides, I have added 2 checks in order to prevent party abusing (both working fine), if...
The solution to this problem is to both change the onCastSpell function as above and also changing needtarget to "0". Then, after combining those two steps this error disappears, and you can shoot runes at invisible monsters, and not "anywhere" like gfb, unless you are using some old or shitty...
Thank you both, you are both right :)
Absolutely right, I moved it to the top as you did, thank you for the suggestion. At this point I just watned it to work, but now I can focus on improving it further. The server is in development, so this script can be changed basically with no limits.
Hello,
I am out if ideas so decided to ask. TFS 1.4.2
While doing a task, ocasionally console error shows up
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/killtasks.lua:onKill
data/creaturescripts/scripts/killtasks.lua:24: attempt to index local 'monster' (a nil...
My guess would be a brain damage. Read what people write, process that and apply if you want the result and comunicate, write words ffs... or at least paste errors...