fiction

Members
  • Content count

    41
  • Joined

  • Last visited

1 Follower

About fiction

  • Rank
    Advanced Member
  • Birthday 07/05/93

Profile Information

  • Gender
    Male
  • Location:
    Santiago, Chile
  • Emulator:
    Hercules
  1. jolaperras
  2. UP
  3. Thank you for the response and sorry for the delay of my answer. I've tried your tips, and the only problem that i continue having is the HP storage of the mob. Now the change are working perfectly, but the transfer of the previous HP of the mob isn't working. For example, 1.- The monster 3500 has 1 milion of HP. 2.- Recive 100,000 damaged. The HP now is 900,000 3.- The monster changed its element (Mob 3501). 4.- The new monster obtain 900,000 HP, because it was the previous HP of the mob (3500), and so on. Here is the script: 1@def01,50,50,4 script asdasd 4_NFWISP,{ donpcevent("#fff::OnStart"); } 1@def01,1,5,3 script #fff CLEAR_NPC,{ OnStart: .GID = monster ("1@def01", 50, 55, _("--ja--"), 3500, 1, "DarkThanatos::OnDead"); initnpctimer "fff#Start"; initnpctimer; set .temp, getcharid(0); set @temp, getcharid(0); end; OnTimer6000: // Utiliza 'getunitdata' en vez de 'getmonsterinfo' .@max_hp = getunitdata( .GID,UDT_MAXHP ); .@hp = getunitdata( .GID,UDT_HP ); //Mob 3500 + rand(1,4) .@element = rand( 1,4 ); //Array de los 4 elementos setarray(.@element$[1], "Fire", "Earth", "Water", "Wind"); // TODO: required mob controller script commands or other alternatives workaround. getmapxy(.@mapname$, .@mapx, .@mapx, UNITTYPE_MOB, .GID); // Mata al monstruo después de obtener su posición killmonsterall "1@def01"; .GID = monster( .@mapname$,.@mapx,.@mapx,"--ja--",3500+.@element,1,"DarkThanatos::OnDead" ); setunitdata( .GID,UDT_HP,.@hp ); setunitdata( .GID,UDT_MAXHP,.@max_hp ); initnpctimer; // Simplificar el uso de 'switch' mapannounce "1@def01","MOB changed to "+.@element$[.@element]+" element!",bc_map; end; } Big thanks in advance !.
  4. UP
  5. Hi, I need some help to make a mob change the appareance every 25 sec, and store the previous HP and position. Is similar to Facewrom, This is that i have currently, but have error when i try to spawn the mob in the previous position. 1@def01,50,50,4 script asdasd 4_NFWISP,{ donpcevent("fff#Start::OnStart"); } 1@def01,0,0,0 script fff#Start HIDDEN_NPC,{ OnStart: .@GID = monster ("1@def01", 50, 55, _("--ja--"), 3500, 1, "DarkThanatos::OnDead"); initnpctimer "fff#Start"; initnpctimer; end; OnTimer6000: killmonsterall "1@def01"; .@max_hp = getmonsterinfo( 3500,UDT_MAXHP ); .@hp = getmonsterinfo( 3500,UDT_HP ); .@element = rand( 3501,3504 ); // TODO: required mob controller script commands or other alternatives workaround. getmapxy(@mapname$, @mapx, @mapx, UNITTYPE_MOB); .@GID = monster( @mapname$,@mapx,@mapx,"--ja--",.@element,1,"DarkThanatos::OnDead" ); setunitdata( .@GID,UDT_HP,.@hp ); setunitdata( .@GID,UDT_MAXHP,.@max_hp ); initnpctimer; switch ( .@element ) { case 3501: mapannounce "1@def01","MOB changed to Fire element!",bc_map; break; case 3502: mapannounce "1@def01","MOB changed to Earth element!",bc_map; break; case 3503: mapannounce "1@def01","MOB changed to Water element!",bc_map; break; case 3504: mapannounce "1@def01","MOB changed to Wind element!",bc_map; break; } end; OnMyMobDead: end; OnDead: end; } [Error]: script_rid2sd: fatal error ! player not attached! [Debug]: Function: monster (7 parameters): [Debug]: Data: variable name='@mapname$' index=0 [Debug]: Data: variable name='@mapx' index=0 [Debug]: Data: variable name='@mapx' index=0 [Debug]: Data: string value="--ja--" [Debug]: Data: variable name='.@element' index=0 [Debug]: Data: number value=1 [Debug]: Data: string value="DarkThanatos::OnDead" [Debug]: Source (NPC): DarkThanatos2#Start at 1@def01 (0,0) [Warning]: script_get_val: cannot access player variable '@mapname$', defaulting to "" [Error]: script_rid2sd: fatal error ! player not attached! [Debug]: Function: monster (7 parameters): [Debug]: Data: string value="" [Debug]: Data: variable name='@mapx' index=0 [Debug]: Data: variable name='@mapx' index=0 [Debug]: Data: string value="--ja--" [Debug]: Data: variable name='.@element' index=0 [Debug]: Data: number value=1 [Debug]: Data: string value="DarkThanatos::OnDead" [Debug]: Source (NPC): DarkThanatos2#Start at 1@def01 (0,0) [Warning]: script_get_val: cannot access player variable '@mapx', defaulting to 0 [Error]: script_rid2sd: fatal error ! player not attached! [Debug]: Function: monster (7 parameters): [Debug]: Data: string value="" [Debug]: Data: number value=0 [Debug]: Data: variable name='@mapx' index=0 [Debug]: Data: string value="--ja--" [Debug]: Data: variable name='.@element' index=0 [Debug]: Data: number value=1 [Debug]: Data: string value="DarkThanatos::OnDead" [Debug]: Source (NPC): DarkThanatos2#Start at 1@def01 (0,0) [Warning]: script_get_val: cannot access player variable '@mapx', defaulting to 0 [Debug]: mapindex_name2id: Map "" not found in index list! [Warning]: buildin_monster: Attempted to spawn monster class 3502 on non-existing map '' [Debug]: Source (NPC): DarkThanatos2#Start at 1@def01 (0,0) Greetings.-
  6. Hello, Who can help me with an npc that restrict all the mvp cards in a certain map. I have an idea with the sql, but i don't know how to do it more perfectly. This is that i'm looking for: If a player enter in the map that is restricted a message will appear informing that the mvp cards isn't allowed. .mvpcards = query_sql("select item_db.id from item_db right join mob_db on item_db.id = mob_db.dropcardid where mexp > 0 and type = 6 group by name_japanese;", .idmvpcard); Greetings.- !
  7. Thank you, now its working !
  8. Hi, I want to know how to make this square as basilica. I know can do it witth setcell and flag basilica, but can not understand how to use x, y and x2, y2. Map: ordeal_3-2,155,154
  9. Help, can't make compatible with herc and can't convert to a plugin src found: https://github.com/zephyrus-cr/eamod/blob/master/Servers/rAthena/src/map/atcommand.c#L8469 https://github.com/zephyrus-cr/eamod/blob/master/Servers/rAthena/src/map/mob.c#L2871 https://github.com/zephyrus-cr/eamod/blob/master/Servers/rAthena/src/map/script.c#L10170
  10. Hi Herc, Can someone please make a plugin for mobevent from eamod? syntax: mobevent <map>,<x>,<y>,<fakename>,<mobid>,<size>,<amount>,<teamid>,<showhp>,<increasehp>,<allied>,<noslaves>,<noexpnodrop>,<poringcoins>,<event> https://github.com/zephyrus-cr/eamod/blob/master/Servers/rAthena/src/map/script.c#L10170 Greetings.-
  11. Intenta con lo siguiente: http://herc.ws/board/topic/3204-special-shopimplement-it-in-hercules/
  12. Just because rAthena may have it, doesn't mean anything that 'Herc' is dead. The developers are always active in the repository... you would notice if you stopped and visited it sometime rather than replying with something that has no context in this topic or anywhere else for that matter. i was just kidding, i'm still using herc.
  13. Herc is dead.
  14. Come back @ind