Jump to content

Virtue

Members
  • Posts

    354
  • Joined

  • Days Won

    6

Community Answers

  1. Virtue's post in Character Stats as a quest requirement [Possible?] was marked as the answer   
    Definitely. You can use the one below:
    *readparam(<parameter number>{,"<character name>"}) *readparam(<parameter number>{,<char_id>}) This function will return the specified stat of the invoking character, or, if a character name or character id is specified, of that player. The stat can either be a number or parameter name, defined in 'src/map/script_constants.hpp'. Some example parameters: StatusPoint, BaseLevel, SkillPoint, Class, Upper, Zeny, Sex, Weight, MaxWeight, JobLevel, BaseExp, JobExp, NextBaseExp, NextJobExp, Hp, MaxHp, Sp, MaxSp, BaseJob, Karma, Manner, bVit, bDex, bAgi, bStr, bInt, bLuk, Ap, MaxAp All of these also behave as variables, but don't expect to be able to just 'set' them - some will not work for various internal reasons. Example 1: // Returns how many status points you haven't spent yet. mes "Unused status points: " + readparam(9); Using this particular information as a function call is not required. Typing this will return the same result: mes "Unused status points: " + StatusPoint; Example 2: You can also use this command to get stat values. if (readparam(bVit) > 77) mes "Only people with over 77 Vit are reading this!"; https://github.com/rathena/rathena/blob/b56f11207c3cb5337dca07bb910ba85316c84939/doc/script_commands.txt#L2445
  2. Virtue's post in Rare Drop Announce - include map name was marked as the answer   
    Solved the Rare drop announce by increasing char message and using intif_broadcast2 instead of intif_broadcast to change the color.
  3. Virtue's post in new quest window shop request was marked as the answer   
    If you're referring to the image below, you might want to check the barter shop. This works with clients 2019-01-16RagexeRE or later


    This can be turned on or off at features.conf
    // Barter Shop System (Note 1) // Requires: 2019-01-16RagexeRE or later feature.barter: off  
  4. Virtue's post in hi im using this lotti girl script how can i make this only announce to map was marked as the answer   
    to just announce on map, change
    announce "[ Lotti Girl ]: Player "+ .@name$ +" obtained 1 x "+ getitemname(.item_ID[.@i]) +" with "+ .item_Rate[.@i] +"%.",0; to
    announce "[ Lotti Girl ]: Player "+ .@name$ +" obtained 1 x "+ getitemname(.item_ID[.@i]) +" with "+ .item_Rate[.@i] +"%.",bc_map; then if you want it to only announce by specific chances do something like,
    if(.item_Rate[.@i] == <chance you want>){ announce part of the script }  
  5. Virtue's post in Cross Impact to finish all blows before recast/walk was marked as the answer   
    put a cooldown on it.
×
×
  • Create New...