Jump to content

Vincent

Members
  • Posts

    528
  • Joined

  • Last visited

Everything posted by Vincent

  1. So update to 17388 done. Have changed the script but a error came when clicking the npc. The map name is 1@rent and added to mapcache/mapindex/maps_athena.conf. My Script: payon,150,155,1 script House NPC 723,{ instance_create ("House"); if (instance_create("House") < 0) // Check for a failure in creating instance { mes "Failed to create the instance!"; close; } instance_enter("House"); } error: [Debug]: mapindex_name2id: Map "houes1" not found in index list! [Error]: instance_addmap: No maps added to instance 1. [Info]: [Instance] Created: House. Instance_db: // Instance Database // // Structure of Database: // ID,Name,LimitTime,EnterMap,EnterX,EnterY,Map1,Map2,Map3,Map4,Map5,Map6,Map7,Map8 // 0,Endless Tower,14400,1@tower,50,355,1@tower,2@tower,3@tower,4@tower,5@tower,6@tower 1,Sealed Catacomb,7200,1@cata,100,224,1@cata,2@cata 2,Orc's Memory,3600,1@orcs,179,15,1@orcs,2@orcs 3,Nidhoggur's Nest,14400,1@nyd,32,36,1@nyd,2@nyd 4,House,7200,1@rent,20,20,houes1,houes2,houes3,houes4,houes5,houes6,houes7,houes8,houes9
  2. Dont need to do it manualy because the only file that get a update at rev. 18387 that i modificate is /trunk/src/map/script.c so i will update and re edit the script.c. Thanks for your help Where can i download older rev like 17388?
  3. Okey. For some reason(a lot of modification at the sourcecode from myself that have to be redone after update to newst rev.) i dont want to update to lastest rev. Can i only upgrade to 17386 to use the new system or is in this rev. big bugs?
  4. a other question if i use SVB to update my rathena files, did are all changes lost? Or did svn merge the files so that all settings or changes are still there...
  5. maybe this helps you: http://rathena.org/wiki/Multiple_Servers
  6. 3 rev. to eraly updated So can you help to get the old system to run? If i click on the NPC the Loading screen come and than the client crash. my code: payon,150,155,1 script House NPC 723,{ set .@instance, instance_create("rent1 instanced", getcharid(1)); if( .@instance < 0 ) { mes "Failed to create the instance!"; close; } if( instance_attachmap("rent1", .@instance) == "" ) { instance_destroy(.@instance); mes "Failed to attach the map!"; close; } instance_attach(.@instance); instance_set_timeout(3600, 300, .@instance); instance_init(.@instance); warp "rent1", 20, 20; } Message from Server: [Info]: [Instance] Created: rent1 instanced. [Info]: [Instance] Initialized rent1 instanced.
  7. thanks for the post. But i use 17383 so the new system is not added
  8. Hello, i tried to make a map as instance. But i heard that there is a new instance system. How to use it? i have take a look at the script_commands.txt but dont get it... This is was i tried but dont work... payon,150,155,1 script NPC 723,{ set .@instance, instance_create("rent1 instanced", getcharid(1)); if( .@instance < 0 ) { mes "Failed to create the instance!"; close; } if( instance_attachmap("rent1", .@instance) == "" ) { instance_destroy(.@instance); mes "Failed to attach the map!"; close; } instance_attach(.@instance); instance_set_timeout(3600, 300, .@instance); instance_init(.@instance); warp "rent1", 20, 20; }
  9. i try to instance the map with the script from http://rathena.org/wiki/Instancing. Is this the new or the old system at the wiki?
  10. Did you change something at trunk\npc\kafras.txt?
  11. Here how to add custom item: http://rathena.org/wiki/Custom_Items
  12. Thanks the script works now without any problems. Now i try to make a instance map: But i get this error: [Info]: [Instance] Created: rent1 instanced. [Error]: buildin_instance_attachmap: instance creation failed (rent1): -1 [Info]: [Instance] Destroyed rent1 instanced. payon,150,155,1 script NPC 723,{ set .@instance, instance_create("rent1 instanced", getcharid(1)); if( .@instance < 0 ) { mes "Failed to create the instance!"; close; } if( instance_attachmap("rent1", .@instance) == "" ) { instance_destroy(.@instance); mes "Failed to attach the map!"; close; } instance_attach(.@instance); instance_set_timeout(3600, 300, .@instance); instance_init(.@instance); warp "rent1", 20, 20; }
  13. Thanks for your help, but this makes me crazy. Isn't possible to use variable's or what is the problem? maybe the %Y%m%d wothout - betwen Y M D? 20130628 is the .@tree_water; query_sql "SELECT DATEDIFF('"+gettimestr("%Y%m%d",21)+"','.@tree_water')", .@tree_change_lvl; mes .@tree_change_lvl; Message from NPC = 0, but no error at the server.
  14. I played around with datadiff but cant get it to run correct. my error: [SQL]: DB error - Incorrect parameter count in the call to native function 'DATE DIFF' [Debug]: at c:\users\username\desktop\rathena_17383\src\map\script.c:14692 - SELE CT DATEDIFF(day,'2007-06-05','2006-06-05') My code: query_sql "SELECT DATEDIFF(day,'2007-06-05','2006-06-05')", .@change_lvl;
  15. http://rathena.org/board/topic/66834-antibot-botkiller-6/ Edit: To late Euphy was faster
  16. Like this: All warp portals? Please check the warp .txt's -> trunk/npc/re/warps
  17. Ah good to know about the insert command. I want to calculate the days betwen 2 dates. The dates are saved in DB via: gettimestr("%Y%m%d",21) Is there any command for this?
  18. Thanks Whats wrong with my line? query_sql ("INSERT INTO `tree_db` (`last_water`) VALUES ('"+gettimetick(2)+"') WHERE `acc_id` = " + getcharid(3) + ""); Error message: [SQL]: DB error - You have an error in your SQL syntax; check the manual that co rresponds to your MySQL server version for the right syntax to use near 'WHERE ` acc_id` = 2000000' at line 1
  19. HI i at the moment i work at a script with a if else command. But the command dont work. Because the IF is If (@tree_planted == 0) checked by query_sql "SELECT `tree_lvl` FROM `tree_db` WHERE `acc_id` = " + getcharid(3) + "", .@tree_planted; This works. But after i update the tree_lvl to "1" the new menu from else dont pop out but it have to because @tree_planted == 0 isnt 0 .
  20. Find this: announce ""+strcharinfo(0)+" is correct! I was disguised as: "+$MonsterName$+"",bc_map | bc_blue; Replace with this: announce ""+strcharinfo(0)+" win this round.",bc_map | bc_blue;
  21. Like the error said: There is a problem with you SQL Server connection. Check the-> IP + PW + Login
  22. Here are a good start for your server http://www.youtube.com/watch?v=3LTOOEjRtUo http://www.youtube.com/watch?v=CtDRZki3Hpo
  23. is there any error message in the server console?
×
×
  • Create New...