Jump to content

schan

Members
  • Content Count

    60
  • Joined

  • Last visited

Everything posted by schan

  1. These might help: http://rathena.org/board/topic/67042-setupexe-not-changing-window-size/ http://rathena.org/board/topic/63405-cleared-endless-setupexe-window/?hl=setup Either you diff your exe withOUT "read data folder first" or download setup.exe from the links above.
  2. schan

    BIG announce Font

    I included the open and close brackets like in script docs. /swt
  3. Hi, How can we do this BIG font size when broadcasting? Source: http://rathena.org/board/topic/74568-r-big-text-announcement/ I know we have this: announce "<text>",<flag>{,<fontColor>{,<fontType>{,<fontSize>{,<fontAlign>{,<fontY>}}}}} but it's not working. I'm requesting for anyone who knows how to do this. Thanks!
  4. Yeah that's weird. I tried setting tax to 0 and gave the full money too but when I tried setting a tax it always add +1%. Don't mind this. I'll be using the workaround. Thank you for your help Annie!
  5. It is working now but one slight problem. A 1% tax is being added to vending_tax/vending_tax_ally and I don't know where it's coming from. Workaround I did is to subtract 1% tax in items_conf. Thank you so much AnnieRuru! You've been a great help! and sorry for the spoon feeding.
  6. No errors after compiling but there is a problem. Tax won't apply and instead, more zennies were added to the seller. Here's what I did: //-- Tax for guild/allies struct guild * g = guild->search( sd->status.guild_id ); ARR_FIND( 0, MAX_GUILDALLIANCE, i, sd->status.guild_id == g->alliance[i].guild_id ); if ( sd->status.guild_id == sd->status.guild_id || i < MAX_GUILDALLIANCE ) { pc->payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd); if( battle_config.vending_tax_ally ) z -= z * (battle_config.vending_tax_ally/10000.); pc->getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd); } else {//-- pc->payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd); if( battle_config.vending_tax ) z -= z * (battle_config.vending_tax/10000.); pc->getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd); } I'm new to this and I'm just trying to learn it now. /sry
  7. schan

    bossnia npc :)

    Try this : http://upaste.me/3f781059975d8cbe1 set .item, 607; //required item set .count, 5; //required number Remember to change this part.
  8. This is what I did: //-- Check for Guild/Ally ACMD_DEF(chkally){ pc->payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd); if( battle_config.vending_tax_ally ) z -= z * (battle_config.vending_tax_ally/10000.); pc->getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd); } else//-- pc->payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd); if( battle_config.vending_tax ) z -= z * (battle_config.vending_tax/10000.); pc->getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd); Error: vending.c: In function ‘vending_purchasereq’:vending.c:163: warning: implicit declaration of function ‘ACMD_DEF’vending.c:163: error: ‘chkally’ undeclared (first use in this function)vending.c:163: error: (Each undeclared identifier is reported only oncevending.c:163: error: for each function it appears in.)vending.c:163: error: expected ‘;’ before ‘{’ tokenmake[1]: *** [obj_sql/vending.o] Error 1make[1]: Leaving directory `/root/Desktop/trunk/src/map'make: *** [map_sql] Error 2
  9. schan

    Dice Event 3x

    I have no time to test this one out. http://upaste.me/681610594c3091df5 Let me know how it goes.
  10. schan

    Dice Event 3x

    Tested it and works like a charm. Thanks bro! The only down side of this is other players who didn't enter or late to enter the event has no chance. If you can open again the portal so everyone can enter for round 2 and 3 instead of using mapwarp. also, what if the players didn't get the prize. But over all good job bro! Appreciate it! How about creating a portal going to waiting area and it will stay open until 3 rounds are done? Players not getting the prize? What do you mean?
  11. I haven't tried it yet in rathena nor here in hercules tho. Try posting on rathena forum for support if you're looking for rathena version of that script.
  12. This one is from rathena : http://rathena.org/board/topic/60817-extended-vending-system-18/
  13. schan

    Dice Event 3x

    Try this: http://upaste.me/6d04105897060cd9b I tested it and everything seems fine. Let me know if it works for you.
  14. I got this error Annie on compiling. vending.c: In function ‘vending_purchasereq’:vending.c:163: warning: implicit declaration of function ‘guild_search’vending.c:163: warning: initialization makes pointer from integer without a castvending.c:165: error: ‘struct mmo_charstatus’ has no member named ‘guild’make[1]: *** [obj_sql/vending.o] Error 1make[1]: Leaving directory `/root/Desktop/trunk/src/map'make: *** [map_sql] Error 2 Edit: I changed guild_search to guild->search and left me with this error vending.c: In function ‘vending_purchasereq’:vending.c:165: error: ‘struct mmo_charstatus’ has no member named ‘guild’make[1]: *** [obj_sql/vending.o] Error 1make[1]: Leaving directory `/root/Desktop/trunk/src/map'make: *** [map_sql] Error 2
  15. schan

    Dice Event 3x

    You mean 3 consecutive rounds? What you can do is warp all the losing players in a waiting area and warp them back when the next round starts but like Annie said this event will take time to finish.
  16. It is possible: http://herc.ws/board/topic/1575-extended-vending-system-updated-by-lilith/?hl=%2Bextended+%2Bvending but it's not updated anymore.
  17. Hi, I need to add something like vending_tax in items_conf but instead of giving tax for all, I'd like to add a separate tax for Guild members and Guild allies. These are the changes I made: srcmapbattle.c line 6490 +{ "vending_tax_ally", &battle_config.vending_tax_ally, 0, 0, 10000, }, srcmapbattle.h line 257 +int vending_tax_ally; confbattleitems_conf.txt +vending_tax_ally: 1200 srcmapvending.c line 162 +//-- Check for Guild/Ally+ if( guild->check_member == 1 || guild->check_alliance == 0 ){+ pc->payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);+ if( battle_config.vending_tax_ally )+ z -= z * (battle_config.vending_tax_ally/10000.);+ pc->getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);+ } else+//-- pc->payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd); if( battle_config.vending_tax ) z -= z * (battle_config.vending_tax/10000.); pc->getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd); I'm not sure with what I did but it didn't work as expected. No errors were returned after compiling. Did I miss anything? Thank you!
  18. Hi, So we have this already: https://github.com/HerculesWS/Hercules/pull/212 but do we already have a way to check / set an account to premium state through script? Let me know! Thanks!
  19. Hi, How to use ' prompt ' ? http://herc.ws/wiki/Menus I tried doing this: prompt ("Yes:No");case 1:mes "Yes";case 2:mes "No";if (@menu == 255) { mes "You should not have closed the menu... BAD BOY!"; close; } like in switch(select()) but it didn't work. Just give me an example on how to use this. Thank you!
  20. schan

    [HELP] npctimer

    Thank you AnnieRuru and jaBote!
  21. schan

    [HELP] npctimer

    Hi Annie, I'm trying to make a script that would give experience to players every minute/hour continuously even if they log out of the game.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.