Jump to content

Edwardlol

Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by Edwardlol

  1. Hi guys, I'm creating a script that make the players use a progressbar before to equip something, I got this in clif.c: /// Removes an ongoing progress bar (ZC_PROGRESS_CANCEL). /// 02f2 void clif_progressbar_abort(struct map_session_data * sd) { int fd = sd->fd; WFIFOHEAD(fd,packet_len(0x2f2)); WFIFOW(fd,0) = 0x2f2; WFIFOSET(fd,packet_len(0x2f2)); //This function only triggers by abort, not by finish pc_setglobalreg( sd, "progressbar_abort", 1 ); //Whether the last progressbar aborted clif_displaymessage(sd->fd,"No te has podido equipar."); } And I have this on script.c BUILDIN_FUNC(progressbar) { struct map_session_data * sd = script_rid2sd(st); const char * color; unsigned int second; //When starting a new progressbar, this will be set to zero pc_setglobalreg( sd, "progressbar_abort", 0 ); if( !st || !sd ) return 0; st->state = STOP; color = script_getstr(st,2); second = script_getnum(st,3); sd->progressbar.npc_id = st->oid; sd->progressbar.timeout = gettick() + second*1000; clif_progressbar(sd, strtol(color, (char **)NULL, 0), second); return SCRIPT_CMD_SUCCESS; } As you can see I got a player global function on my script.c and clif.c , is there a way to call that function in a npc to check if it fails or not? Thanks! Bump, Still needed... !
  2. There is this error: script error on item_db_re line 538 need '(' * 538 : if(progressbar '"'0xFFFFFF",5;){ end; } else { unequip EQI_HAND_R; NP , Fixed : if(progressbar ("0xFFFFFF",5)){ dispbottom "Succeed."; end; } else { unequip EQI_HAND_R; } But there is another Error, is not entering else, some help here?
  3. Hi guys I'm just wandering how could I make that you have to cast some seconds to equip an item. Is there any way to do that or do I have to create a skill without effect and asign that to the item?
  4. This NPC may take a lot of time but I'm gonna tell you some tips and you can try to do it by yourself My tips for this NPC: Make a DB for save the points and update this with query_sql In the easy way of this script, you can make 10-20 quest and random one when a Pj request one. And in the party mode, just do quests using quest_db and setquest...
  5. Yeah but also when I check the quests it also don't work... :/ And it is DB thing EDIT: I Fix the DB Thing, if someone know how to fix the other thing just post, I have a 2012-04-10 Exe with the 2012-04-10 Lubs. Thank you all.
  6. HI everyone I'm having troubles with the quest_db or something. I have this on quest_db 6000,0,1271,30,1099,30,1211,30,"Misiones Gremiales - 1" And this on my script if(checkquest(6000,HUNTING) == 2)... But when the pj kill all monsters the db don't set the quests as "State = 2" So when I check it don't work. Also when I set the quests, before the pj kill a monster it looks like that: Argiope (0/92321321) Brilight (0/22366) ... When the pj kill a quest monster the quest get well, but if the pj reload It get bad again. Some ideas for fix it? Nobody can help?
  7. En unas horas mas actualizo este post para que vean el link Actualizo post: https://github.com/HerculesWS/Hercules/commit/c69e4b6cf853d31f18ef9c2f04d2bc965f4ad158 ¿Disculpa, funciona para Rathena o solo para hercules?
  8. Okey I understand now, You have 2 WOE Days, Try to make npc warps and with OnDay: and OnClock: use Enablenpc and disablenpc, don't forgot to set OnInit: too.
  9. How could I remove the warps to the castles that aren't running, but enable them when they're running? AgitStart enables all castles, so how could I enable just one castle, while keeping others disabled? If you don't allow the people go in to the castle you don't need to disable the castles o,o How'd you disable the warps to the castle? o_o Disable the warps for one woe, but enable them on the next woe.. Making any sense? Do you want just disable the warps for woe? o,O
  10. How could I remove the warps to the castles that aren't running, but enable them when they're running? AgitStart enables all castles, so how could I enable just one castle, while keeping others disabled? If you don't allow the people go in to the castle you don't need to disable the castles o,o
  11. I always prefer to remove the warps to the castles and the flags :/
  12. That send me a db bug when I write "test" in to the input. http://imageshack.us/photo/my-images/547/sinttuloqlp.png/ input .@amigo1$; query_sql "SELECT online FROM `char` WHERE `name` = "+.@amigo1$,.@amigo1[0]; And I have that. EDIT: I put query_sql "SELECT online FROM `char` WHERE `name` = "+"'"+.@amigo1$+"'",.@amigo1[0]; And then it work, very thank you
  13. There is a input .@amigo1$; I want to SELECT that variable in to my query_sql
  14. I don't understand it :/ Can you make a example with my data? I put query_sql "SELECT online FROM `char` WHERE `name` = " +.@amigo1$,.@amigo1[0]; and still got the same error.
  15. I'm having a problem with this: input .@amigo1$; query_sql "SELECT online FROM `char` WHERE name = " +.@amigo1$,.@amigo1[0]; The script load without problems but when I test it and for example write "test" in .@amigo1$ it happen: http://imageshack.us/photo/my-images/10/sinttulokui.png/ I hope you can help :/
  16. Hi guys, I'm having a problem with this: hu_fild06,0,0,5 script Veta#nv1::M1 1784,{ I don't have any npc error when I load it but I can't see the npc arround the map. I want to set a random npc location. Can anybody help?
  17. Ya he dicho que uso ese mismo cliente y aun así salen letras en Koreano... ¿Alguna ayuda más?
  18. Vale, haga lo que haga no dejan de salirme letras en Koreano he probado este cliente/data (http://rathena.org/board/topic/54190-release-basic-rathena-client/) y aun así me sale en Koreano, ¿El problema esta con mi pc? Si me puedes ayudar, no tengo problema en dejarte revisar mi carpeta con herramientas como teamviewer y te lo agradecería mucho.
  19. Hi all I find a problem with my computer or something, I use this data client ( http://rathena.org/board/topic/54190-release-basic-rathena-client/ ) for test my new RO, and when I started it all looks in korean, the data is ok so the problem is with my computer? Please ask me as soon as possible , thank you!
  20. Todo el entorno gráfico del cliente se maneja en el grf, desde cada barra de título azul, hasta el fondo de un mensaje, y desde luego, los botones del juego. Lo que debes hacer para traducirlo es incluir a tu grf las versiones traducidas del Basic Interface, que nada mas son un conjunto de imágenes en formato bmp y que indican en inglés que es cada cosa. En este proyecto de traducción puedes encontrar todos esos archivos bajo la ruta data exture\À¯ÀúÀÎÅÍÆäÀ̽º y basic interface: http://svn6.assembla...n_Project/data/ Ya, entiendo. Si no quiero hacer funcionar un .grf por que aun no quiero empaquetar lo por las próximas modificaciones que puede tener la carpeta, ¿no funcionara? He oído que algunos exes ya no funcionan con la carpeta data y que solo funcionan con la data.grf (Mi exe es el de 20101124 ) ¿Tengo la data.ini bien puesta?
  21. Buenos días como siempre que quiero empezar a crear un servidor de ragnarok online, me encuentro con fallos en el .exe y en mi data (No se me da bien, ¿Vale?) Vengo a pedir un poco de ayuda en los siguientes temas: - Creo un exe y uso datas en ingles , pero sin embargo en vez de salirme "Login y Password" me salen letras en koreano (En el exe, la opción de traducir esta marcada), dentro del juego el menú del escape también sale en Koreano. - Mi exe 2011-03-15aRagexeRE.exe, no loguea (Por los packets supongo, pero no me acuerdo de como se arreglaba...) ACTUALIZADO --> Duda de los packets solucionada. - Al loguear, no me deja hablar, es decir, el boton intro no funciona. (Si que puedo escribir). ACTUALIZADO --> Solucionado, problema de los lua files - Creo que mi data.ini esta bien puesta, pero que me digan si lo está o no, sería de gran ayuda: - Mi exe aparece siempre modo ventana 800 x 600 haga lo que haga, ¿Alguien sabe por que? ACTUALIZADO -->Problema de la setup Y creo que eso es todo por ahora... Muchas gracias de antemano!
×
×
  • Create New...