Jump to content

Kurofly

Members
  • Posts

    283
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Kurofly

  1. Hi there. I would like to make kind of a pet battle and leveling script which would allow you to get a pet and make it level up by battling other monsters in a special arena. To do so i would have to store all the current stats of the pet in variables and then use them to create the same pet but as a monster to make him fight another monster. The problem I have is that I can't figure out how I could modify the stats and atk of a monster which are already setted in the mob_db. So the only way out I found is to create a skill that I could use each time I want the monster to attack. Since what I want to do will be quite a piece of work, I want to make sure there is no simplier way do to it before starting it. So here is my question: is there anything in the source code which could allow me to change a defined monster stats and atk using it's GID? Or even changing these for the whole monsters with the same id? if someone is sure there's not, please notify me, that would help me out a lot. Thank you in advance!
  2. I guess it's simplier to get it directly from the monster command itself but thank you anyway, I'd have saved some time if I had known that .
  3. I tried that before I posted this topic but I couldn't download it from the official website.
  4. Hello there! I saw some cool egg sprites in the philippines ro website (for example here). Would it be possible to get these sprites? Thanks.
  5. I solved my problem If anyone ever wants to make monsters fight amongst themselves, here is what you need in order to do so: -open your server folder trunk/src/map/script.c and look for the monster function : BUILDIN_FUNC(monster) { look for this line : int mobid = mob_once_spawn(sd, m, x, y, str, class_, 1, event, size, ai); then replace it to these : int mobid = mob_once_spawn(sd, m, x, y, str, class_, 1, event, size, ai); script_pushint(st,mobid); Now the monster command returns the GID of the monster created -make two monster, one with an IA of 0 and the other with an IA of 1, and save their GID to use it later : .gid1 = monster ("prontera",153,170,"poring",1002,1,"",0,0); .gid2 = monster ("prontera",154,170,"drops",1113,1,"",0,1); You can now use all of the GID based commands and make an epic fight between a poring and a drops
  6. Hello rathena people ! I'm simply trying to make two monsters fight amongst themselves with the following script : prontera,155,175,4 script test 46,{ mes "[test]"; mes "Je vais invoquer deux monstres et tenter de les faire combattre ."; //I'm gonna spawn 2 mobs and make them fight each other if (select("ok:non") == 2) end; @gid1 = monster ("prontera",153,170,"poring",1002,1); @gid2 = monster ("prontera",155,170,"drops",1113,1); unitattack @gid1 , @gid2 , 1; unitattack @gid2 , @gid1 , 1; } When the monsters spawn, they run into each other. When they're on the same square they stop and turn into "I don't give a damn" mode, doing what they want again. I already followed this guide to have the GID based functions working and so the unitattack command returns 1(success). I also downloaded this patch as it seemed to be able to solve my problem but when I compiled my server I got errors (I'm running on rA 17706). If anyone could help me, I'd really appreciate it
×
×
  • Create New...