Jump to content

Edwardlol

Members
  • Posts

    27
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    Spain

Edwardlol's Achievements

Poring

Poring (1/15)

0

Reputation

1

Community Answers

  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
×
×
  • Create New...