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!
Sorry for the late reply, been busy these days. You could try removing the returns after the checking part, it should look like this:
if player:getStorageValue(15002) == -1 then --Mining check
player:setStorageValue(15002, 1)
player:setStorageValue(15003, 0)
end
if...
This is why, you don't have the storages assigned to the player. Not assigned is not even 0, it's -1. So that's why changing the script to zero won't work.
You can add something like this in login.lua so existing players will get the skill on level 1 after they log in.
local skill = xxxx...
You could try Paladins and if you like it we could play a lot. I have an amateur esports team and many friends there, so it's fairly common to be full party all the time, but if you log in and we party up, no one's gonna kick you no matter what. All of them are pretty cool!
I guess the effect part when you gain a level works out. A tip I can give you is that when you assign the permanent effect from the scroll, it gives you an storage.
Then edit your 'reach level, add effect' function to check if it has that storage. If it does, do not assign any effect and that's it.
<summons maxSummons="3">
<summon name="Magebomb" interval="2000" chance="25" />
</summons>
Adjust the interval and chance how you see fit.
Also, as Ascuas said, try not using such low values
It's not doable without source edits, and even if you did, would change how every npc works. If you are planning on making only one npc work with it I could think of a workaround. But you won't be able to use "trade" windows with that specific currency. Would be like older npcs, you will have to...
And which vocation should exchange what? You need to be more specific, I add the vocation check, easy, and what do I need to do with it? Limit certain items to certain vocations or what?
Try erasing all parameters of npc.xml as you already have them in your script. Try again?
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Captain Steven" script="travel.lua" walkinterval="0" floorchange="0">
<health now="150" max="150"/>
<look type="151" head="114" body="57"...
It's weird that it crashes while using for example 'doTargetCombatHealth' as I have checked the link and it has that same function applied to traps in movements, would you be so kind to see if a trap placed on the map actually works or crashes the server too? If it does crash, then the source is...
Sorry mate, didn't have much time yesterday :( Anyways, tested your script on my TFS 1.2 and works perfectly (even tough it removes health with a weird purple color number)
If that crashes his server, I used the doTargetCombatHealth as that's what ground traps use to deal damage, this worked...
Thanks bro (L I don't really know why it doesn't work, tested it now. I do know where it does exit the event. At this line:
if damage_multiplier ~= creatures[cid] then
return true
end
It falls into that check in every time you step on it, that's why it doesn't work I guess...
Would love to know some things too, he's indeed a really good programmer.
I know it's really off topic, but if you can explain only two things I will be happy.
addEvent(function()
Why does it look like it's missing a ')' and works? lol
for _, pid in pairs(spec) do
What is pid in pairs? ._.
For the scroll:
function onUse(cid, item)
if getPlayerStorageValue(cid, 5007) < 1 then
setPlayerStorageValue(cid, 5007, 1)
doRemoveItem(item.uid, 1)
doPlayerSendTextMessage(cid,22,'You added 30 VIP days to your character.')
else...
Oh, I didn't touch the single repairs when I gave you the script.
Thing is, this var:
feet = (getItemAttribute(getPlayerSlotItem(cid, CONST_SLOT_FEET).uid, "name"))
Is only retrieving the Item name, for example: Leather Boots
And then this one:
doTransformItem(getPlayerSlotItem(cid...