Jump to content


Forum Moderator
  • Content Count

  • Avg. Content Per Day

  • Joined

  • Last visited

  • Days Won


Skorm last won the day on June 27 2019

Skorm had the most liked content!

Community Reputation

342 Excellent

About Skorm

  • Rank
    Arc Angeling
  • Birthday 06/01/1991

Profile Information

  • Gender
  • Location
    Ɵ Chosen Hopeless Nothing
  • Server
  • Github: Skormie
  • Discord: Skorm#0649

Contact Methods

Recent Profile Visitors

10,996 profile views
  1. @Emistry Pretty sure you could just the the commands for it... It's like @size 1-3 or something.
  2. @Get Backers Seems like you've got the right idea... It's strnpcinfo(0) not NPC_NAME though. - script LoginRewards#1 -1,{ OnPCLoginEvent: addtimer 3600000, strnpcinfo(0)+"::OnClaimReward"; end; OnClaimReward: dispbottom "You have been online 1 hour. Talk to Hourly Reward NPC to get your rewards!"; }
  3. If the instance hasn't been destroyed you need to get the instance id... https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L9093 When you have the instance id you can then use the instance_mapname command and warp the play back to that instanced map. https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L9085 The full thing might look like... warp instance_mapname("prontera",instance_id(IM_PARTY)), 0, 0; This is if the player in question started an instance of the prontera map and we wanted to warp them back there.
  4. The scripting language is pretty primitive and while I don't have time to completely review your script associative arrays are not a thing. By just glancing and reading through what you've posted that's what I think you're trying to accomplish... There are some ways of making something similar though, but it is not recommended for multiple repetitions because it's cumbersome. Anyways... setarray [email protected]$, "greg", "frank", "ashe"; Works... setarray [email protected], "greg", "frank", "ashe"; Doesn't Work. Furthermore: [email protected] = getarraysize([email protected]$); for([email protected] = 0; [email protected] < [email protected]; [email protected]++) { for([email protected] = 1; [email protected] < 11; [email protected]++) { setd "[email protected]_"[email protected]$[[email protected]]+"_things["[email protected]+"]", [email protected]; } } In this example I create 3 new arrays from the [email protected]$ array above... [email protected]_greg_things = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10; [email protected]_frank_things = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10; [email protected]_ashe_things = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10; I'm by no means saying this is best practice but it's something that can be done. I'm pretty sure... setarray getd("[email protected]_"[email protected]$[0]+"_things"), 1, 2, 3, 4, 5, 6, 7, 8, 9, 10; Will also work to create an array like... [email protected]_greg_things = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10; I could then access gerg's values like... mes "Greg's first value is... "+getd("[email protected]_"[email protected]$[0]+"_things[0]"); Output would be Greg's first value is... 1
  5. Again Poring King is correct you should be able to call Cutin on any script that is connected to a player. You could call a function from the script section of your itemdb for the item that you want to use as your random animation thing. The function npc would then trigger the cutin animation. https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L1563 https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L7644
  6. @Poring King is right but unfortunately for you @sacrox the script you've posted above isn't very dynamic and would require editing almost every line to create an effective last warp option.
  7. https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L859 OnHour00: OnHour03: OnHour06: OnHour09: OnHour12: OnHour15: OnHour18: OnHour21: Use labels and commands like disablenpc and enablenpc to hide and display npcs.
  8. switch(input([email protected], 1, 30000)) { case -1: //Values less than 1 case 1: //Values greater than 30000 mes "Something went wrong!"; close2; cutin "",255; end; default: break; } if ([email protected] > goldPoint) { mes "Sorry, you don't have any Gold"; close2; cutin "",255; end; } https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L1556
  9. @Tokei made a mapcache editor that superseded weemapcache. If you really need weemapcache I have it. WeeMapCache.exe
  10. :< You don't have to go forever and stuff.
  11. prontera,154,179,4 script summoner 100,{ if(countitem(512) > 500){ delitem 512,500; monster "prontera", 0, 0, "Poring", 1005, 1, strnpcinfo(0) + "::OnMobKilled"; monster "prontera", 0, 0, "Poring", 1115, 1, strnpcinfo(0) + "::OnMobKilled"; } else { mes "sorry you need 500 apple to summon"; close; } end; OnMobKilled: set [email protected], rand(1,5); //quantity of different items set [email protected], rand(.size); //Which item was chosen set [email protected], rand(1,10); //Quantity of item you will receive for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) getitem [email protected], [email protected]; end; OnInit: setarray .listItems[0], 500, 501, 502, 503, 504, 505, 506, 507; //Items .size = getarraysize(.listItems); } There are still a few problems with the script but I don't have time. If you want the item to look like it dropped. https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L4827
  12. Just load it like you would any other NPC. Also you shouldn't necro really old topics like this there is more than enough information out there about loading in NPCs.
  13. It's bound to @monster command... Just do @monster 3 will summon 3 of a random mob id from that list.
  14. Skorm

    erro script

    Change additem to getitem.
  15. So in November I started making my own GameCube controller for the GameBoy Player and wasn't able to finish it because of school, but it's finally done and I love you guys so I'm going to share it here.
  • Create New...

Important Information

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