Jump to content

Nameless2you

Members
  • Posts

    351
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Nameless2you

  1. Offline Mute/Jail/Ban NPC So I thought I'd improve, fix up my old Offline Mute/Jail/Ban script, that had wayy too many loops and odd variables, oh those good old copy paste days.. So yeah, I made 2 versions 1 for eAthena users and 1 for rAthena users since this uses getgmlevel. Files rAthena: Link eAthena: Link Changelog 1.2 - Public Release Features Ban users on login Ban users on login if woe is on Mute users on login Mute users on login if woe is on Jail users on login Jail users on login if woe is on Whisper system to contact NPC How-To-Use Send a whisper to 'NPC:PmBan' with the message 'asdf' and you'll receive a message box with the options. Credits IeYesuru for his initial Offline Jail System Masao for putting up with me in IRC If you have any suggestions feel free to shoot them out there, either for improvements or other stuff, I've tested the script a couple of times but there might still be a bug here or there so please do tell me.
  2. use codebox next time please o_o find set zeny,zeny+$L_Prize_Money; & set zeny,zeny+$L_Prize_Money_Small; and change it to set #CASHPOINTS,#CASHPOINTS + 1; 1 is how much they get for winning, so I suppose you have to give more for Prize_Money than for Prize_Money_Small
  3. yep, that'll do. although you don't need to add those .gat..
  4. Get your tabs straight, I scoured the script and there are no problems. This version: http://upaste.me/5894431256c3b62 had no errors except for the maps that I don't have.
  5. just post the few lines of battle.c where the error comes from
  6. That's an easy solution.. You removed the semi-colon as well.. setarray is like set you set variables in it and use a semi-colon to define the end. Compare: .group1id and .group2id with .group3id. the last ',' on .group1id and .group2id should be a ';'
  7. 1 thing, you used the getarraysize correctly but you forgot 1 symbol, it's .@itemname$ not .@itemname Use arrays~ below for(set @i, 0; @i < getarraysize(.@itemname); set @i,@i + 1){ add set .@menu$,.@menu$ + .@itemname$[.@i] + ":"; and then after the curly add.. select(.@menu$) and this would be an example of how to get the item.. set .@i,.@menu$-1; getitem .@itemid[.@i],1; end;
  8. Similar, while callfunc calls a function that has been loaded from possibly another script, callsub goes to a point somewhere within the current script. Best use the wiki to further educate yourself it'll help rather than waiting for replies from people.. http://rathena.org/wiki/Callsub http://rathena.org/wiki/Callfunc
  9. yes you can, and normally you would have the function placed in your npc folder. e.g. npc/custom/fund_palete.txt then of course you have to add it to a script_****.conf and instead of using -<tab>script<tab>SetPalete<tab>-1,{} you use function<tab>script<tab>SetPalete<tab>{} Explained here: http://rathena.org/wiki/Function
  10. I suppose manabeast is trying to say, drops.conf. Miniboss have the same "boss mode" as bosses therefore have the same drop rate. So you have to modify the boss drop rate.
  11. lua and lub are basically the same. Except for the fact that lua are decompiled lubs. They serve to help your client with skill description, skill tree, item views (the stuff xray did with the viewtable) and other stuff. lua files should be located in your data.grf folder -> data/lua files/ or in your custom folder data/lua files/, you can of course also just have them in your ragnarok folder, yourservername/data/lua files/, however in this case your client would have to be diffed to read data folder as well. http://svn6.assembla.com/svn/ClientSide/Lua_Project/ for the lua files and other tools.
  12. Your issue here, not going to far into scripting, with the script is that you didn't use @item correctly. while input @item is ok, 1, it's not a string, so only numbers work, so you'd need to use input @item$, while I personally would use .@item$. 2, in the query you used, it doesn't know what @item is because you incorrectly placed it. It should be: query_sql "SELECT `id`,`name_english` FROM `item_db` WHERE `name_english` LIKE "+.@item$, .@itemid, .@liste$; Also unless you renamed your sql db to be named itemdb, it should be item_db, and you defined 2 variables to be selected, so unless you put them into variables, your map server will hate you, so add .@itemid. The sql query above should work. Take note however that I modified @item to be .@item$ and @liste to be .@list$
  13. My script should autorespawn it on kill..
  14. That won't do. Try this: http://upaste.me/0a56429e3138a5a I removed the mapflags from the script loop because considering you don't add and remove the mapflag it makes little sense to use setmapflag, might as well just use the old method. Also, rand(100) will only do 0-99, not including 100, so rand(101) will do 0-100. I don't know if noloot doesn't exist anymore because I couldn't see it right now in const.txt but it should.. which is basically a combined version of nomobloot and nomvploot, if it errors just remove the noloot and make it nomvploot and nomobloot.
  15. Treasure boxes only show up at 00:01am once a day. Unless you've already waited that long and have the issue, in which case I'm sorry for my rather useless post.
  16. Make a second npc that requires those posts for items. And of course remember to delete those points after purchase. prontera,150,150,5<tab>script<tab>sample<tab>99,{ if(breakp <= 0) close; mes "what would you like to purchase"; switch(select("Item 1:Item 2:Item 3")){ case 1: mes "this would be item 1"; getitem itemid,itemamount; set breakp, breakp - 1; close; case 2: mes "this would be item 2"; getitem itemid,itemamount; set breakp, breakp - 1; close; case 3: mes "this would be item 3"; getitem itemid,itemamount; set breakp, breakp - 1; close; } }
  17. detachrid(.@aid_player1); it would really be best if you could post your entire script somewhere like http://upaste.me so we don't have the syntax issues as in post #3
  18. @mapexit is still an active command.. or at least it is inside atcommand.c
  19. exp2.txt should do that.. considering it's not available in rA I suggest you get it from eA, however you'll have to add missing jobs.
  20. Be more specific, where to? What control panel..?
  21. Nameless2you

    IRC

    Hmm, finds ok einen zu haben aber kann mir kaum vorstellen das er richtig benutzt wird, dachte #rathena is international und nicht nur englisch, aber hin und wieder gehts die anderen wenig an oder was sollen die anderen schon dazu sagen wenn man über etwas spricht wo se eventuell so und so wenig dazu sagen können. Liegt halt stark dran das es viele deutsch sprachige personen im irc gibt. Und zum teil sollte es duldbar sein, ist ja nicht so als würde nur deutsch geredet werden.
  22. check your npc/{somename}_athena.conf please, looks like you input some crazy ass name
  23. Easier ways, and if it's not using additional @commands then there is already a script out there, go search for it, I believe Emistry replied to it. Based on Premium user getting raised exp and increased drop rate as well would need minor modification only.
×
×
  • Create New...