Jump to content

xazax

Members
  • Posts

    427
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by xazax

  1. Try this one. I could not test it, because I created this patch in my workplace, and I don't have a client here , hope it works. Index: conf/msg_athena.conf =================================================================== --- conf/msg_athena.conf (revision 16084) +++ conf/msg_athena.conf (working copy) @@ -531,7 +531,7 @@ 616: Taekwon 617: Star Gladiator 618: Soul Linker -//619: FREE +619: You can not open a shop close to an npc. //620: FREE 621: Summer 622: Gangsi Index: src/map/clif.c =================================================================== --- src/map/clif.c (revision 16084) +++ src/map/clif.c (working copy) @@ -11654,7 +11654,17 @@ sd->vended_id = 0; } +/// Function to check visible NPCs +static int check_npc_near_sub(struct block_list* bl, va_list args) +{ + TBL_NPC* nd = (TBL_NPC*)bl; + if( nd->sc.option&(OPTION_HIDE|OPTION_INVISIBLE) ) + return 0; + + return 1; +} + /// Confirm or cancel the shop preparation window. /// 012f <packet len>.W <shop name>.80B { <index>.W <amount>.W <price>.L }* (CZ_REQ_OPENSTORE) /// 01b2 <packet len>.W <shop name>.80B <result>.B { <index>.W <amount>.W <price>.L }* (CZ_REQ_OPENSTORE2) @@ -11674,6 +11684,10 @@ clif_displaymessage (sd->fd, msg_txt(276)); // "You can't open a shop on this map" return; } + if ( flag && map_foreachinrange(&check_npc_near_sub,&sd->bl, 3, BL_NPC) > 0) { + clif_displaymessage (sd->fd, msg_txt(619)); + return; + } if( map_getcell(sd->bl.m,sd->bl.x,sd->bl.y,CELL_CHKNOVENDING) ) { clif_displaymessage (sd->fd, msg_txt(204)); // "You can't open a shop on this cell." return;
  2. And now, we are in! Year: 2012 YAY!
  3. xazax

    OnInit label

    I think even there is a custom command in the source mod sections just for triggering the oninit label of an npc. Lets make it obsolete!
  4. xazax

    OnInit label

    Right now it does not trigger for npc's loaded via @loadnpc. I think it is a confusing and unlogical behavior. Do you think we should change this?
  5. I believe tomb support can be added easily to "old" hexed exes via a lua modification.
  6. 1940, we are already at the world war II.
  7. +1 Eliminate the hardcoded table!
  8. Could you tell me an exact command line that starts the client successfully? Right now the launcher does: client.exe -t:password username server ( server can be anything, depend on config option, for example setting the xml to read )
  9. Here is the source: RoLauncherSRC.rar http://dl.dropbox.co...LauncherSRC.rar Don't expect it to be too clean, it is just an improvized thing . Basically it just a bunch of Win32 API calls for the GUI, and building wchar_t string (the command line), ini read/write, and finally calling a ShellExecute to start the client. Edit: @Bahmut it is for the new login method ( where absolutely no login screen, so you should not have the restore old login window diff enabled ), however that method is not supported by rA currently, but server side support will be added soon.
  10. Here you go It is as minimalistic as possible, I did not bother with it much. To configure: set up the executable name, and every other parameter like 1sak1 goes to server entry in the settings.ini. I did not test it, since I do not have a new cliet ATM, but I hope it works. RoLauncher.rar RoLauncher.rar (Dropbox mirror)
  11. Could you tell me what is the exact command line to start the client? I did not play with clients nowadays =(.
  12. It's not really a server side feature, but if you want one, just ping me , and tell me what features do you want. (Skinnable? Remember user, pass? Where to store pass, what encryption to use for passwords if we store them etc..)
  13. You can set the price to: price * 100 / (100-discount) This way it will be displayed right. Example: If something costs 100 Set the price to 100 * 100 / 76 ~ 131. And 100 will be displayed. ( Beware, you need to substract the original price, not the highened. ) So script workaround exists, the question is, how many people would need a feature like item_nodc.txt. But I do not feel like adding that stuff for the minority.
  14. Maybe related: r14861.
  15. Right now, our development modell, and the way how the repo is organized, we can't utilize the advantages that git offers. However Gepard is working on a new development modell. If it works well, it is possible we will switch to git eventually,
  16. I'm almost 100% sure, we won't add irc module. It is not widely used, and would involve significant amount of work to maintain it.
  17. What features do you miss from rA? In this topic, we can discuss if it is worth adding them. Notes for Moderators: Users can not start topic in this section, this is the reason for the existence of this topic.
×
×
  • Create New...