• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Request] Lua Functions

Status
Not open for further replies.

Holloweye

New Member
Joined
Jul 13, 2007
Messages
52
Reaction score
4
I have a request on some Lua Functions.

1: Increase/DecreaseItemAttackDamage(uid,attack) --Like i would be able to increase/decrease attack damage to a particular item. EX: Club 7+1,7

2: Increase/DecreaseItemDefence(uid,defence)

3: CreateItem(Pos,ID) --This should work everywhere even on a empty tile like in the air.



Thanks
(Iam using Forgotten Server 0.3b3)
 
1.
getItemAttack(uid)
setItemAttack(uid, attack)
getItemExtraAttack(uid)
setItemExtraAttack(uid, extraattack)
2.
getItemDefense(uid)
setItemDefense(uid, defense)
getItemExtraDefense(uid)
setItemExtraDefense(uid, extradefense)
getItemArmor(uid)
setItemArmor(uid, armor)
3.doCreateItem(itemid, type/count, pos)
 
Do these functions exisit?
getItemAttack(uid)
setItemAttack(uid, attack)
getItemExtraAttack(uid)
setItemExtraAttack(uid, extraattack)
getItemDefense(uid)
setItemDefense(uid, defense)
getItemExtraDefense(uid)
setItemExtraDefense(uid, extradefense)
getItemArmor(uid)
setItemArmor(uid, armor)

3.doCreateItem(itemid, type/count, pos) < IT DONT WORK IN THE AIR YOU WILL GET ERROR THAT THERE IS NO TILE
 
Status
Not open for further replies.
Back
Top