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
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.
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...
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
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.
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)
doPlayerSendTextMessage(cid,22,'You added 30 VIP days to your character.')