Jump to content
Sign in to follow this  
BorzZ

Ist possible ?

Recommended Posts

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 ?

 

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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 

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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 by Totoka

Discord: andresc

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...