BorzZ 0 Report post Posted July 22, 2016 Is it possible to make everyone gets in a map with same stat ? i mean standard stats just like 100 con , 100str...... and ignores his set gems and stats ? Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted July 22, 2016 5 minutes ago, BorzZ said: Is it possible to make everyone gets in a map with same stat ? i mean standard stats just like 100 con , 100str...... and ignores his set gems and stats ? SetChaAttr functions Sir. Quote Share this post Link to post Share on other sites
BorzZ 0 Report post Posted July 22, 2016 can you please guide me on this one ? Quote Share this post Link to post Share on other sites
BorzZ 0 Report post Posted July 22, 2016 Like in a PK map called battle , how to add a function to make everyone in this map gets same stat Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted July 22, 2016 9 minutes ago, BorzZ said: Like in a PK map called battle , how to add a function to make everyone in this map gets same stat After player enter map function and think then you set these functions Quote Share this post Link to post Share on other sites
BorzZ 0 Report post Posted July 22, 2016 i cant get it bro , i want make a pk for 5v5 and ill handle it by my self everytime , is there a command i can put ingame to give this player a standard stats ? Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted July 22, 2016 7 minutes ago, BorzZ said: i cant get it bro , i want make a pk for 5v5 and ill handle it by my self everytime , is there a command i can put ingame to give this player a standard stats ? Command ? for set all players that will enter same stats? nope ,you cant Quote Share this post Link to post Share on other sites
BorzZ 0 Report post Posted July 22, 2016 so can you give me a function that i can make for a map which makes everyone gets inside it gets same stat Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted July 23, 2016 12 hours ago, BorzZ said: so can you give me a function that i can make for a map which makes everyone gets inside it gets same stat SetChaAttr Quote Share this post Link to post Share on other sites
Totoka 152 Report post Posted July 23, 2016 (edited) As @Dimitrov suggest, you can try the function @SetChaAttr( character, attribute, value ) You could do your lua logic at the [map]/entry.lua -> -- an example --------------------------------------------------------- -- pay attention to @map, there must be your map name instead function begin_enter_@map( character, mgr ) SetChaAttr( character, ATTR_STR, 100 ) SetChaAttr( character, ATTR_DEX, 100 ) SetChaAttr( character, ATTR_AGI, 100 ) SetChaAttr( character, ATTR_CON, 100 ) SetChaAttr( character, ATTR_STA, 100 ) end --------------------------------------------------------- -- *I had never do something like that before Edited July 23, 2016 by Totoka Quote Discord: andresc Share this post Link to post Share on other sites
Vasil 71 Report post Posted July 23, 2016 6 minutes ago, Totoka said: You could do your lua logic at the [map]/entry.lua -> -- an example --------------------------------------------------------- -- pay attention to @map, there must be your map name instead function begin_enter_@map( character, mgr ) SetChaAttr( character, ATTR_STR, 100 ) SetChaAttr( character, ATTR_DEX, 100 ) SetChaAttr( character, ATTR_AGI, 100 ) SetChaAttr( character, ATTR_CON, 100 ) SetChaAttr( character, ATTR_STA, 100 ) end --------------------------------------------------------- -- *I had never do something like that before Thats what i am exactly Telling him. Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted July 23, 2016 1 hour ago, Totoka said: As @Dimitrov suggest, you can try the function @SetChaAttr( character, attribute, value ) You could do your lua logic at the [map]/entry.lua -> -- an example --------------------------------------------------------- -- pay attention to @map, there must be your map name instead function begin_enter_@map( character, mgr ) SetChaAttr( character, ATTR_STR, 100 ) SetChaAttr( character, ATTR_DEX, 100 ) SetChaAttr( character, ATTR_AGI, 100 ) SetChaAttr( character, ATTR_CON, 100 ) SetChaAttr( character, ATTR_STA, 100 ) end --------------------------------------------------------- -- *I had never do something like that before try to do that on function after_player_enter_mapname.I'll test out to add a new function to ctrl.lua Quote Share this post Link to post Share on other sites