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!
Put it in the function
function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
setPlayerStorageValue(target, 8888, 1)
return doCombat(cid, combat, var), addEvent(setPlayerStorageValue, 5 * 1000, target, 8888, 0)
end
Like Xikini i'm only gonna take quick scripts and i don't wanna do spells, weapons, raids or monster scripts, websites edits and database queries. Source edits need to be a really small thing(would be very boring to keep cloning TFS repo to test each one). Post in the topic too, no dm.
I wanna...
Have the function? The parseInfo gets the price from getBlessingsCost and the pvp one, would be used to display the msg and it doesn't seems to work, idk how you are using the pvp bless.
I did a sample code for the getBlessingsCost function:
local function getBlessingsCost(level)
local...
Do you have getBlessingsCost and getPvpBlessingCost functions? You should use them in the script to get the money that you wanna remove and put in
player:removeMoneyNpc(money)
If you'll use from the function you can use the cost parameter just as a default value or something.
Otherwise you...
Can you post the bless module here?
You can try the default one too and change on it:
forgottenserver/modules.lua at master · otland/forgottenserver · GitHub
See: GitHub - gesior/Gesior2012: Gesior 2012 - Account Maker [website] for OTSes, account maker you can find in BRANCHES. Select 'branch'. and check if you picked the correct branch.
You can create the missing columns in phpmyadmin by selecting your db, table and adding it in structure or...
As i thought you already had it before, i'm sure that the boat npc is using the same function, for future readers, this removeMoneyNpc will not work for everyone, i looked for it and found:
NPC working with balance.
Way better than the example code.
You can create it as a function and put in a lib or something to make it easier to use, you should already have that(as a function or not) as the boat NPC is doing the same thing, so you can change the function doPlayerRemoveMoney from the promotion npc to something similar to what is happening...
You can change droploot.lua to check the tile, use player:getPosition() to get the position and return true if the player is on that tile.
Tile(position):hasFlag(TILESTATE_PVPZONE)
The onThink function repeats with a set interval, so without the line
if ((os.time()) - last_interval) > 25 then
it will execute a lot of times in that set interval.
You changed the interval to 1 and removed the check to test, but you need to change the unregisterEvent too, without the check...