Jump to content

AnnieRuru

Members
  • Posts

    2044
  • Joined

  • Last visited

  • Days Won

    51

Everything posted by AnnieRuru

  1. AnnieRuru

    DoTA Runes

    change this line while( .RuneDelay > gettimetick(2) ) sleep2 1000; the sleep2 change into sleep while( .RuneDelay > gettimetick(2) ) sleep 1000; http://www.eathena.ws/board/index.php?s=&showtopic=237268&view=findpost&p=1295622\
  2. I have updated the script to 1.4a hidden here weird, I thought I already made it kill all the monsters inside upon renting a room warp "06guild_0"+ .@room, 0,0; killmonsterall "06guild_0"+ .@room; donpcevent "MVP Summoner#"+ .@room +"::OnEnterMap"; end; and // If the room has left over monsters while nobody in the room and the room not give up yet, shall we kill monsters in empty room ? set .killmonster, 1; // Default is yes the default setting is yes, you set it to 0 and then claim you edited the script to kill left over monster ?
  3. explain what is 'eliminate the opponent team'I've already made battleground script with winning conditions of 1. kill enemy team players earn 1 point, accumulate 30 points to win 2. kill enemy team players earn 1 point, after 30 mins the team with most points win 3. capture a location flag, the more flags the team capture, accumulate more resources, when resources hit 100 points, the team wins 4. kill enemy team emperium to gain 1 point, the 1st team earns 2 points win the match or if you suggest other ideas than this one ... or else I'm lazy to write
  4. https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/conf/mapflag/nopvp.txt
  5. https://rathena.svn...._job_system.txt JOBL_2 is 0x300 change JOBL_2 into JOBL_2_1|0x0D means only MAPID_DEATH_KNIGHT can get that status value ... I can't believe you can't figure out ...
  6. so what you are asking is you want a new script command to remove the previous mes message without using a next; script command ? I don't think RO client can do that either RO client is just accepting a packet from server and display the message below the previous line *mes script command is just send message to the client, and client automatically display on new line like text file *next command is just send a packet to tell the client, and the client itself clear the dialog box I guess you should read clif.c more .... there is no such feature in RO such as clear a single line from a dialog box as RO client doesn't record the value of each new message
  7. submenu1: mes "[" + @name$ + "]"; if(EP7_LANGUE == 0) {mes "Le sommeil vient vite, vous dormez profondement ..."; sleep2 2000; mes "D'étranges visions, comme un rêve ..."; sleep2 2000; mes "Une spirale vous entraine ..."; close2; warp "ars_dun21",152,99; end; } if(EP7_LANGUE == 1) {mes "Sleep comes quickly, you sleep deeply ..."; sleep2 2000; mes "Some strange visions, like a dream ..."; sleep2 2000; mes "A spiral leads you ..."; close2; warp "ars_dun21",152,99; end; } if(EP7_LANGUE == 2) {mes "El sueño te cae de golpe, y duermes profundamente ..."; sleep2 2000; mes "Algunas visiones extrañas, como en un sueño ..."; sleep2 2000; mes "Una espiral te conduce ..."; close2; warp "ars_dun21",152,99; end; } if(EP7_LANGUE == 5) {mes "O sono está vindo rápido, de leve..."; sleep2 2000; mes "Algumas visões estranhas, como um sonho..."; sleep2 2000; mes "Algo está me chamando..."; close2; warp "ars_dun21",152,99; end; } if you mean this ... no I don't think Vach is talking about this ... you're talking about prontera,151,178,5 script Yoda 100,{ mes "close your eyes ...."; sleep2 1000; mes "feel your surrounding ...."; sleep2 1000; mes "... the force is within you ..."; sleep2 1000; unitkill getcharid(3); // haha I like to play joke XD end; } this ? XD
  8. prontera,151,178,5 script kjsdhfdsf 100,{ mes "select 'Get ME!' at correct seconds to get the most red potions !"; mes "choose it at 14:03:01 will get 1 red potion"; mes "choose it at 14:03:20 will get 20 red potions"; mes "choose it at 14:03:59 will get 59 red potions !!"; next; while (1) { select gettimetick(2) +"", gettimestr("%Y-%m/%d %H;%M;%S%p",40), // if you mean refresh this one ... nope, impossible "Get ME!!"; if ( @menu == 3 ) { getitem 501, gettime(1); mes "You get "+ gettime(1) +" Red potions"; close; } } close; // doesn't read } now I wonder what @M45T3R is talking about .... what is 1st quest ? http://aerie-pinkpanther.googlecode.com/svn/Dragormina/Server/npc/Arsinoe/Quetes/ I see so many script file here
  9. http://www.eathena.w...dpost&p=1459658 ROFL !! now only I know THIS is already a famous modification ... I thought he was asking for something new .... lol now I feel like a noob ... xD int buildin_recallmap_sub( struct block_list* bl, va_list ap ) { struct map_session_data *sd = (struct map_session_data *)bl; int m = va_arg(ap,int); int x = va_arg(ap,int); int y = va_arg(ap,int); pc_setpos( sd, m, x, y, CLR_TELEPORT ); return 0; } ACMD_FUNC(recallmap) { int m; char aaa[255]; nullpo_retr(-1, sd); if ( !message || !*message ) m = sd->bl.m; else if ( ( m = map_mapname2mapid(message) ) < 0 ) { clif_displaymessage( fd, "Please, enter a valid map name (usage: @recallmap <map name>)."); return -1; } if ( map[sd->bl.m].flag.nowarpto && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE) ) { clif_displaymessage( fd, "You are not allow to use this command on this map" ); // somehow I feel this command should only be use by GMs return -1; } map_foreachinmap( buildin_recallmap_sub, m, BL_PC, sd->mapindex, sd->bl.x, sd->bl.y ); sprintf( aaa, "All players from %s has recall to your position", mapindex_id2name( map[m].index ) ); clif_displaymessage( fd, aaa ); return 0; } that wake them up is not needed because now pc_setpos will revive them automatically http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=3227
  10. I'm noob in C, but from what I understand sd->bl.m bl means block list since pc_setpos asked for sd, I called it back to the family I copy-paste it from skill.c line 14165 int skill_frostjoke_scream (struct block_list *bl, va_list ap) ....... if (bl->type == BL_PC) { struct map_session_data *sd = (struct map_session_data *)bl; if ( sd && sd->sc.option&(OPTION_INVISIBLE|OPTION_MADOGEAR) ) return 0;//Frost Joke / Scream cannot target invisible or MADO Gear characters [ind] } thx, I'll keep that in mind
  11. now I'm interested to know what is this struct conversion... how can his compiler throw error on static int in atcommand.h ... but ours doesn't ? I just don't understand how kamoteka's compiler can be different from us and I also know how to do that struct s_mapiterator* iter; though I will try to avoid using that because it loop through all online users, just, to me map_foreachinmap looks more optimized @kamoteka, can you tell what kind of compiler you are using ? then I'll avoid writing this map_foreachinmap or map_foreachpc for future reference
  12. @Vach yes, keyworld already explained in that topic in other programming language 0 && select("1") it shouldn't execute the select command, but in rathena script engine it just simply EXECUTE the select("1") for no reason <-- yeah our script engine sux forced our rathena script to be unoptimized garet999 must have learned java or other programming language and assume rathena script engine do the same thing, but in truth it wasn't @Ryokem your script doesn't work [Warning]: script:getelementofarray: index out of range (-3) [Debug]: Data: variable name='.@a$' index=0 [Debug]: Source (NPC): testest at prontera (156,180)
  13. prontera,156,180,5 script testest 100,{ setarray .@a$, "one", "two", "three", "four"; select "1:2:3:4"; // dispbottom ( (@menu == 4)? .@a$[@menu-4] : (@menu == 3)? .@a$[@menu-2] : .@a$[@menu] ); // BUG if ( @menu == 4 ) dispbottom .@a$[@menu-4]; else if ( @menu == 3 ) dispbottom .@a$[@menu-2]; else dispbottom .@a$[@menu]; close; } yeah I know rathena script engine sux ... I understand how you feel ... because I feel the same ... http://www.eathena.ws/board/index.php?s=&showtopic=272063&view=findpost&p=1501026
  14. map.h #define JOBL_2_1 0x100 //256 #define JOBL_2_2 0x200 //512 #define JOBL_2 0x300 #define JOBL_UPPER 0x1000 //4096 #define JOBL_BABY 0x2000 //8192 #define JOBL_THIRD 0x4000 //16384 //First Jobs //Note the oddity of the novice: //Super Novices are considered the 2-1 version of the novice! Novices are considered a first class type, too... enum { //Novice And 1-1 Jobs MAPID_NOVICE = 0x0, MAPID_SWORDMAN, MAPID_MAGE, MAPID_ARCHER, MAPID_ACOLYTE, MAPID_MERCHANT, ......... .... feel lazy to explain anyway you look at the file you might figure out yourself MAPID_NOVICE = 0x0, MAPID_SWORDMAN, // <-- 0x1 ... MAPID_CRUSADER = JOBL_2_2|0x1, MAPID_SAGE, // <-- 0x202 ... MAPID_ROYAL_GUARD = JOBL_THIRD|JOBL_2_2|0x1, MAPID_SORCERER,// <-- 0x4202 ... they are in hex value
  15. http://www.eathena.w...howtopic=177722 I just tested on rAthena script engine, seems to be the same you can just forget about autobonus and just summon it like npc way does
  16. please use 1 of this sites http://rathena.org/board/forum-28/announcement-2-list-of-scriptfile-hosting-sites/
  17. switch (display_type) { case 2: { StringBuf_Printf(&buf, msg_txt(343), pl_sd->status.name); // "Name: %s " // if (pc_get_group_id(pl_sd) > 0) // Player title, if exists // StringBuf_Printf(&buf, msg_txt(344), pc_group_id2name(pc_get_group_id(pl_sd))); // "(%s) " StringBuf_Printf(&buf, msg_txt(347), pl_sd->status.base_level, pl_sd->status.job_level, job_name(pl_sd->status.class_)); // "| Lv:%d/%d | Job: %s" break; } case 3: { if (pc_has_permission(sd, PC_PERM_WHO_DISPLAY_AID)) StringBuf_Printf(&buf, msg_txt(912), pl_sd->status.char_id, pl_sd->status.account_id); // "(CID:%d/AID:%d) " StringBuf_Printf(&buf, msg_txt(343), pl_sd->status.name); // "Name: %s " // if (pc_get_group_id(pl_sd) > 0) // Player title, if exists // StringBuf_Printf(&buf, msg_txt(344), pc_group_id2name(pc_get_group_id(pl_sd))); // "(%s) " StringBuf_Printf(&buf, msg_txt(348), mapindex_id2name(pl_sd->mapindex), pl_sd->bl.x, pl_sd->bl.y); // "| Location: %s %d %d" break; } default: { struct party_data *p = party_search(pl_sd->status.party_id); struct guild *g = guild_search(pl_sd->status.guild_id); StringBuf_Printf(&buf, msg_txt(343), pl_sd->status.name); // "Name: %s " // if (pc_get_group_id(pl_sd) > 0) // Player title, if exists // StringBuf_Printf(&buf, msg_txt(344), pc_group_id2name(pc_get_group_id(pl_sd))); // "(%s) " if (p != NULL) StringBuf_Printf(&buf, msg_txt(345), p->party.name); // " | Party: '%s'" if (g != NULL) StringBuf_Printf(&buf, msg_txt(346), g->name); // " | Guild: '%s'" break; } } just comment them
  18. OnTimer1000: getmapxy(.@mapname$,.@mapx,.@mapy,1,"Deviling#prace4"); if (rand(100) < $prace_random) npcwalkto .@mapx-1,.@mapy; stopnpctimer;// <-- ADD THIS setnpctimer rand($prace_random2); startnpctimer; if ((.@mapx-1) == 29) { set $prace_winner$,"Deviling"; emotion 29; donpcevent "Race Manager#prace0::OnStopRace"; } end; the reason is rathena script engine updates, now if we want to setnpctimer, have to stopnpctimer 1st but well, I tested even I made that fix, it has some other bugs .... so I think ... just give up that script zell_ff8 and masao already inactive
  19. http://www.eathena.ws/board/index.php?s=&showtopic=276668&view=findpost&p=1517202
  20. what is reference .. ? xDsry but I'm noob in source coding, seriously -> ps . click here lol what I did is just used my experience in eathena scripting and do cut-copy-paste and make it work seriously, I'm interested to know why these functions in script.c buildin_areawarp_sub buildin_areapercentheal_sub buildin_announce_sub and some others don't need to declare them inside script.h, but when I write my own I have to declare in script.h
  21. if I remove the atcommand.h part my visual express pop up this message .. 1>d:\eathena\rathena sql 16819\src\map\atcommand.c(8828): error C2065: 'buildin_recallmap_sub' : undeclared identifier 1>d:\eathena\rathena sql 16819\src\map\atcommand.c(8828): warning C4047: 'function' : 'int (__cdecl *)(block_list *,va_list)' differs in levels of indirection from 'int' 1>d:\eathena\rathena sql 16819\src\map\atcommand.c(8828): warning C4024: 'map_foreachinmap' : different types for formal and actual parameter 1 weird though, I've been doing like this for years http://www.eathena.w...dpost&p=1500993 and somehow for some default function like buildin_areawarp_sub in script.c doesn't assign in script.h, I've no idea why
  22. I think you got from here ... a post in 2008 http://www.eathena.ws/board/index.php?s=&showtopic=162107&view=findpost&p=1064448 you should try this one ... made in 2010 http://www.eathena.ws/board/index.php?showtopic=251477
  23. @Euphy BaseLevel < 10 or getskilllv("NV_BASIC") < 9 ? he said 'novice job lv 10 talk to this npc' @Valiente prontera,152,177,5 script kjdshfkshfj 121,{ dispbottom jobname( Job_Bard ); jobchange job_bard; } it seems that even I'm female class, I click this npc it shows Bard, but I become dancer but yeah I know what u saying
  24. recallmap.diff no comment .... EDIT: forgot to remove the debugging message lol
  25. sometimes map file is broken, blame the map designer xD ... well the true reason is BrowEdit is not a godlike program ... it crash the map file time to time how about you upload hallow map here and we test for you
×
×
  • Create New...