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

TalkAction [MoveEvents] [CreatureEvent] Attribute System

I looked in some ots this system with images for each attribute to use.
How i can set this?
 
How to getStorage from player each level, then check it.
To prevent players from die and gain the level/stats again, and so on.. till he has many atributes.

Example. Player get back to level 19.
When he gets level 20, it won't happen nothing. because... Already gained.

Sorry for english - I'mma Brazilian
 
haha close its like 375311 said except the function is


Umm dude the function's correct... it is doSetItemAttribute.. At least in 0.3.7_SVN(Crying Damson) TFS, which is the version im using.... but anyways...

Im having the same problem as
Collz had, although mine in moveevents and his was in talkactions.... maybe i should move it to talkactions?... although the guide said to put into moveevent... Also that npc to add the stats, ect does sound more realistic
Code:
[COLOR=#333333][I][[/I][/COLOR][COLOR=#333333][I]0:18:11.121[/I][/COLOR][COLOR=#333333][I]] [Error - TalkAction Interface] [/I][/COLOR]
[COLOR=#333333][I][[/I][/COLOR][COLOR=#333333][I]0:18:11.121[/I][/COLOR][COLOR=#333333][I]] data/[/I][/COLOR][COLOR=#333333][I]movements/scripts/custom/[/I][/COLOR][COLOR=#333333][I]attributes.lua:onSay[/I][/COLOR]
[COLOR=#333333][I][[/I][/COLOR][COLOR=#333333][I]0:18:11.121[/I][/COLOR][COLOR=#333333][I]] Description: [/I][/COLOR]
[COLOR=#333333][I][[/I][/COLOR][COLOR=#333333][I]0:18:11.121[/I][/COLOR][COLOR=#333333][I]] data/[/I][/COLOR][COLOR=#333333][I]movements/scripts/custom/[/I][/COLOR][COLOR=#333333][I]attributes.lua:39: attempt to call global 'setItemExtraAttack' (a nil value)[/I][/COLOR]
[COLOR=#333333][I][[/I][/COLOR][COLOR=#333333][I]0:18:11.121[/I][/COLOR][COLOR=#333333][I]] stack traceback:[/I][/COLOR]
[COLOR=#333333][I][0:18:11.121] data/movements/scripts/custom/attributes.lua:39: in function <data/[/I][/COLOR][COLOR=#333333][I]movements/scripts/custom/[/I][/COLOR][COLOR=#333333][I]attributes.lua:19>
[/I][/COLOR]



And i tryed Shinmaru's solution, didn't work, same error... still says ~=nil value....
you have to change all setItem[whatever] to (if I'm not mistaking)
doSetItemAttribute(cid, "", value) "" put extraattack, value the amount.
 
Back
Top