Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    409

Everything posted by Emistry

  1. Emistry

    Apple Tree

    - script apple_tree -1,{ .@i = atoi( strnpcinfo(2) ); mes "[ ^0000FFApple Giver^000000 ]"; if ( getd( ".apple_tree_"+.@i ) ) { mes "Look someone was already here and got all my apples..."; } else { mes "Whoa! It must be your lucky day here are some yummy apples for you!"; setd( ".apple_tree_"+.@i ),1; } close; OnClock0000: setd( ".apple_tree_"+strnpcinfo(2) ),0; end; } prontera,1,1,4 duplicate(apple_tree) Apple Tree#01 111 prontera,1,1,4 duplicate(apple_tree) Apple Tree#02 111 prontera,1,1,4 duplicate(apple_tree) Apple Tree#03 111 prontera,1,1,4 duplicate(apple_tree) Apple Tree#04 111 prontera,1,1,4 duplicate(apple_tree) Apple Tree#05 111 prontera,1,1,4 duplicate(apple_tree) Apple Tree#06 111 prontera,1,1,4 duplicate(apple_tree) Apple Tree#07 111 prontera,1,1,4 duplicate(apple_tree) Apple Tree#08 111 prontera,1,1,4 duplicate(apple_tree) Apple Tree#09 111 prontera,1,1,4 duplicate(apple_tree) Apple Tree#10 111
  2. query_sql("UPDATE `event_log` SET `won_by` = '" + escape_sql(strcharinfo(0)) + "', `won_time` = NOW(), `price_id` = " + $cluck_item_id + ", `price_amount` = " + $cluck_item_amount + " WHERE `event` = 'Cluckers' AND `won_by` = NULL");
  3. By default the mapserver already show you how many maps is added already upon startup.
  4. owh Sublime 3 .. >.< I have been trying to do the same thing previously, but failed. No idea how to do this for sublime. I would like to help if you can guide me too xD send me a pm in case you need help.
  5. if not mistaken, you can use putty - screen command another alternative. map_athena.conf#L50 //Makes server log selected message types to a file in the /log/ folder //1: Log Warning Messages //2: Log Error and SQL Error messages. //4: Log Debug Messages //Example: "console_msg_log: 7" logs all 3 kinds //Messages logged by this overrides console_silent setting console_msg_log: 0
  6. change the hyperlink to modules ...
  7. add the missing folder and files. module/main/download module/vote
  8. check for error and show it.
  9. OnMinute00: OnMinute10: OnMinute20: OnMinute30: OnMinute40: OnMinute50: for ( .@i = 1; .@i <= 5; .@i++ ) if ( !getmapusers( "New_"+.@i+"-3" ) ) killmonster "New_"+.@i+"-3","All"; end;
  10. data/idnum2item* text files system/itemInfo files ...LUA or LUB... you have to make up your mind which one is exactly read by your client.. both are different.
  11. If it's unknown script command in your eathena ... add the missing script command yourself ... or update to either rathena or compatible version of emulators.
  12. night enabled ?
  13. attachrid getd("$online_aid"+ .@i ); if ( ( .@map$ == "" || strcharinfo(3) == .@map$ ) && !checkvending() ) { message strcharinfo(0), .@origin$ +" gives all players online in this map "+ .@amount +" "+ getitemname(.@itemid); getitem .@itemid, .@amount; }
  14. the data type is integer .... query_sql("INSERT INTO `mvprank` SET `id`='"+getcharid(0)+"',`name`='"+strcharinfo(0)+"',`mvpkills`= 1 ON DUPLICATE KEY UPDATE `mvpkills`=`mvpkills`+ 1"); dont add unneccesary quote to the integer numbers ...
  15. Emistry

    Wheree?

    npc list http://nn.nachtwolke.com/dev/npclist/?q=45-999%2C10000-10090&qq=search
  16. I believe you should post the error you get or telling what things isn't working ... as well as the script.
  17. get the IP... save it ... check everytime before give reward. https://rathena.org/board/topic/84890-universal-script-freebies-1-per-ip/ https://rathena.org/board/topic/82011-request-ip-based-freebies/ search the forum next time ...
  18. check the error message ... show it ... nobody know exactly what kind of error or issue you facing now ...
  19. count amount of item use countitem if ( countitem( 512 ) < 10 ) { // you have less than 10 apples. } get value of input ... input .@value; mes "Your input is : "+.@value;
  20. Basically, Wiki have all the guidelines for installing. https://rathena.org/wiki/Category:Installation the forum also consist of several topic that guide users how to setup their server. you might even find some videos in these topics.
  21. OnMyMobDead: .@random = rand(5,150); #PvPPoints = #PvPPoints + .@random; announce strcharinfo(0)+" got "+.@random+" points by killing the punching bag. ",bc_map; monster "prontera",150,160,"--en--",1002,1,"Punching_Bag::OnMyMobDead"; end;
  22. @montero11 you added the items to shop #1 ...but you open shop #4 ....
  23. only if you could proper detect the IP belong to the specific country. OnPCLoginEvent + getcharip + @kick
  24. - script atcmd_example -1,{ OnInit: bindatcmd "cashmap",strnpcinfo(3)+"::OnAtcommand"; end; OnAtcommand: $@cashmap_map$ = .@atcmd_parameters$[0]; $@cashmap_amount = atoi( .@atcmd_parameters$[1] ); if ( getmapusers( $@cashmap_map$ ) <= 0 ) { dispbottom "Invalid map / no players."; } else if ( $@cashmap_amount <= 0 ) { dispbottom "Invalid amount of cash."; } else { addrid(0); if ( strcharinfo(3) == $@cashmap_map$ ) { #CASHPOINTS += $@cashmap_amount; dispbottom "Gained "+$@cashmap_amount+" Cash points."; } } end; }
  25. doc/script_commands.txt#L271 ** Define a shop/cashshop/itemshop/pointshop NPC. -%TAB%shop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...} <map name>,<x>,<y>,<facing>%TAB%shop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...} -%TAB%cashshop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...} <map name>,<x>,<y>,<facing>%TAB%cashshop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...} -%TAB%itemshop%TAB%<NPC Name>%TAB%<sprite id>,<costitemid>{:<discount>},<itemid>:<price>{,<itemid>:<price>...} <map name>,<x>,<y>,<facing>%TAB%itemshop%TAB%<NPC Name>%TAB%<sprite id>,<costitemid>{:<discount>},<itemid>:<price>{,<itemid>:<price>...} -%TAB%pointshop%TAB%<NPC Name>%TAB%<sprite id>,<costvariable>{:<discount>},<itemid>:<price>{,<itemid>:<price>...} <map name>,<x>,<y>,<facing>%TAB%pointshop%TAB%<NPC Name>%TAB%<sprite id>,<costvariable>{:<discount>},<itemid>:<price>{,<itemid>:<price>...} <map name>,<x>,<y>,<facing>%TAB%marketshop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>:<quantity>{,<itemid>:<price>:<quantity>...}
×
×
  • Create New...