Jump to content

llchrisll

Members
  • Posts

    626
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by llchrisll

  1. Year I figured that I forgot to add them ... but I updated the Topic by adding them via attachment
  2. 1. the SQL Tables are in the script itself, just add it to your SQL database. The script is to add normally like any other NPC. But without the SQL Tables the ranking, bounty and promotion features won't be used. 2. For that I have to rethink about the room selection, got something in mind already though. Another question is if you want those only for 1 pvp type or for all. 3. Background Music? It uses the original one, which can be changed in the data/mp3nametable.txt. You just need to use your own if you have, but remind that it requires a certain "Bitrate", 80kBit/s is the ideal/max BitRate. 4. The script itself will use the, depending on the reward you have put at "set $@bty_type,x;" > set $@bty_type,1; in this case, the required options. The settings are starting near line 584. Just put the reward you want and edit the value, for Zeny: if($@bty_type == 1) { // =============== Zeny ========== // set $@bty_price,5000; // Zeny per Sphree CashPoints: } else if($@bty_type == 2) { // =============== Cash Points ========== // set $@bty_price,2; // Cash Points per Sphree Bounty Points: } else if($@bty_type == 3) { // =============== Bounty Points ========== // set $@bty_price,5; // Bounty Points per Sphree You don't have to put "//" or delete anything. Just putting the reward type and, like already mentioned, the reward itself. Regards, Chris
  3. 1. Will be automatically used when you install the SQL Tables. 2. setarray $@room$[1],"Prontera","Alberta","Izlude","Payon","Morroc"; setarray $@muser[1],70,45,30,55,60; if($@debug) announce "PvP Town Maps loaded: "+$@room$[1],bc_self; // Dispell PvP setarray $@disppvp$[1],"pvp_y_1-1","pvp_y_1-4","pvp_y_1-2","pvp_y_1-3","pvp_y_1-5"; // Normal PvP setarray $@npvp$[1],"pvp_y_2-1","pvp_y_2-4","pvp_y_2-2","pvp_y_2-3","pvp_y_2-5"; // ================== Deathmatch Settings + Maps ================ setarray $@dmpvp$[1],"pvp_y_3-1","pvp_y_3-4","pvp_y_3-2","pvp_y_3-3","pvp_y_3-5"; // ================= Party PvP Settings ================= // ========= 2vs2 Party PvP ==========// setarray $@pt2pvp$[1],"pvp_y_4-1","pvp_y_4-4","pvp_y_4-2","pvp_y_4-3","pvp_y_4-5"; // 3vs3 Party PvP setarray $@pt3pvp$[1],"pvp_y_5-1","pvp_y_5-4","pvp_y_5-2","pvp_y_5-3","pvp_y_5-5"; // 4vs4 Party PvP setarray $@pt4pvp$[1],"pvp_y_6-1","pvp_y_6-4","pvp_y_6-2","pvp_y_6-3","pvp_y_6-5"; // 5vs5 Party PvP setarray $@pt5pvp$[1],"pvp_y_7-1","pvp_y_7-4","pvp_y_7-2","pvp_y_7-3","pvp_y_7-5"; The PvP Arenas are readed via Index: setarray $@room$[1],"Prontera","Alberta","Izlude","Payon","Morroc"; [1] = Prontera [2] = Alberta [3] = Izlude [4] = Payon [5] = Morroc Which does only display what the Map will look like, since I used the already implented ones, which are also used from the Inn > PvP Keepers. To change those, it would require an huge modify of the script itself, if you want to change only 1 pvp room. Else you would require of the same map, multiply duplicates, like the used ones. But it's already late here, so I will be able to do that tomorrow(= today in the afternoon - 00:16 am o.o here) 3. Do you mean the spree bgms right? The spree announces will be used on every map/pvp arena. 4. // ============== Bounty Settings =========// // Bounty Type: 0 = Off, 1 = Zeny, 2 = Cash Points, 3 = Bounty Points set $@bty_type,1; You can choose only one reward, just edit this value to your like. The reward is a bit below, just take a look at the "if($@bty_type == <X>) {" at the "$@bty_price" a short explanation/comment is added as well. Regards, Chris
  4. No problem, I still do sux with it, well didn't test other commands yet like "JOIN" and so on. Tried it once, but since I have 2 login databases it didn't work. I tested something and it used the login db of the 2nd server instead of the 1st where the accounts are saved -.-. Btw I wrote the post before with my iPhone4, cuz I afterwards realized that you posted that table & field names >_<. So I didn't know how to edit .
  5. After the removal of the items, put this query_sql "UPDATE table SET points = points + 1 WHERE char_id = "+getcharid(0); Just edit the names of these: table > the table to edit, points > field where the points are saved Regards, Chris
  6. The file for the .bmp entry if you right-click > "View" is num2cardillustnametable.txt "À̸§¾ø´ÂÄ«µå" is the entry for the resnametables, which Triper mentioned already, which shows the sprite of the card, same for every card, except you wanna use a special one. carditemnametable.txt is (in my opinion) a referance for the client how to deal with that item. Just put the ID and an "#" like the ones above. Here is an example of one my cards: I hope I was able to help . Regards, Chris
  7. Important Hint: You have to change that Password now o.o You can be hacked easily if you don't. Also never post, where passwords/usernames are used, like this! Best is to exchange it with an dummy or leave it empty. Since you forgot to "overdraw" the IP at your screenshot, everyone knows the IP. To be honest I tested that just now, (sry for that o,o) but I didn't change anything so no worry^^. Regards, Chris
  8. Since you are mentioning "Custom Items", I'm wondering how your data folder can be the latest version ^^. Cuz' I'm using an ....hmm.... very old data folder (xD) with the latest SVN's and didn't had any problem so far (well with lua files mostly o.o, stupid dates xX) I would appreciate if you could post the items which aren't working also what the entries of the files are: item_db(2).txt // Identified Items idnum2itemdesctable.txt idnum2itemdisplaynametable.txt idnum2itemresnametable.txt // Unidentifies Items > Dropped Items (mostly equip): num2itemdesctable.txt num2itemdisplaynametable.txt num2itemresnametable.txt // For slotted items: itemslotcounttable.txt Mostly ( from my experience so far o.o), its the fault of missing entries in the resnametables which are responsible for showing the sprite. (Happened to me too..., missed an # somewhere and an file name wasn't read accordingly) Btw post the entries with code tag (just saying :I) so the post won't be too long Regards, Chris Note: I don't want to offend someone o.o, so I'm sorry in case I did ^^.
  9. Thanks for that <3, give you a cookie later . Regards, Chris
  10. You forgot about the day check^^ Add after "OnPCLoadMapEvent:" if(gettime(4) != 1) end; Also I would put an "end;" after the "setmapflag .Map$,mf_loadevent;" . Regards, Chris
  11. Update: 12/19-2011: Added 1 New NPC: PvP/GvG & MvP Arena Added my PvP/GvG & MvP Arena, read the first post for the important info. Regards, Chris
  12. Guys.... I'm just saying, but he says something about "Per Char": But he thinks that his script affects the whole acc which isn't the case o.o. Regards, Chris
  13. ====== Update: 12/17-2011: Fixxed Restaurant & Virtual Password Scripts ====== Fixxed Mediafire.com link, also removed those lines I forgot to remove in the Restaurant v1.0 script. Virtual Password v1.2(.1): Modified the Security Question & Answer and added a few features. Tested and working perfectly. Regards, Chris
  14. Uh... Seems like I forgot to delete that Part, it was for testing purposes only since I was lazzy to restart the Server for very bug which appeared. Just delete those entries and the One at the OnInit part ^^ Best Regards, Chris PS.: writing with my iPhone 4 is difficult, when it does to Auto-Correctur it into my language.
  15. keep the delay of each monster to spawn on the map, as in on 1mins, the mob killed and spawned back. if can, try set the mob for high rate level 255 server p/s : i hope Emistry can help While I can't help you about the instance thingy, except making/using an extra map for it, the other things are easy. Look at this: OnInit: If ($zeny_room_map$ == "") { Set $zeny_room_map$, "morocc"; } If ($zeny_room_mob == 0) { Set $zeny_room_mob, 1002; } If ($zeny_room_amount == 0) { Set $zeny_room_amount, 150; } If ($zeny_room_z[1] <= 0) { SetArray $zeny_room_z, 0, 10000; } $zeny_room_map$ = Change the map here. $zeny_room_mob,1002; = Here is the Mob ID you want. $zeny_room_amount, 150; == Mob Spawn Quantity $zeny_room_z, 0, 10000; == Zeny Amounts > 0 = Min, 10k Max Change, in your example, 0 into 50k and the 10000 into 100000 $zeny_room_dellay, 10; == Mob Spawn Delay in Seconds So for 1 min exchange the "10" with a "60" ^^ Regards, Chris
  16. That would be correct already o.o: The "name" and "name$" is for character based variables "@name" and "@name$" are temporary character variables. "#name" and "#name$" are for the entire account. Side-Note: "$" at the end of the variable means that the variable allows text input. Without this it only allows numbers. Regards, Chris
  17. Thanks for your comment. Did you made any modification? since ".n$" = String, that means it allows text. But in your error it excepts a number o.o, cuz' in my script nothing like that appears... Best would be to post your script, just in case. About "script_rid2sd: fatal error ! player not attached!" When did that happen, what exactly did you do at that time? Regards, Chris
  18. Worked fine for WinRar (v4.00) & 7-Zip (v9.20), dunno what your problems are o.o. Thanks for release and share , calciumkid. Regards, Chris
  19. Hmm Side Note o.o: 1st: Please post the solution you used in case other players have the same problem. 2nd: Please use Edit button, you used it already (like I saw on your previous post ) Regards, Chris
  20. Thanks for the post, goddameit.. It seems it was a part of "OnInit" mistake, what I'm still unsure about why it didn't work for exactly this script. Because I tested the same on an another script I had to test with multiply NPCs and THERE it worked just fine..... I was like "Wtf, why does it work for this script, but not for this one" >_<. I'm gonna try another solution I had in mind before I had to go to work, so I couldn't respond immediatly. Just to make sure, I learned that "setd/getd" doesn't require RID attached, so I (sry mods) I apologize for not testing it for other scripts first to proof that it wasn't just this script. Still.... I'm wondering why, like mentioned, it didn't work for this script. Well got to fight with my "Unload multiply NPCs > Map Server Crash" problem ^^. Dunno why though. About .@i and .i: In my first script I had .@i, then tried .i, still didn't work ,and forgot to rechange it back to .@i at those two positions when I posted this thread. Best regards and thanks again, Chris ~ Close please
  21. Hello, guys. I'm in need of help with the command setd/getd. Short explanation what I wanna talk about. Currently I'm scripting an PvP/GvG/MvP Arena with Ranking and Bounty feature (+Shops). Before I added the bounty feature it kinda worked fine, to say that before hand :I. Anyway also I'm working on my Global NPC Handler, which uses setd/getd partly. Then I thought about saving some space and make an improvement. So I'm tried to add the set/getd in the extra Conf NPC (need explanation? view my script) This is what I exactly mean - a main problem of it... - script <NPC_Name>_Conf -1,{ end; OnInit: // Exchange the NPC 1, etc, with the NPC Name you want to disable setarray .npc$[0],"NPC 1","NPC 2","NPC 3"; // etc, but don't put this npc set .conf_npc$,strnpcinfo(1); // Here comes this NPC, will be unloaded only. end; } Now the newer one: setarray .npc$[0],"PvPGvGMain","Arena Master","Arena_ShopB","Arena_ShopC","Arena_ShopZ"; // etc, but don't put this npc set .ext$,"main"; // In which variable is it saved? $@npc_main$ > "main" ... as example set .conf_npc$,strnpcinfo(1); // Here comes this NPC, will be unloaded only. OnNPCConf: if(playerattached() == 1) dispbottom "Extension: "+.ext$; for( set .@i,0; .@i < getarraysize(getd("$@npc_"+.ext$+"_alias$")); set .i,.i + 1) { if(.conf_npc$ == getd("$@npc_"+.ext$+"_alias$["+.@i+"]")) { setd("$@npc_"+.ext$+"_a["+.@i+"]"),getarraysize(.npc$); setd("$@npc_"+.ext$+"_lo["+.@i+"]"),1; setd("$@npc_"+.ext$+"_ab["+.@i+"]"),1; } } end; (Don't mind the "OnNPCConf" - is used for bug fixxing atm.) Here comes the problem - to get a hang of the problem I added this: OnWhisperGlobal: if(!getgmlevel()) end; for( set .@i,0; .@i < getarraysize(getd("$@npc_"+.ext$+"_alias$")); set .@i,.@i + 1) if(.conf_npc$ == getd("$@npc_"+.ext$+"_alias$["+.@i+"]")) { dispbottom "Index :"+.@i+" - NPC "+.conf_npc$+" and these "+getd("$@npc_"+.ext$+"_a["+.@i+"]")+"(Setd Array) / "+getarraysize(.npc$)+"(.npc$ Array) NPCs found:"; for( set .@n,0; .@n < getarraysize(.npc$); set .@n,.@n + 1) dispbottom "- "+.npc$[.@n]; dispbottom "Loaded: "+getd("$@npc_"+.ext$+"_lo["+.@i+"]") +"/Enabled: "+getd("$@npc_"+.ext$+"_ab["+.@i+"]"); } if(select("- OnNPCConf:- Nevermind") == 2) close; goto OnNPCConf; end; } After the Map Server start, the "set/getd" shows "0", after I chose "OnNPCConf" and rewhisper him again, it shows the wanted result. Here are some images: So does this mean "setd/getd" requires an rid attached? Something similiar happenes to my Bounty Shops - about attached rid I mean q.q: // Shop Items: PvP useful stuff D:, like Elements, Boxes and Food // These will be used for all shops, but the prices depends on the Bounty Type you have set. setarray .arena_sh[0],12020,12028,12029,12030,12031,12032,12033,12034,12108,12215,12216,12217,12218,12219,12075,12080,12085,12090,12095,12100,12114,12115,12116,12117,12118,12119,12120,12121,13543,13544,13545,13546,13547,14593; if($@bty_type == 1) { npcshopdelitem "Arena_ShopZ",512; // Prices: // Default is a formula: ($@bty_z+(.@s*($@bty_z/10)))/2 // Base Price = $@bty_z, "Multiplier" = + (Index ID* ($@bty_z/10))/2 // Example: 5000 + (4(=Index of 12031)*(5000/10=500) > 7000/2 = 3500 Zeny for 12031 // Note: If the formula results in a decimal number it will be degraded. // If you wanna use your own prices, comment the line with the formula and uncommented the line with the array below. // But remember to put the prices for all items. // setarray .arena_pr[0],100,100,0; // Etc // For the Shop itself, how the costs are set: set .arena_pay,1; // 1 = Formula, 2 = Per Array for ( set .@s,0; .@s < getarraysize(.arena_sh); set .@s,.@s + 1) { if(.arena_pay == 2) npcshopadditem "Arena_ShopZ",.arena_sh[.@s],.arena_pr[.@s]; else { set .@arena_pr,($@bty_z+(.@s*($@bty_z/10)))/2; // Formula npcshopadditem "Arena_ShopZ",.arena_sh[.@s],.@arena_pr; } } } else if($@bty_type == 2) { npcshopdelitem "Arena_ShopC",512; // Prices: // Default is a formula: ($@bty_c+.@s)/2 // Base Price = $@bty_c, "Multiplier" = + Index ID/2 // Example: 2 + 4(=Index of 12031) > 6/2 = 3 Cash Points for 12031 // Note: If the formula results in a decimal number it will be degraded. // If you wanna use your own prices, comment the line with the formula and uncommented the line with the array below. // But remember to put the prices for all items. // setarray .arena_pr[0],100,100,0; // Etc // For the Shop itself, define the way how the costs are set: set .arena_pay,1; // 1 = Formula, 2 = Per Array for ( set .@s,0; .@s < getarraysize(.arena_sh); set .@s,.@s + 1) { if(.arena_pay == 2) npcshopadditem "Arena_ShopC",.arena_sh[.@s],.arena_pr[.@s]; else { set .@arena_pr,($@bty_c+.@s)/2; // Formula npcshopadditem "Arena_ShopC",.arena_sh[.@s],.@arena_pr; } } } else if($@bty_type == 3) { npcshopdelitem "Arena_ShopB",512; // Prices: // Default is a formula: ($@bty_b+(.@s*10))/2 // Base Price = $@bty_b, "Multiplier" = + (Index ID* 10)/2 // Example: 5 + (4(=Index of 12031)*10) > 45/2 = 22 Bounty Points for 12031 // Note: If the formula results in a decimal number it will be degraded. // If you wanna use your own prices, comment the line with the formula and uncommented the line with the array below. // But remember to put the prices for all items. // setarray .arena_pr[0],100,100,0; // Etc // For the Shop itself, how the costs are set: set .arena_pay,1; // 1 = Formula, 2 = Per Array for ( set .@s,0; .@s < getarraysize(.arena_sh); set .@s,.@s + 1) if(.arena_pay == 2) npcshopadditem "Arena_ShopB",.arena_sh[.@s],.arena_pr[.@s]; else { set .@arena_pr,($@bty_b+(.@s*10))/2; // Formula npcshopadditem "Arena_ShopB",.arena_sh[.@s],.@arena_pr; } } if($@debug) announce "Arena Shop loaded.",bc_self; if(!.@re_in) end; Previously I had it execute "OnInit" but opening the shop, shows it doesnt work. So I added also the "OnWhisperGlobal" to see what happened. When I initate it via whisper the shops (item/prices) are being added like I wanted. First I thought that the loading order would be the problem, but it wasn't (well I believed that, but to be sure) so I exchanged/added an extra label to it and used "doevent" after I had loaded the required variables. But didn't help either so far. So can anybody help me with this? o.o Regards, Chris Note: I'm using eAthena SVN 14434 SQL Trunk for my Test server, could that be the problem?
  22. Thanks for your comments, I'm glad my work could be of help . BUT: I just found an major bug in the Global NPC Handler, dunno why I oversaw that: I forgot to change some variable "$" into "$@" in some "getd("$...", also the Unload part kinda crashes my map server o.o, it was fine before I released it though >-<. Gimme some time to fix it, and I would recomment to delete/disable that NPC for the time being >_<. (If you downloaded it though ;I) Regards, Chris Edit: The error occured by misconfiguration.... on my side, well I can't get it unload more than 1 npc atm o.o though.
  23. you may use this Script made by @llchrisll I'm atm trying to add a few features to that script o.o, like saving the settings on the whole acc or just the char it is done already. Also adding the autolootitem/alootid with multiply items, but well that is after my Arena Master [/advertize] Btw, thanks for mentioning my script . Regards, Chris
  24. Nothing serious, but wouldn't that be originally 127 Skill Points, since you're starting with Job Level 1 so you're missing one each :I. Novice = 9 Skill Points First Class = 49 Skill Points Second Class = 69 Skill Points ======= 127 Skill Points for me ^^ Regards, Chris
×
×
  • Create New...