• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

MoveEvent Slot system

I have php script parsing items.xml into mod containing eqip and deequip for all pickupable items(can post it here when ill find it)

About script: idea is nice, script is advanced etc, but it would be better to use tfs default item attributes(yeah, I know about all[or at least some] problems with that stuff xD) instead of script(and conditions, using more than 1 item with some kind of bonus can make you get only bonus from last item if its not protected from this weakness)
 
@zakius
is protected, you can get more than one condittion onde form HP, one form mana etc :D dont worry
 
@andrewss
It doesn't work for you because most probably you are using TFS 0.3.5 and
some to most function in that script are from TFS 0.3.6 + unless you update
to a newer version of TFS this script wouldn't work.
@Mock
Awesome script as always this tells me 2 things:
1. That I need to switch from TFS 0.3.5 to 0.3.6
2. This gives me a few ideas.

Anyways thanks for the script!!
 
Pharenight is the server everyone will play!

Mock your scripts are always just so facking nice!
 
@iBlue
pharenight is closed 1 year ago because TFS 0.3.3 errors.
 
Como disse no otro topico mock, deu Crash, usei em mim mesmo, quando usei na Golden boots, bang!crashed!

-

i told in another topic, i used on myself, after i used on golden boots, and BOW! crash!

0.3.6 !

- cabei de ver uma coisa!
Agora, eu Equipo a Golden Boots, CRASH
eu Tiro a golden boots, CRASH XDDDDDDDDD

so? ---------

A , mock, o script ta tranquilo, o problema sabe qual era?

Quando eu to sem nenhuma bota , se eu der "/i Golden boots,1"

e a bota CAIR direto em meu corpo, ai da CRASH!
agora se eu coloca outra bota, e der add golden, e equipar, fica perfeito..
Mas, se acontece quando a bota cai direto no meu corpo,
Vai acontecer quando um player tiver sem bota, e clicar no bau de quest..
Concorda comigo?

Alguma solução :S ?
 
Last edited:
Very strange again : P

No errors in console, upgrade works:
Code:
11:23 You see a magic plate armor [ml.+2%] (Arm:17).
It weighs 85.00 oz.
An enchanted gem glows on the plate armor.
ItemID: [2472].
Position: [X: 1007] [Y: 1017] [Z: 7].

in movements:
Code:
	<movevent type="Equip" itemid="2472" slot="armor" event="script" value="slot.lua"/>
	<movevent type="DeEquip" itemid="2472" slot="armor" event="script" value="slot.lua"/>

TFS 0.3.6pl1
Not work 100%. When i equip MPA it do not give me this 2% mlvl


@EDIT
Oke, nvm with this. MPA was already in movements.xml, cause its only for knight&paladin.

I see, i can't add that lines:
Code:
		<vocation id="3"/>
		<vocation id="7" showInDescription="0"/>
		<vocation id="4"/>
		<vocation id="8" showInDescription="0"/>
	</movevent>
cause it doesn't works with this script.

Btw.
If i make one golden boots, it apears in feet slot, i move it from there - my server crashes.
But if i move golden boots from backpack to feet slot, then from feet to backpack - everything is ok.
Hehe, strange : D


Tested with MPA, and with your Golden Boots.

Please fix it, this script rocks! : D
 
Last edited:
@MrLipzZz
Lol? ._.
here it dont happen, but i will try fix it.

every TFS update idk WHY hey change too much things in movements nothing to better -.-
and in each update it works not like old version :S

HEY TREY DO IT
in:
function onEquip(cid, item, slot) --By mock the bear

if getPlayerSlotItem(cid,slot).itemid ~= item.itemid and item.uid ~= 0 then
if equips_lvl[item.itemid] then
if (equips_lvl[item.itemid].lvl and equips_lvl[item.itemid].lvl > getPlayerLevel(cid)) or (#equips_lvl[item.itemid].voc > 0 and not isInArray(equips_lvl[item.itemid].voc,getPlayerVocation(cid))) then
return false
end
add it:
Lua:
function onEquip(cid, item, slot)
print(item.itemid,item.uid,slot)

and paste to my when you say /i golden boots
 
Last edited:
Olha mock!
Eu botei uma leather boots, pra golden cair direto na minha BAG..
PQ eu tive um leve precentimento que toods players iam tomar disconnect haha.
Olha o que apareceu, quand eu equipei a boots..

[29/06/2010 17:11:15] 2646
[29/06/2010 17:11:15] 90683
[29/06/2010 17:11:15] 8
[29/06/2010 17:11:15] 2646
[29/06/2010 17:11:15] 90683
[29/06/2010 17:11:15] 8

Estranho, foi como se o item fosse equipado duas vezes, estou correto?

-- squidy haha, another player with my problem :p !

- Edit -

o script é otimo, mas é muito random..
Acho que poderia ser separado.
Uma shard daria "random" HP pra um item
Outra shard daria "random" MP pra um item
outra shard daria "random" LEVEIS ML porque porcentagem quase nao muda, ML 100, 10% porcentagem (RARO) ganha 10, isso se vier 10%.. poderia vir de 1 a 10 ML leveis! tendo assim uma porcentagem de sucesso, msa acho que a porcentagem o script tem..
Outra random Skill
Outra random blabla
outra randm blabla


mas acho que o script ficaria IMENSO!!!!!!!!!!!!!!!
Porque nsse modo, o player usa, nao veio um option nada haver com ele, ele fica revoltado haHaahhahaha..
Se o item for de shop entao, como disseram, putz ! player vai ter um troço :S !
 
Last edited:
Good script.
It is how a refination system, also.
Post all please... ;)
Rep++ for you.
 
@MrLipzZz
Lol? ._.
here it dont happen, but i will try fix it.

every TFS update idk WHY hey change too much things in movements nothing to better -.-
and in each update it works not like old version :S

HEY TREY DO IT
in:

add it:
Lua:
function onEquip(cid, item, slot)
print(item.itemid,item.uid,slot)

and paste to my when you say /i golden boots


Eh, still doesn't works.
I tried to make a quest with Golden Boots. I open chest on normal char, its ok - boots apears in feet slot. But when i drop boots on ground my server crashes : )
 
Back
Top