Action [Advanced] Rune(s) System

Status
Not open for further replies.

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
Delete This

Lua:
-- New Thread Created --
 
Last edited:

Gesior.pl

Mega Noob&LOL 2012
Joined
Sep 18, 2007
Messages
2,025
Best answers
19
Reaction score
1,060
Location
PLand
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
 
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
@Gesior,

Fixed.
 
Last edited:
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
@Topic,

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

Good Luck :thumbup:
 
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
@Topic,

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

I hope you all like it :thumbup:
 
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
@Topic,

Any responses?
I did make this for "beginners" and tried to explain it well.
 
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
@Up,

I made this last night...
Didn't even know you released one :blink:
 
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
No replies?
No rep?
:blink:
 
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
Bump. :thumbup:
 
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
@Up,

Thanks, I hope it all works.
(I will add a couple features later)
 
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
Updated.
New effects added, make it more fancy :thumbup:
 

Saj

Remember my name
Joined
Feb 26, 2008
Messages
2,127
Best answers
0
Reaction score
5
good job! keep updating if u can :)
 
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
Bump this shit up baby :cool:
 
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
I don't know...try it?
 

morov

New Member
Joined
Jul 5, 2009
Messages
57
Best answers
0
Reaction score
0
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.
Top