Jump to content

Skorm

Forum Moderator
  • Posts

    1268
  • Joined

  • Last visited

  • Days Won

    33

Everything posted by Skorm

  1. :< You don't have to go forever and stuff.
  2. 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 .@amount, rand(1,5); //quantity of different items set .@whatItem, rand(.size); //Which item was chosen set .@amountItem, rand(1,10); //Quantity of item you will receive for (.@i = 0; .@i < .@amount; .@i++) getitem .@whatItem, .@amountItem; 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
  3. 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.
  4. It's bound to @monster command... Just do @monster 3 will summon 3 of a random mob id from that list.
  5. Skorm

    erro script

    Change additem to getitem.
  6. 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. ?
  7. prontera,173,200,4 script Blah -1,5,5,{ end; OnTouch: if(!instance_id()) end; npctalk "This is a message!"; monster "place",60,100,"Poring",1002,1,"NPCNAME::OnLabel"; disablenpc instance_npcname(strnpcinfo(0)); } This is the best way to figure out commands. https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L6194
  8. Sorta but it would be dumb to do so... In order to do it without an npc at those coordinates, you would need to loop and constantly track your players' positions until they are at that point then run the rest of the script. The better way of doing that would be to create a hidden npc at the coordinates you want to trigger OnTouch. They should still work within an instance. Using -1 for an npc's sprite will make it hidden from the client.
  9. @AnnieRuru Made a fantastic post with three excellent ways on how to do this already...
  10. This script works very much like what the topic describes.
  11. Could maybe shorten it to... prontera,255,255,3 script Equip Freebies 123,{ getinventorylist; copyarray .@inventory[0],@inventorylist_id[0],getarraysize(@inventorylist_id); for(.@i = 0; .@i < .len; .@i++){ if(!isequipped(.equip_id[.@i]) && inarray(.@inventory, .equip_id[.@i]) == -1) { getitem .equip_id[.@i],1; equip .equip_id[.@i]; } else .@fail++; } mes "[ Freebies ]"; if(!.len - .@fail){ mes "It looks like you already have all the freebie(s)."; close; } else if (.@fail) mes "It looks like you already have "+.@fail+" freebie(s)."; mes "Here is your freebies."; close; OnInit: setarray .equip_id, 1208, 2154; // Add your ID's here. .len = getarraysize(.equip_id); } Although in this case if the user was able to store/trade the freebies he could get more, but it would also allow the list of freebies to be updated. Also my example is completely untested so... Edit: I think equipped items might already show up in the @inventorylist_id so I might not even need isequipped().
  12. This is a neat idea but I think the cards are way too big you should consider resizing the cards and also converting the magenta color to transparency.
  13. Hi @Maki it has been a minute, hasn't it? I've been playing a little... IGN is Zaldus because someone took Skorm. >_>
  14. I've been wanting this version of Prontera for years thanks for re-uploading it.
  15. Thank you for the suggestions! The game is meant to be manic so that you can't pause it and will die if you aren't able to allocate points fast enough or heal, but I will add an option to click the potion on the side to heal.
  16. http://lovely.vhostsite.online/Gam/ I roughly used ROs leveling and stat system. Click the monster to do damage and press F1 to use potions.
  17. I like that idea. I also wanted to add an option where you could split the npcs up. So one for changing buffs and one for setting buffs since double-clicking is a little dodgy. Edit: @Radian Done.
  18. Thanks for letting me know I've got a fix I'll upload it when I get home from work.
  19. I did something kinda like this years ago. Like if you're in a party and you kill an mvp you can roll on the loot.
  20. Change every instance of #KAFRAPOINTS to #CASHPOINTS.
  21. It should if not the oldest version will because that works on rAmod. I actually made this script way back in 2014.
×
×
  • Create New...