Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. sorry...but he is looking for adjustment on this case CR_ACIDDEMONSTRATION: // updated the formula based on a Japanese formula found to be exact [Reddozen] if(tstatus->vit+sstatus->int_) //crash fix md.damage = (int)((int64)7*tstatus->vit*sstatus->int_*sstatus->int_ / (10*(tstatus->vit+sstatus->int_))); else md.damage = 0; if (tsd) md.damage>>=1; if (md.damage < 0 || md.damage > INT_MAX>>1) //Overflow prevention, will anyone whine if I cap it to a few billion? //Not capped to INT_MAX to give some room for further damage increase. md.damage = INT_MAX>>1; break;
  2. did you loaded the monster script file like listed here ? https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/npc/scripts_monsters.conf check is the file completed listed with monster inside those monster script file..
  3. are you refer to this ?? https://rathena.svn....ced_refiner.txt assume you are newbie in scripting... if you want study about scriptiing stuff...read wiki and doc file would be better... so that you can understand what the script command does and etc..
  4. constant stuff you can refer here db/cont.txt variable..refer here doc/script_commands.txt Variables --------- The meat of every programming language is variables - places where you store data. In the rAthena scripting language, variable names are not case sensitive. Variables are divided into and uniquely identified by the combination of: prefix - determines the scope and extent (or lifetime) of the variable name - an identifier consisting of '_' and alphanumeric characters postfix - determines the type of the variable: integer or string Scope can be: global - global to all servers local - local to the server account - attached to the account of the character identified by RID character - attached to the character identified by RID npc - attached to the NPC scope - attached to the scope of the instance Extent can be: permanent - They still exist when the server resets. temporary - They cease to exist when the server resets. Prefix: scope and extent nothing - A permanent variable attached to the character, the default variable type. They are stored with all the account data in "saveathena.txt" in TXT versions and in the SQL versions in the `global_reg_value` table using type 3. "@" - A temporary variable attached to the character. SVN versions before 2094 revision and RC5 version will also treat 'l' as a temporary variable prefix, so beware of having variable names starting with 'l' if you want full backward compatibility. "$" - A global permanent variable. They are stored in "savemapreg.txt" or database table `mapreg`, depending on server type. "$@" - A global temporary variable. This is important for scripts which are called with no RID attached, that is, not triggered by a specific character object. "." - A NPC variable. They exist in the NPC and disappear when the server restarts or the NPC is reloaded. Can be accessed from inside the NPC or by calling 'getvariableofnpc'. Function objects can also have .variables which are accessible from inside the function, however 'getvariableofnpc' does NOT work on function objects. ".@" - A scope variable. They are unique to the instance and scope. Each instance has it's own scope that ends when the script ends. Calling a function with callsub/callfunc starts a new scope, returning from the function ends it. When a scope ends, it's variables are converted to values ('return .@var;' returns a value, not a reference). "'" - An instance variable These are used with the instancing system, and are unique to each party's instance. "#" - A permanent local account variable. They are stored with all the account data in "saveaccreg.txt" in TXT versions and in the SQL versions in the 'global_reg_value' table using type 2. "##" - A permanent global account variable stored by the login server. They are stored in "saveaccount.txt" and in the SQL versions in the 'global_reg_value' table, using type 1. The only difference you will note from normal # variables is when you have multiple char-servers connected to the same login server. The # variables are unique to each char-server, while the ## variables are shared by all these char-servers. Postfix: integer or string nothing - integer variable, can store positive and negative numbers, but only whole numbers (so don't expect to do any fractional math) '$' - string variable, can store text Examples: name - permanent character integer variable name$ - permanent character string variable @name - temporary character integer variable @name$ - temporary character string variable $name - permanent global integer variable $name$ - permanent global string variable $@name - temporary global integer variable $@name$ - temporary global string variable .name - NPC integer variable .name$ - NPC string variable .@name - scope integer variable .@name$ - scope string variable #name - permanent local account integer variable #name$ - permanent local account string variable ##name - permanent global account integer variable ##name$ - permanent global account string variable If a variable was never set, it is considered to equal zero for integer variables or an empty string ("", nothing between the quotes) for string variables. Once you set it to that, the variable is as good as forgotten forever, and no trace remains of it even if it was stored with character or account data.
  5. Tanslated Version : ( Google Translate ) baguhin set requiredLevel, 80.; sa ito OnInit: set requiredLevel, 80.; end; kung hindi man ... Ang iyong script ay "Hindi" gumana nang maayos ... bilang lamang ito suriin para sa gm Antas sa ibaba 0 ... (di-umiiral) dahil ang variable ay hindi tinukoy English Version :
  6. what error.. then just follow the date client you have choosen ~ beside.. you can refer this part to check your client date Gravity Error 's Time Stamp
  7. answered before.. use search engine next time before post a topic ^^ so that you will found your answer faster instead of waiting for other answer... http://rathena.org/board/topic/57053-help-using-cash-point-to-make-quest/page__view__findpost__p__68741
  8. conf/battle/client.conf // valid range of dye's and styles on the client min_hair_style: 0 max_hair_style: 27 min_hair_color: 0 max_hair_color: 8 min_cloth_color: 0 max_cloth_color: 4 if cant..then compile your server 1 more time. the value at the src is refer to this setting...
  9. Please do not open the same thread repeatly... you may bump the topic within every 24 hours..but not re-open a same topic after 1 ~ 2 weeks...
  10. since it is already declined..perhap you guys should stop discuss on this ?
  11. use this.. [ Pastebin ] MVP / Miniboss Summoner
×
×
  • Create New...