• 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!

Action [Advanced] Rune(s) System

Status
Not open for further replies.

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Solutions
2
Reaction score
115
Delete This

Lua:
-- New Thread Created --
 
Last edited:
PHP:
..
backpack = doPlayerAddItem(cid, 1988, 1)
for i = 1, 20 do
doAddContainerItem(backpack, RuneId, 1)
end
..
Bugged?
You add player BP (he has 20 cap) and then try to add runes to this bp. If player has 0 cap (if bp weight is 20 oz) runes will not appear :>
First create itemEx (bp), then add runes to this container and then add this container to player with 'canDropOnMap = true'. TFS 0.3.4pl2 functions:
Code:
doCreateItemEx(itemid[, count/subType])
doAddContainerItemEx(uid, virtuid)
doPlayerAddItemEx(cid, uid[, canDropOnMap = FALSE])
script:
PHP:
..
backpack = doCreateItemEx(1988, 1)
for i = 1, 20 do
doAddContainerItemEx(uid, doCreateItemEx(RuneId, 1))
end
doPlayerAddItemEx(cid, backpack, TRUE)
..
NOT TESTED
 
@Gesior,

Fixed.
 
Last edited:
@Topic,

The script has been UPDATED and TESTED.
It works 100%.

Good Luck :thumbup:
 
@Topic,

I have updated the script once more.
New feature has been added.

I hope you all like it :thumbup:
 
@Topic,

Any responses?
I did make this for "beginners" and tried to explain it well.
 
@Up,

I made this last night...
Didn't even know you released one :blink:
 
No replies?
No rep?
:blink:
 
Bump. :thumbup:
 
@Up,

Thanks, I hope it all works.
(I will add a couple features later)
 
Updated.
New effects added, make it more fancy :thumbup:
 
good job! keep updating if u can :)
 
Bump this shit up baby :cool:
 
I don't know...try it?
 
Trying but I think I'll need to add them to global.lua, since it's saying this; data/actions/scripts/other/thunderstorm.lua:8: attempt to call global 'getItemNameById' <a nil value>


so.. ill try to add every id of the 31 scripts on global.lua, dunno if it will work :S
 
Status
Not open for further replies.
Back
Top