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!
s="11,21,02,44,01,12"
local t = {}
local j=0
local k=0
local n
for i=0,5 do
local p=1
if i ~= 1 then p=3*i end
j,k = string.find(s, "%d%d", 3*i+1)
if j==nil then break end
n=string.sub(s, j, k)
table.insert(t, n)
end
Is there better way to...
Hey i have this simple script in movements:
<movevent event="Equip" itemid="21691" slot="necklace" script="critical.lua" function="onEquipItem"/>
<movevent event="DeEquip" itemid="21691" slot="necklace" script="critical.lua" function="onDeEquipItem"/>
And the script:
function...
Do somebody have code of this function to change item name in game and could share? I know tfs1.0 doesnt have this included but maybe someone has written yet?
Is something like g_game.addAnimatedText(getPosition(), TEXTCOLOR_RED, "Critical!"); function in tfs 1.0 ? This one is from 0.36.
//
Is there something to give a text for a short time on a monster or player?
function Party:onDisband()
local a=#self:getMembers()
broadcastMessage(a, 20)
return true
end
were two ppl in party, broadcasted "1"
when i used local a=self:getMemberCount() it broadcasted "0"
Have some idea ?
Found solution :D
function Party:onLeave(player)
cId=getPlayerByName(player:getName())
if getPlayerParty(cId) then
--[[ if party is not disbanded do nothin ]]-
else
--[[ ppl who were in party when it was disbanding should get these item ]]--
doPlayerAddItem(getPartyMembers(cId)[1], 2190,1)...
How to get a party members in moment when the party is disbanding ?
I mean when the party leader leaves the party and then the party is disbanding.
In /events/party.lua there's a Party: onDisband() function but it doesn't have any argument like onLeave(player) or onJoin(player) have so i don't...
Czy jest możliwość uzyskania nazw czlonków party w momencie kiedy jest ono usuwane ? Jak np. lider party kliknie leave party.
w events jest funkcja Party: onDisband() ale nie przyjmuje żadnego argumentu tak jak onLeave() albo onJoin() więc w momencie kiedy party jest disbanded nie mogę wykonać...
Witajcie,
potrzebuje pobrać nazwę lidera party w rozmowie z npc, próbuję użyć funkcji getLeader() jednak w konsoli wywala mi błąd.
Przypisuje to w ten sposób: local leader=getLeader() i nawet bez dalszego wykorzystania zmiennej leader wywala błąd. Że niby wartość jest nil, ale chyba nawet jak...
Wymiatek czy w tym momencie nie poddales sie stereotypom ?
tak apropo to Polska wedlug tego co napisales to tak samo glupi kraj - polowa glosuje na jedna partie, druga polowa na druga, zalezy kto jaka telewizje oglada i jakiego radia slucha