Jump to content

Vincent

Members
  • Posts

    528
  • Joined

  • Last visited

Everything posted by Vincent

  1. Hi, How can I multiply a variable with a number? Dont work: .@amount2 = .@amount * 0,1;
  2. Sorry but still same probs: [Warning]: script: buildin_atcommand: failed to execute command 'Playername@autoloot' [Debug]: Source (NPC): Login Settings at prontera (150,150) [Debug]: Source (NPC): Login Settings at prontera (150,150) [Warning]: script: buildin_atcommand: failed to execute command 'join #main' [Debug]: Source (NPC): Login Settings at prontera (150,150) [Debug]: Source (NPC): Login Settings at prontera (150,150) [Warning]: script: buildin_atcommand: failed to execute command 'Playername@noask' [Debug]: Source (NPC): Login Settings at prontera (150,150) [Debug]: Source (NPC): Login Settings at prontera (150,150)
  3. Thanks Dont work as well. [Warning]: script: buildin_atcommand: failed to execute command 'Playnernamejoin #main' [Warning]: script: buildin_atcommand: failed to execute command 'Playername@autoloot' After login in with autoloot and #main on at the npc
  4. Is this working because i thought that there is no "@main" commands at the new rAthena or have i only to change to #main?!
  5. Hello, in the past rathena get a new Chat system without @main. If a Player want to see the chat in the #main channel he hase to write first somthing to the #main. Is there a way to make it always on?
  6. Here is a Video Tutorial. Part 1: http://www.youtube.com/watch?v=3LTOOEjRtUo
  7. So if i use pre renewal: Every invest lvl Emp geht 1000 HP more? and the def from emp is: Emp Def += Invest lvl(emp def + 2 / 3)?
  8. hi, I would like to know how much hp increases with def investment. And I would also like to know if only hp increases or def too. If i use the default settings from rathena.
  9. yea but i dont mean that the refiner is in the merchant folder >_>
  10. merchant? realy O_o Thanks....
  11. I know but where can i fint this one. I have searched all files but dont know where i can replaced the npc..................
  12. Hi. i wanna change the position from a NPC that stand in a house because of chaning the payon map to the old payon. But cant find the NPC source in rathena folder...
  13. yea i will update rathean.
  14. Hello, i found this script for Ceres CP http://www.eathena.ws/board/index.php?showtopic=195150&st=0&gopid=1190155entry1190155. But after edit my ceres cp and sql server the vote dont work. This error come at the Cp: Warning: require(memory.php): failed to open stream: No such file or directory in C:\xampp\htdocs\CP\cp\vote.php on line 22 Fatal error: require(): Failed opening required 'memory.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\CP\cp\vote.php on line 22 As you can see the memory.php i not there but i use original CP and there is no memory.php Is there a way to become vote points mod running at ceres?
  15. after receiving the item from the mailbox and put into the equipment, after i relog the items received from the mail lost. i am using: 2012-04-10aRagexeRE and 2012-04-10 Lub+src Files [Translated].
  16. ah i see. Is there a good Tutorial for rookie scripter? i know the ratahena wiki about scripting but this is really short and not so exactly about so small thinks like the break.
  17. Thanks, no i dont mind because i am here to learn how to script. Next Problem: I try to add a rent Warper. Script works but at the menü ingame there are a little bug. If i chosse Upgrade now at the menü the message from the Healer pops up but to rent the warper works. my script: payon,99,93,1 script Rent NPC 429,{ switch(select("Upgrade the Warper:Upgrade the Healer")) { case 1: mes "You wanna upgrade the Warper for ^FF00007 Days^000000? You will lose ^FF000025 Event Coins^000000! But the Warper cost are reduced by 50%."; switch(select("Upgrade now.:Run away.")) { case 1: set .@rentnpcdate,gettimetick(2)+604800; query_sql "SELECT `date` FROM `rentnpc` WHERE `char_id` = " + getcharid(0) + " AND `npc` = 2", .@renttime; if (.@renttime > gettimetick(2)){ mes "You already upgrade the Warper."; close; } else { if (countitem(7539) < 25) { mes "Im Sorry, but you don't have enough Coins."; close; } else { delitem 7539, 25; if (.@renttime) { query_sql("UPDATE `rentnpc` SET `date` = " + .@rentnpcdate + " WHERE `char_id` = " + getcharid(0) + " AND `npc` = 2"); } else { query_sql "INSERT INTO `rentnpc` (`char_id`, `account_id`, `npc`, `date`) VALUES ('"+getcharid(0)+"', '"+getcharid(3)+"', '2', "+ .@rentnpcdate +")"; } mes "Done!"; } } break; case 2: mes "..."; break; } case 2: mes "You wanna rent the Healer for ^FF00007 Days^000000? You will lose ^FF000025 Event Coins^000000! But you will also get Agi up and Blessing level 10."; switch(select("Upgrade now!:Run away.")) { case 1: set .@rentnpcdate,gettimetick(2)+604800; query_sql "SELECT `date` FROM `rentnpc` WHERE `char_id` = " + getcharid(0) + " AND `npc` = 1", .@renttime; if (.@renttime > gettimetick(2)){ mes "You already rent the Healer."; close; } else { if (countitem(7539) < 25) { mes "Im Sorry, but you don't have enough Coins."; close; } else { delitem 7539, 25; if (.@renttime) { query_sql("UPDATE `rentnpc` SET `date` = " + .@rentnpcdate + " WHERE `char_id` = " + getcharid(0) + " AND `npc` = 1"); } else { query_sql "INSERT INTO `rentnpc` (`char_id`, `account_id`, `npc`, `date`) VALUES ('"+getcharid(0)+"', '"+getcharid(3)+"', '1', "+ .@rentnpcdate +")"; } mes "Done!"; } } break; case 2: mes "..."; break; } } close; }
  18. Yea this i had changed but dont helps with the problem. And there are no error messages.
  19. thanks for fast help If i talk to the NPC the first time i can rent the Healer all works fine. After that if i try to talk a 2. time to the Healer and choose "Rent a Healer" at the menu the message "..." comes. But this messages is wrong because the NPC has to say "You already rent the Healer"?!
  20. i dont mean the sql comand. I mean the hole synthaxe (difine variable ect.) So i have a other problem my NPC is near to finsih but i cant find the bug. Message from mapserver: My script: payon,115,115,1 script Rent NPC 569,{ switch(select("What can i do here?:Rent a Healer")) { case 1: mes "If you give me some Coins the Healer will give you also Agi up and Blessing Level 5 for 7 days."; break; case 2: mes "You wanna rent the Healer for ^FF00007 Days^000000? You will lose ^FF000050 Coins^000000!"; switch(select("Rent the Healer!:Run away.")) { case 1: set @rentnpcdate,gettimetick(2)+604800; set @rentnpcdate2,gettimetick(2); query_sql "SELECT `char_id`,`npc`, `date` FROM `rentnpc`", @charid, @npc, @rentime; if (@charid == getcharid(0) && @npc == 1 && @renttime < gettimetick(2)){ mes "You already rent the Healer."; close; } else if (@charid != getcharid(0) && @npc != 1 ) { //set @rentnpcdate,gettimetick(2)+604800; if (countitem(7539) < 50) { mes "Im Sorry, but you dont have enough Coins."; close; } else { delitem 7539, 50; query_sql "INSERT INTO `rentnpc` (`char_id`, `account_id`, `npc`, `date`) VALUES ('"+getcharid(0)+"', '"+getcharid(3)+"', '1', "+ @rentnpcdate +")"; mes "Done!"; break; } } else (@charid == getcharid(0) && @npc == 1 && @renttime > @rentnpcdate) { //set @rentnpcdate,gettimetick(2)+604800; if (countitem(7539) < 50) { mes "Im Sorry, but you dont have enough Coins."; close; } else { delitem 7539, 50; query_sql "UPDATE `rentnpc` (`char_id`, `account_id`, `npc`, `date`) VALUES ('"+getcharid(0)+"', '"+getcharid(3)+"', '1', "+ @rentnpcdate +")"; mes "Done!"; break; } } case 2: mes "..."; close; }
  21. Thanks. My coding skill at rahtena grows up Is this a own syntex from rathena or is it based at a other scripting lanugage?
  22. Thanks i will try it. If i have aby problem i will post it in this thread. Hi, i try atm to insert the status from the rentnpc into the db. But its buggy and say: script error on npc/custom/rent.txt line 13 parse_line: need ';' line 13 is the INSERT INTO comand for sql. 1. Is the INSERT INTO comand right? 2. @rentnpcdate the right comand to insert the variable? set rentnpcdate,gettimetick(2)+604800; query_sql "INSERT INTO `rentnpc` (`char_id`, `account_id`, `npc`, `date`) VALUES ('"+getcharid(0)+"', '"+getcharid(2)+"', '"1"', "@rentnpcdate")";
×
×
  • Create New...