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!
Did your public ip change during the night? since you said it was all fine a day ago.
Do you use no-ip or something like that?
send your public ip to your friend once again and also compare ip set in config.lua, and change it if thay dont match
Is you ISP Comhem? that is a problem i have encounter while on Comhem, i always have to connect as a localhost on all my network stuff if the server is located in my own network
also make sure your ports are open in your router (7171)
I think he meant that you do this
change
function UIVerticalProgressBar:setPercent(percent)
self:setValue(percent, 0, 100)
end
to
function UIVerticalProgressBar:setPercent(percent)
self:setValue(percent, 100, 0)
end
its a quick hack but its better to redo the functions to calculate it...
you could add isCrusader() to your server
add this, just remember to change 4 and 8 to the vocation ids you use for you crusader vocation
data\lib\031-vocations.lua
function isCrusader(cid)
return isInArray({4, 8}, getPlayerVocation(cid))
end
Depends on what script you used, the first one will always print the msg. The other one will check if a storageID is lower then 1 if that is the case then it will print the msg else nothing will happen. You should change it to the storage id you get when you loot the quest chest in the room...
If you can enter the door whit the regular door script, you could use a movement script.
This example is quite bad since it would print the text all the time. but you can always modify it to only print the text unless the player looted the chest in the room
data\movements\scripts\TextDoor.lua...
Well i didn't make a full script just an example how to implement in to your script.
I did a sample for you where you should be able to buy sudden death runes
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)...
Do you have a sample script that you can post?
You could use this function when you hand the item to the player
doPlayerAddItem(cid, itemid, count)
Im not sure if that will add the charges to the rune.
If you use the npc system you posted you could do something like this
if msgcontains(msg...
Then you want to use a actionid on the tile you want this to work on, this will work for any item you remove from the tile. Unless you make a check for a special itemid in the if statement.
moveitemexample.lua
function onRemoveItem(item, tile, position)
local tilePosition =...
It should be possible, but instead of counting tiles you should just compare the distance.
Where the center tile should be the items position(fromPosition)or player position if you throw it from your backpack.
and the target position should just be the position you throw the item to (toPosition)...
FYI you could just type
Game.sendMagicEffect({x = 32170, y = 32146, z = 11}, 3)
Game.removeItemOnMap({x = 32170, y = 32146, z = 11}, 1270)
like this instead
Game.sendMagicEffect(toPosition, 3)
Game.removeItemOnMap(toPosition, 1270)
What does your fluids.lua script look like?
Something like this should work if you make a new simple script. Just remember to put the actionid on the wall object you want to destory to 1337 or change it to something else. But you might want to include it inside the fluids.lua script file so it...
at line 33 change
Player.savePosition(self, storage) -- < --- command to save position
to
player:savePosition(storage) -- < --- command to save position
atleast thats how i understand it by the example code how to load the position
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local Topic = {} -- Stores all the topics in a table
local config = {
minLevel = 350,
pos = {x = 1007, y = 1160, z = 7},
}
function...
You can add "topics" to the npc script and if you dont have the right topic id then the npc would ignore the msg
here is an example how i use to do it, whit some comments to explain it roughly.
The rest is up to you to design you npc, you can add as many topic ids as you like
I didnt remove...
Oh i didnt even account for that, im sure you wont drop anything if you are red or black skull and got the twist of fate blessing.
but its a quick and easy fix
change this line
if player:hasBlessing(TWIST_OF_FATE) then
to this and you should drop your items whit red/black skull
if...
You should be able to do it if you check if the player has twist of fate blessing and if the killer is a player, and then just return true whitout adding items to the body. give me some time and ill try to come up whit some code... hopefully :p
like the script check if the player has the...
Thats is how its suposed to work, Twist of fate is just to keep your regular blessings when you die to pvp. If you dont have any regular blessings then there is nothing that prevents the player from droping items.