Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. there are a few "way" ... create a custom short/simple script to store the coordinates, then use OnInit + [movenpc] to move the npc around. but its pointless. it's a totally unnecessary works. I mean, you could actually use the Search Function in text editor to find the npc straight away and adjust the coordinate. That's why the Search Functions is made for, to let you go through thousands, million of lines without need to scroll through lines by lines of script.
  2. your client diffed to use custom font i guess.
  3. all these log information is saved there in case you have enabled the setting to log all the information you need.
  4. maybe you have set these mapflags? mapname mapflag nowarp change your GM permission in case you want to allow warp without restrictions.
  5. perhap you didnt enable the pvp mapflag ?? mapname mapflag pvp
  6. your log folder. https://github.com/rathena/rathena/blob/master/sql-files/logs.sql
  7. i believe both Operating System used different compiler and doesnt compatible to with each others. You still need to download compile it under Linux OS to run it in Linux.
  8. you gonna read here for further explore. https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L449 and variables doesnt end with "#". but if variables ended with "$" it's for string value, else it's integer value.
  9. $var$ stored value globally can be access by any NPCs any time. value persistent even after you reboot or reloaded server. $@var$ stored value globally can be access by any NPCs any time. value ISN'T persistent if you reboot or reloaded server.
  10. Moved to the Showcase board. The rules state that you must advertise your products and services in the Paid Services forum.
  11. @join #main OnPCLoginEvent: atcommand "@join #main"; end;
  12. https://github.com/MStr3am/NEMO/archive/master.zip
  13. if both commands are mean to trigger by the same way, then it's okay for you to merge together.
  14. there are 3 types of OnTouch* event. OnTouch: This label will be executed if a trigger area is defined for the NPC object it's in. If it isn't present, the execution will start from the beginning of the NPC code. The RID of the triggering character object will be attached. OnTouch_: Similar to OnTouch, but will only run one instance. Another character is chosen once the triggering character leaves the area. OnTouchNPC: Similar to OnTouch, but will only trigger for monsters. For this case, by using 'getattachedrid' will returns GID (ID that returned when use 'monster'). similar cant exist more than one time within same npc script.
  15. SQL Table is used to store data, it doesnt execute out any command to interfere with the game. The part that executing the command to kick players is the NPC Script or the Source Modication. If this is a NPC script that you're looking for, you shall elaborate how the NPC script should work to disconnect the users.
  16. something like this ? i havent test it. - script atcmd_example 757,{ OnAtcommand: mes "Buy VIP ?"; switch ( select( "VIP 7 Days","VIP 30 Days" ) ) { // callsub L_cashpoint,<day>,<cash>; case 1: callsub L_cashpoint,7,10; break; case 1: callsub L_cashpoint,30,20; break; default: break; } close; L_cashpoint: .@day = getarg( 0,0 ); .@cash = getarg( 1,0 ); mes .@day+" days VIP - "+.@cash+" cash"; if ( #CASHPOINTS >= .@cash ) { if ( select( "Purchase","Cancel" ) == 1 ) { #CASHPOINTS -= .@cash; } } return; OnInit: bindatcmd "vipshop",strnpcinfo(3)+"::OnAtcommand"; end; }
  17. add a new menu selection option into each kafra script. switch(select("Save:Use Storage:Use Guild Storage:Rent a Pushcart:Cancel")) { then add a new case in the switch statement. case 3: // it's 3 because "Use Guild Storage" is 3rd selection in the menu if (Zeny < 20) { mes "[Kafra Leilah]"; mes "Excuse me, but it"; mes "seems that you don't"; mes "have the 20 zeny to pay"; mes "the Storage access fee..."; close; } mes "[Kafra Leilah]"; mes "Although this facility is"; mes "exclusively intended for"; mes "the training of Kafra Employee"; mes "and administrative functions,"; mes "I'll access your Guild Storage for you."; next; set Zeny, Zeny-20; set RESRVPTS, RESRVPTS + (20/5); mes "[Kafra Leilah]"; mes "In the future, please"; mes "ask the Kafra Employee on"; mes "duty if you wish to use"; mes "any of the Kafra Services."; mes "Thank you for your patronage."; callfunc("F_CheckKafCode"); //check your storage password, if set close2; guildopenstorage(); break;
  18. you mean IP Ban List? or loop through a custom SQL table for table then get the data and disconnect/kill thee characters ?
  19. something like this ? http://pastebin.com/raw.php?i=7QaLRqP6
  20. you missed the upgrade. sql-files/upgrades/upgrade_20150619.sql#L1
  21. @Skorm hmm, I am not exactly sure when did I insult you ? your method, OnTimer10000 has clearly told the script it's already 10 seconds passed. why you still need to store the start and end time ? and recalculate the difference, which is also 10 seconds . it's unnecessary and redundant method in scripts. well, everyone have their own style, I am not saying that my method are so-called "Superior" here, but i defnitely believe it's could be enhanced.
  22. @Skorm i believe your method is redundant. why not just pick initnpctimer + stopnpctimer + getnpctimer or start gettimetick - end gettimetick
  23. prontera,155,181,5 script Sample#card_collect 757,{ mes "Give me "+getitemname( .card_id ); if ( select( "Give Card(s)","Cancel" ) == 1 ) { mes "how many?"; input .@amount,0,countitem( .card_id ); if ( .@amount ) { delitem .@amount; #CARDPOINTS += ( .@amount * .card_point ); } } close; L_is_mvp: switch ( getarg( 0,0 ) ) { default: return 0; // case <mvp card id>: case 4001: case 4002: case 4003: return 1; } OnMinute00: if ( gettime(3) % 2 ) OnInit: .card_id = rand( 4001,4500 ); if ( callsub( L_is_mvp,.card_id ) ) { .card_point = 10; } else { .card_point = 1; } end; } something like this.
  24. shut down server clear the database load the backup database that you created yesterday.
  25. depend on how you setup the npc to run the timer. normally it wouldn't interfere other npc's timer unless you specified it.
×
×
  • Create New...