Jump to content

Patskie

Community Contributors
  • Content Count

    366
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Patskie

  1. npc/custom/stylist.txt this is included in every version you can try this out. it uses the command getbattleflag : getbattleflag("max_cloth_color"),getbattleflag("max_hair_style"),getbattleflag("max_hair_color") Command description : *setbattleflag "<battle flag>",<value>;*getbattleflag("<battle flag>")Sets or gets the value of the given battle flag.Battle flags are the flags found in the battle/*.conf files and is alsoused in Lupus' variable rates script. Make sure you properly set your max hair style, hair color and cloth color on your conf/battle/client.conf
  2. Since you brought up the list of characters thing as an example. Supposed to be i would like to get all the character name of all characters on my server. Your function would only get the first 128 values ( 128 character names supposed to be ). A suggestion from me that you might want to add into your function is to support > 128 values. That will make your function more flexible and more awesome. Anyway good job!
  3. There is a existing command for this? rid2name(getcharid(3));
  4. OnPCLoginEvent: // clone command here end; OnPCLogoutEvent: killmonster "<map name>"; end; Clone command : *clone "<map name>",<x>,<y>,"<event>",<char id>{,<master_id>{,<mode>{,<flag>,<duration>}}}This command creates a monster which is a copy of another player. Thefirst four arguments serve the same purpose as in the monster scriptcommand, The <char id> is the character id of the player to clone (playermust be online).If <master id> is given, the clone will be a 'slave/minion' of it.Master_id must be a character id of another online player.The mode can be specified to determine the behavior of the clone, itsvalues are the same as the ones used for the mode field in the mob_db. Thedefault mode is aggressive, assists, can move, can attack.Flag can be either zero or one currently. If zero, the clone is a normalmonster that'll target players, if one, it is considered a summonedmonster, and as such, it'll target other monsters. Defaults to zero.The duration specifies how long the clone will live before it isauto-removed. Specified in seconds, defaults to no limit (zero).Returned value is the monster ID of the spawned clone. If command fails,returned value is zero.
  5. rA script commands are almost the same with Hercules commands. i would say 90% or more :3
  6. This prontera,150,150,5 script Sample 100,{ end;OnInit: while (1) { do { .@x = rand(100,500); .@y = rand(100,500); } while (!checkcell(strnpcinfo(4),.@x,.@y,cell_chkpass)); npcwalkto .@x, .@y; sleep 500; } end;}
  7. This? db/re/item_trade.txt //Item Trading Restrictions File//Specify here special rules for item trading.//Item ID, TradeMask, Group-Level Override//Trading mask values://1:Item can't be droped//2:Item can't be traded (nor vended)//4:Wedded partner can override restriction 2.//8:Item can't be sold to npcs//16:Item can't be placed in the cart//32:Item can't be placed in the storage//64:Item can't be placed in the guild storage//128:Item can't be attached to mail//256:Item can't be auctioned//Example://1161,67,50 //Balmung: No drop, No trade, No Guild Store (1+2+64 =67),//only groups of group-level 50 and up can override the setting.
  8. http://rathena.org/board/topic/56757-requesting-for-item-script/#entry67720
  9. Oh sorry for my code. Misunderstood your request. I thought moving npc
  10. prontera,150,150,0 script Sample 100,{ .@x = rand(100,500); .@y = rand(100,500); if ( checkcell( strnpcinfo(4), .@x, .@y, cell_chkpass ) ) movenpc strnpcinfo(1), .@x, .@y; end;}
  11. killmonsterall is a command script not an atcommand script
  12. Give a try - script Sample -1,{ OnMinute00: if ((gettime(3)%5)==0) atcommand "@killmonster2"; end;}
  13. Patskie

    @rickroll

    Try : - script rickroll -1,{ OnInit: setarray .Messages$[0], "Never gonna give you up", "Never gonna let you down", "Never gonna run around and desert you", "Never gonna make you cry", "Never gonna say goodbye", "Never gonna tell a lie and hurt you"; bindatcmd "rickroll",strnpcinfo(3)+"::OnAtcommand"; end; OnAtcommand: atcommand "@me " +.Messages$[rand(getarraysize(.Messages$))]; end;}
  14. Sample ( a shop selling poring card for 500 zeny and fabre card for 1000 zeny ) : prontera,150,150,0 shop Sample 100,4001:500,4002:1000 Reference ( https://raw.github.com/HerculesWS/Hercules/master/doc/script_commands.txt ) : ** Define a shop/cashshop 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>...}This will define a shop NPC, which, when triggered (which can only be doneby clicking) will cause a shop window to come up. No code whatsoever runsin shop NPCs and you can't change the prices otherwise than by editing thescript itself (no variables even exist at this point of scripting, sodon't even bother trying to use them).The item id is the number of item in the 'item_db.txt' database. If Priceis set to -1, the 'buy price' given in the item database will be used.Otherwise, the price you gave will be used for this item, which is how youcreate differing prices for items in different shops.You can alternatively use "cashshop" in place of "shop" to use the CashShop interface, allowing you to buy items with special points (Currentlystored as account vars in global_reg #CASHPOINTS and #KAFRAPOINTS). Thistype of shop will not allow you to sell items at it, you may only purchaseitems here. The layout used to define sale items still count, and"<price>" refers to how many points will be spent purchasing the them.
  15. Just set this to 0 ( npc/custom/card_remover.txt#L19 )
  16. I think it's already set? for(set .@k,0; .@k<getarraysize(.Reward); set .@k,.@k+2) getitem .Reward[.@k], .Reward[.@k+1], .@aid[.@j];message rid2name(.@aid[.@j]),"You have been rewarded for conquering "+getcastlename(.Castles$[.@i])+".";
  17. No no no, i am answering some questions and tell my experience while installing the script. It is working fine on my test server
  18. Your emulator? I tried installing the script and the only problem i have encountered during installation is the tab part of the script heading?
  19. Are you a gm level 20 ( or more ) ?
  20. Show error if any. Did you modify the name of the script? ( the poringbind one? ) - script poringbind -1,{
×
×
  • Create New...

Important Information

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