Jump to content

Nerfwood

Members
  • Posts

    104
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Nerfwood

  1. Use the OnClock<time>, label and then set an npc-only variable to disable access to the said rooms. Sample: OnClock2000: set .partyonly,1; announce "1v1 and No Party PvP rooms have been closed.",bc_all; end; OnClock2300: set .partyonly,0; announce "1v1 and No-Party PvP rooms are now open.",bc_all; end; Then, add an if statement: switch( select( "PVP No Party ["+getmapusers("guild_vs3")+"]", "PVP Normal ["+getmapusers("Party_PvP")+"]", "PVP 1 vs 1 ["+getmapusers("1vs1_PvP")+"]" ) ){ Case 1: if(.partyonly) { mes "This PvP room is currently closed. Please comeback later."; close; } warp "guild_vs3",0,0; break; Case 2: warp "Party_PvP",0,0; break; Case 3: if(.partyonly) { mes "This PvP room is currently closed. Please comeback later."; close; } if( getmapusers("1vs1_PvP") > 1 ){ mes "Room Full"; }else{ warp "1vs1_PvP",40,34; } break; } close; You can also disable the rooms by making the menu as a variable instead, then change its value with the OnClock label. I haven't tested that yet though.
  2. When the player doesn't have any items equipped, it won't be displayed on the menu. Thus, it's impossible for the refine ticket to be consumed. Also, the function you quoted only checks if the item is within the allowable refine range. If there's no item, then that argument won't be called. Here's an example of that usage: let's say your defined minimum refine rate is 5 and the max is 8. If you have a +3 item, then you cannot refine that item because it doesn't meet the minimum requirement. Same with a +9 item. The min/max refine range can be defined at arg2 and arg3, as explained in the script. callfunc( "RefineFunc",<arg1>,<arg2>,<arg3>,<arg4>,<arg5>,<arg6>,<arg7>,<arg8>{,<arg9>,<arg10>} ); I'm as lazy as I'm interested on doing this, so I'm sorry. It seems fun to code, though. I'll try to code this one if nobody provided you within a week or so.
  3. Ohhh.. I see. I thought you mean the space in between words. Anyway, that seems to be an old script. Are you using rAthena? If so, there's already a working disguise script that is included in your rathena directory. It's located in npc/custom/events.
  4. Can you explain? It seems that the ticket is consumed only when you confirm it. Add the following command below the getitem2 line: equip .@equip_id;
  5. Not sure if you can make monsters unkillable, but you can disguise an NPC as a monster by using the mob's ID as the NPC's sprite ID. Then, you can use the script command npcwalkto to make the NPC walk. Here's a working sample: jupe_ele,42,47,4 script Poring#1 1002,{ OnInit: initnpctimer; OnTimer5000: getmapxy( .map$, .x, .y, 1, strnpcinfo(0) ); set .x, .x+ rand(1,7) - rand(1,13); set .y, .y+ rand(1,7) - rand(1,13); npcwalkto .x, .y; initnpctimer; } You can then just duplicate it as many as you like. You should also take note that the NPC may not always be able to move every 5 seconds since the random coordinates may be unwalkabe. (To be honest, I don't know if this is the best idea.)
  6. I believe it depends on what you put when you patched/diffed your client, but it's usually in the system folder. Edit: Mine is in the system folder, but yours can be in your root directory,
  7. Use the if statement, and the constant BaseLevel. if(BaseLevel<150) { mes "Don't talk to me. You are too weak"; close; } mes "Do you want to get cool items?"; The code above restricts players below Lvl 150 from accessing the rest of the script. I suggest you check this link if you're new to scripting. Also, make sure to read the script_commands.txt in the doc folder to know all the functions used for scripting. There are many quest scripts in the forum, just search for them. If it doesn't have a BaseLevel checker, you can just add the codes provided above at the top of the script (but below the function declarations). Then, remove the mes "Do you want...". There are some scripts, however, that doesn't start from the top, and starts from a specific label. On that case, just add the BaseLevel checker on that label.
  8. If you're using newer clients (2013+), then you should edit the ItemInfo.lua (or lub) file instead of those .txt files. Hope this helps.
  9. That's an obsolete setting. You can now add(or remove) which skills you want to be copied at skill_copyable_db.txt (in your db folder). Make sure to edit it your import folder instead of the main file so it won't be affected when you upgrade your files using git.
  10. Use the item_noequip.txt in your db/import folder. So, just add the following in the said file: 4198,4 Make sure to use @reload item for the changes to take effect. Edit: The above statement also disables the card in other GvG Maps. If you don't want those to be affected, add a restricted zone mapflag to the castles, and change the flag in the db folder accordingly. Example: Script file: prtg_cas01 mapflag restricted <zone> Let's say the zone you used is 5, so you will be using 512 as your flag in the item_noequip.txt (there's an explanation in the file). item_noequip.txt 4198,512
  11. Maybe use the search function next time? http://rathena.org/board/topic/82370-costume-npc-and-costumeitem/
  12. I don't think that's a bug (wrong-spelling-is-wrong rule). lol
  13. You can do it by using the freeloop command and then use sleep. The following code will display effect #70 every 0.5 secs after it's loaded. OnInit: freeloop(1); while(!.xxx) { specialeffect 70; sleep 500; }
  14. You can use the F_Rand function in /npc/other/Global_Functions.txt . mes callfunc("F_Rand","Mes 1","Mes 2");
  15. Ok.. so the bug is with using the /* */ comment in the db files. Weird... it used to work before lol Actually, it can run on 512 MB RAM if the OS is a Linux Distro.
  16. Can anyone help me? There are no other error messages so I don't know what the hell is happening lol. [Status]: Done reading '0' entries in 'db/import/item_trade.txt'. [Status]: Done reading '0' entries in 'db/import/item_delay.txt'. [Status]: Done reading '0' entries in 'db/import/item_buyingstore.txt'. [Status]: Done reading '0' entries in 'db/import/item_flag.txt'. [Status]: Done reading '0' entries in 'db/re/item_cash_db.txt'. Segmentation fault [~~~~@~~~~ rathena]# It just keeps on doing like that right after the item_cash_db.txt, which has some codes. So what I did was to remove those, but the problem still persists. [Status]: Done reading '0' entries in 'db/import/item_delay.txt'. [Status]: Done reading '0' entries in 'db/import/item_buyingstore.txt'. [Status]: Done reading '0' entries in 'db/import/item_flag.txt'. Segmentation fault item_flag.txt doesn't contain anything. I have reinstalled rAthena several times to no avail. (I'm using the latest version.) Please advice.
  17. Can anyone help please? CC trade.c CC unit.c CC vending.c LD map-server collect2: ld returned 1 exit status make[1]: *** [map-server] Error 1 make[1]: Leaving directory `/root/rathena/src/map' make: *** [map] Error 2 [root@animecorner-ro rathena]# I have already tried using ./configure and make clean before using make sql/make server.
  18. Not sure what's happening here since I didn't change anything with the file (using latest clone). ERROR: CC clif.c clif.c: In function âclif_additemâ: clif.c:2256: error: âBOUND_DISPYELLOWâ undeclared (first use in this function) clif.c:2256: error: (Each undeclared identifier is reported only once clif.c:2256: error: for each function it appears in.) clif.c: In function âclif_item_sub_v5â: clif.c:2325: error: âBOUND_DISPYELLOWâ undeclared (first use in this function) make[1]: *** [obj/clif.o] Error 1 make[1]: Leaving directory `***********' make: *** [map] Error 2 clif.c WBUFL(buf,n+22) = it->expire_time; WBUFW(buf,n+26) = it->bound ? BOUND_DISPYELLOW : 0; //bindOnEquipType WBUFW(buf,n+28) = (id->equip&EQP_VISIBLE) ? id->look : 0; #if PACKETVER >= 20071002 /* Yellow color only for non-stackable item */ WFIFOW(fd,offs+27)=(sd->status.inventory[n].bound && !itemdb_isstackable(sd->status.inventory[n].nameid)) ? BOUND_DISPYELLOW : 0; #endif } Can anyone help? I don't have any clue on what to do.
  19. Anyone using this CP? Would like to change into this one. My server (using Flux) just got hacked lol!
  20. Is there a guide on how to add custom auras/effects through this?
  21. But doesn't autobonus only work for the invoking character?
  22. Woah! Thanks a lot Never thought about the skill database.
  23. I can't seem to find what to edit. I'd just like to increase the maximum units to 6~10 since players can only cast up to three which makes the skill pretty much useless since it's easy to dodge. I'm currently looking at skill.c but I don't know what to edit. Not sure if that is even the correct place lols.
  24. case GN_SPORE_EXPLOSION: skillratio += 400 + (300 * skill_lv) + (sstatus->str * 10) -100; break; Ok so I added a "-100" after the formula and now it works.
×
×
  • Create New...