Jump to content

jimmyyheah

Members
  • Posts

    22
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    malaysia
  • Server
    facebook ro

Recent Profile Visitors

1142 profile views

jimmyyheah's Achievements

Poring

Poring (1/15)

0

Reputation

  1. @Emistry i using koe_03ar.diff and i get this battle.c: In function 'battle_check_target': battle.c:5266: error: 'TBL_MOB' has no member named 'mob_id' make[1]: *** [obj_sql/battle.o] Error 1 make[1]: Leaving directory `/home/irisro/trunk/src/map' make: *** [map_sql] Error 2 Pump pump pump
  2. Thanks =D i try restart and see work or not
  3. my putty Script error on npc/jimmy/restrictedjob.txt line 83 parse_line: need ';' 78 : setarray .Map$, // <Mapname>,<Mode>.... ( Mode = Bitwise Value ) Max of ~64 Map Settings. 79 : "prtg_cas01","7", 80 : "prtg_cas02","56", 81 : 82 : // Assign a LoadEvent Mapflag to each map you listed. * 83 : for'(' set .map,0; .map < getarraysize( .Map$ ); set .map,.map + 2 ); 84 : setmapflag .Map$[.map],mf_loadevent; 85 : end; 86 : } restrictedjob.txt
  4. @Emistry thanks for reply but my main is this ->job3_war02,30,20,5 script Villas Prontera#Rb 837,{ callfunc "rent_villas","Prontera",300000,"b",27; } ->rent_mb,107,42,0 script rentbw1 45,1,1,{ callfunc "rent_entrada","b1",300000,24,6; } //============================================================ //= Function for the npc, entrance to the Villas //= (Number of Villa,Cost of Property,Number of Houses) //============================================================ function script rent_villas { set @t, getarg(3); mes "^FF0000[Villas " + getarg(0) + "]^000000"; mes "The best place to rent..."; mes "" + @t + " Houses for rent."; mes "Cost of Property: ^0000FF" + getarg(1) + " Zeny^000000"; set @j, 22; for (set @i, 1; @i <= @t; set @i, @i + 1) { if (getd("$house" + getarg(2) + @i + "_rent") == 1) set @j, @j - 1; } if (@j == 0) mes "There are no properties available."; else mes "Properties Available: ^0000FF" + @j + "^000000."; close; } //============================================================ //= Functions of the Signboard that shows the owners and GM options //= (id of Villa,Amount of Houses) //============================================================ function script rent_letrero { mes "[Rental Information]"; mes "Current Owners:"; set @t, getarg(1); for (set @i, 1; @i <= @t; set @i, @i + 1) { if (getd("$house" + getarg(0) + @i + "_rent") == 1) { if (@Color$ == "^0000FF") set @Color$, "^FF0000"; else set @Color$, "^0000FF"; // Detalle de Casa mes @Color$ + "House N?" + @i + " rented a " + getd("$house" + getarg(0) + @i + "_user$") + "."; if (getgmlevel()) mes "Accessed " + getd("$house" + getarg(0) + @i + "_accesos") + " time from last reset"; mes "Final: " + getd("$house" + getarg(0) + @i + "_buy_day") + "-" + getd("$house" + getarg(0) + @i + "_buy_month") + "-" + getd("$house" + getarg(0) + @i + "_buy_year") + ".^000000"; } } if (getgmlevel()) goto L_GMmenu; close; L_GMmenu: next; menu "Release a house",L_Liberar,"Clean Accounts",L_Limpiar,"Cancel",-; L_Salir: mes "^FF0000[Rental Information]^000000"; mes "Level of administrative access"; mes "Goodbye..."; close; L_Limpiar: mes "^FF0000[Rental Information]^000000"; for (set @i, 1; @i <= @t; set @i, @i + 1) { setd "$house" + getarg(0) + @i + "_access", 0; } mes "Logs in accessing the house has been reseted."; close; L_Liberar: mes "^FF0000[Rental Information]^000000"; mes "You want to release a house?(1 - " + @t + ")"; mes "Enter the number of the house you want to release. (0 o mayor que " + @t + " para cancelar)."; next; input @house; if (@house < 1) goto L_Salir; if (@house > @t) goto L_Salir; if (getd("$house" + getarg(0) + @house + "_rent") == 1) { mes "^FF0000[Information on Rents]^000000"; setd "$house" + getarg(0) + @house + "_rent", 0; mes "The house " + @house + " has been released."; killmonsterall "rentin" + getarg(0) + @house + ".gat"; // Kills the small monsters } else { mes "^FF0000[Rental Information]^000000"; mes "I'm sorry, but this house doesn't have an owner right now!"; mes "Please try again with a different number."; } close; }
  5. @chaos92 my player his guild level is maxi still can hit it =( and they can keep break the emp izit ?
  6. i follow AnnieRuru step in patch modified SRC i having error in battle.h CC script.c CC storage.c CC skill.c CC atcommand.c CC battle.c battle.c: In function ‘battle_check_target’: battle.c:6602: error: ‘TBL_MOB’ has no member named ‘class_’ battle.c:6603: error: ‘mapreg’ undeclared (first use in this function) battle.c:6603: error: (Each undeclared identifier is reported only once battle.c:6603: error: for each function it appears in.) battle.c:6603: error: ‘script’ undeclared (first use in this function) make[1]: *** [obj_sql/battle.o] Error 1 make[1]: Leaving directory `/home/sg04/trunk/src/map' make: *** [map] Error 2 Recompile failed. Please check again. my battle h #ifndef _BATTLE_H_ #define _BATTLE_H_ #include "mapreg.h" but in annieruru src is below #include "../common/mmo.h" #include "../config/core.h" #include "map.h" //ELE_MAX +#include "mapreg.h" but when i using this Index: battle.c =================================================================== --- battle.c (revision 16817) +++ battle.c (working copy) @@ -5021,6 +5021,13 @@ if( (s_bl = battle_get_master(src)) == NULL ) s_bl = src; + if ( s_bl->type == BL_PC && t_bl->type == BL_MOB ) { + struct map_session_data *sd = BL_CAST(BL_PC, s_bl); + if ( ( ((TBL_MOB*)target)->class_ == 1288 && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) && + ( sd->status.guild_id == mapreg_readreg( add_str("$KOEGUILD") ) || battle_getcurrentskill(src) > 0 ) ) + return 0; + } + if ( s_bl->type == BL_PC ) { switch( t_bl->type ) { case BL_MOB: // Source => PC, Target => MOB Index: battle.h =================================================================== --- battle.h (revision 16817) +++ battle.h (working copy) @@ -3,6 +3,7 @@ #ifndef _BATTLE_H_ #define _BATTLE_H_ +#include "mapreg.h" // state of a single attack attempt; used in flee/def penalty calculations when mobbed typedef enum damage_lv { no error in putty but i facing player cant hit emp all miss. there is the bug on there and as a gm can keep break the emp koe_0.3ar (1).diff koe.txt
  7. 30435,Fishing_Manual,Fishing_Manual,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "Fishing_Manual";},{},{} it can run in fishing manual but even though i wearing the requirement of the script to fishing it doesnt run. fishing_system_v1.6.txt
  8. here the scirpt Rent_Engine.txt Rent_Functions.txt Rent_Prontera.txt
  9. http://rathena.org/board/topic/82415-afk-command/ http://rathena.org/board/topic/63877-guide-on-adding-afk-commands/ try this 2 link
  10. function script rent_villas { set @t, getarg(3); mes "^FF0000[Villas " + getarg(0) + "]^000000"; mes "The best place to rent..."; mes "" + @t + " Houses for rent."; mes "Cost of Property: ^0000FF" + getarg(1) + " Zeny^000000"; set @j, 22; for (set @i, 1; @i <= @t; set @i, @i + 1) { if (getd("$house" + getarg(2) + @i + "_rent") == 1) set @j, @j - 1; } if (@j == 0) mes "There are no properties available."; else mes "Properties Available: ^0000FF" + @j + "^000000."; close; } //============================================================ //= Functions of the Signboard that shows the owners and GM options //= (id of Villa,Amount of Houses) //============================================================ function script rent_letrero { mes "[Rental Information]"; mes "Current Owners:"; set @t, getarg(1); for (set @i, 1; @i <= @t; set @i, @i + 1) { if (getd("$house" + getarg(0) + @i + "_rent") == 1) { if (@Color$ == "^0000FF") set @Color$, "^FF0000"; else set @Color$, "^0000FF"; // Detalle de Casa mes @Color$ + "House N?" + @i + " rented a " + getd("$house" + getarg(0) + @i + "_user$") + "."; if (getgmlevel()) mes "Accessed " + getd("$house" + getarg(0) + @i + "_accesos") + " time from last reset"; mes "Final: " + getd("$house" + getarg(0) + @i + "_buy_day") + "-" + getd("$house" + getarg(0) + @i + "_buy_month") + "-" + getd("$house" + getarg(0) + @i + "_buy_year") + ".^000000"; } } if (getgmlevel()) goto L_GMmenu; close; L_GMmenu: next; menu "Release a house",L_Liberar,"Clean Accounts",L_Limpiar,"Cancel",-; L_Salir: mes "^FF0000[Rental Information]^000000"; mes "Level of administrative access"; mes "Goodbye..."; close; L_Limpiar: mes "^FF0000[Rental Information]^000000"; for (set @i, 1; @i <= @t; set @i, @i + 1) { setd "$house" + getarg(0) + @i + "_access", 0; } mes "Logs in accessing the house has been reseted."; close; L_Liberar: mes "^FF0000[Rental Information]^000000"; mes "You want to release a house?(1 - " + @t + ")"; mes "Enter the number of the house you want to release. (0 o mayor que " + @t + " para cancelar)."; next; input @house; if (@house < 1) goto L_Salir; if (@house > @t) goto L_Salir; if (getd("$house" + getarg(0) + @house + "_rent") == 1) { mes "^FF0000[Information on Rents]^000000"; setd "$house" + getarg(0) + @house + "_rent", 0; mes "The house " + @house + " has been released."; killmonsterall "rentin" + getarg(0) + @house + ".gat"; // Kills the small monsters } else { mes "^FF0000[Rental Information]^000000"; mes "I'm sorry, but this house doesn't have an owner right now!"; mes "Please try again with a different number."; } close; } ================================================================================================== //============================================================ //= NPCs (Proprietor, Kafra, signboard) //============================================================ prt_fild06,51,296,5 script Villas Prontera#Rb 837,{ callfunc "rent_villas","Prontera",300000,"b",27; } rent_mb,128,44,5 script Signboard#Rb 835,{ callfunc "rent_letrero","b",27; } rent_mb,137,120,4 script Kafra Villas#Rb 721,{ callfunc "rent_kafra"; } rent_mb,130,120,5 script Proprietor#Rb 833,{ callfunc "rent_propietario","b",300000,27; } //============================================================ //= Access to Properties //============================================================ rent_mb,107,42,0 script rentbw1 45,1,1,{ callfunc "rent_entrada","b1",300000,24,6; } rent_mb,79,42,0 script rentbw2 45,1,1,{ callfunc "rent_entrada","b2",300000,24,6; } rent_mb,161,42,0 script rentbw3 45,1,1,{ callfunc "rent_entrada","b3",300000,24,6; } rent_mb,189,42,0 script rentbw4 45,1,1,{ callfunc "rent_entrada","b4",300000,24,6; } rent_mb,40,48,0 script rentbw5 45,1,1,{ callfunc "rent_entrada","b5",300000,24,6; } rent_mb,40,76,0 script rentbw6 45,1,1,{ callfunc "rent_entrada","b6",300000,24,6; } rent_mb,40,104,0 script rentbw7 45,1,1,{ callfunc "rent_entrada","b7",300000,24,6; } rent_mb,40,132,0 script rentbw8 45,1,1,{ callfunc "rent_entrada","b8",300000,24,6; } rent_mb,40,160,0 script rentbw9 45,1,1,{ callfunc "rent_entrada","b9",300000,24,6; } rent_mb,40,188,0 script rentbw10 45,1,1,{ callfunc "rent_entrada","b10",300000,24,6; } rent_mb,225,48,0 script rentbw11 45,1,1,{ callfunc "rent_entrada","b11",300000,24,6; } rent_mb,225,76,0 script rentbw12 45,1,1,{ callfunc "rent_entrada","b12",300000,24,6; } rent_mb,225,104,0 script rentbw13 45,1,1,{ callfunc "rent_entrada","b13",300000,24,6; } rent_mb,225,132,0 script rentbw14 45,1,1,{ callfunc "rent_entrada","b14",300000,24,6; } rent_mb,225,160,0 script rentbw15 45,1,1,{ callfunc "rent_entrada","b15",300000,24,6; } rent_mb,225,188,0 script rentbw16 45,1,1,{ callfunc "rent_entrada","b16",300000,24,6; } rent_mb,48,225,0 script rentbw17 45,1,1,{ callfunc "rent_entrada","b17",300000,24,6; } rent_mb,76,225,0 script rentbw18 45,1,1,{ callfunc "rent_entrada","b18",300000,24,6; } rent_mb,104,225,0 script rentbw19 45,1,1,{ callfunc "rent_entrada","b19",300000,24,6; } rent_mb,132,225,0 script rentbw20 45,1,1,{ callfunc "rent_entrada","b20",300000,24,6; } rent_mb,160,225,0 script rentbw21 45,1,1,{ callfunc "rent_entrada","b21",300000,24,6; } rent_mb,188,225,0 script rentbw22 45,1,1,{ callfunc "rent_entrada","b22",300000,24,6; } rent_mb,216,225,0 script rentbw23 45,1,1,{ callfunc "rent_entrada","b23",300000,24,6; } rent_mb,108,108,0 script rentbw24 45,1,1,{ callfunc "rent_entrada","b24",300000,24,6; } rent_mb,108,159,0 script rentbw25 45,1,1,{ callfunc "rent_entrada","b25",300000,24,6; } rent_mb,159,108,0 script rentbw26 45,1,1,{ callfunc "rent_entrada","b26",300000,24,6; } rent_mb,159,159,0 script rentbw27 45,1,1,{ callfunc "rent_entrada","b27",300000,24,6; } ========================================================================================================= How to change the Zeny to another item like PORING COINS? Any Pro can help? i have no idea on it -_-ll
  11. hi Sir i having problem on this [Error]: itemdb_readdb: Invalid format (Script column) in line 331 of "db/item_db2.txt" (item with id 30435), skipping. in my putty 30435,Fishing_Manual,Fishing_Manual,11,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "Fishing_Manual";},{},{}
  12. i think this @afk u need add on src command the npc just work
  13. @chaos92 i facing same problem as u the guild owner can keep break the emperium after follow those step. while if i follow AnnieRuru step in patch modified SRC i having error in battle.h my battle h #ifndef _BATTLE_H_ #define _BATTLE_H_ #include "mapreg.h" but in annieruru src is below #include "../common/mmo.h" #include "../config/core.h" #include "map.h" //ELE_MAX +#include "mapreg.h"
×
×
  • Create New...