Jump to content

Mistique

Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by Mistique

  1. Hello Capuche, I tried the script, and a "Next Page" indeed shows up, however when I click it, there are only two options. "Back" and "NULL". Any idea how I could fix that? ^^; Thank you a lot for your kind attempt to help!
  2. Hi rAthena. I have this script (see below) and I was wondering if someone perhaps knows how to add the function in there that this person is asking for. Would it work with Arrays? Currently, my script has over 128 items in its arrays and so it drops of the last few IDs (doesnt regocnize), and I hoped that perhaps throwing in a "next page" option would fix this issue. Would it? Any help would be greatly appreciated! Indoor2,52,50,4 script Custom Headgear Trader 797,{ mes "[Custom Headgear Trader]"; mes "Hello " +strcharinfo(0)+ ", I can exchange your Custom Headgear. That means if you're ever bored of your current Custom Headgear sprite, I can easily give you another!"; next; mes "[Custom Headgear Trader]"; mes "This service however is not free, if you want to change your Custom Headgear, I require:"; mes "1x Custom Headgear"; mes "3x Cash Points"; next; if (select("Continue, please.:I'm not interested.") - 1) close; if(#CASHPOINTS < 3) { mes "[Custom Headgear Trader]"; mes "I'm sorry You do not meet the requirements. For you to use my service, I need 3 Cash Points and a Custom Headgear."; close; } mes "[Custom Headgear Trader]"; mes "Very well, let's proceed with the process. Select the Customized Headgear that you want to exchange:"; getinventorylist; for (.@i = 0; .@i < @inventorylist_count; .@i++) { if (compare(.itemidcompare$, ":"+ @inventorylist_id[.@i] +":" ) ) { .@menu$ = .@menu$ + getitemname( @inventorylist_id[.@i] ) +":"; .@select[ .@c ] = @inventorylist_id[.@i]; .@c++; } } if (.@c == 0) { sleep2 2000; mes "...Oh, it appears that you have no Custom Headgear, sorry but I can't help you."; close; } .@pickid = .@select[select(.@menu$) - 1]; mes "You've selected your ^FF0000" +getitemname(.@pickid)+ "^000000, is that correct?"; if (select("Yes, it is.:No.") - 1) close; next; mes "[Custom Headgear Trader]"; mes "Very well then, now select the item you want to exchange your " +getitemname(.@pickid)+ " for:"; mes "^FF0000To see a list of available sprites, please talk to the Headgear NPC!^000000"; .@menu$ = getitemname(.itemid); for (.@i = 1; .@i < .itemidsize; .@i++) .@menu$ = .@menu$ + ":" + getitemname(.itemid[.@i]); .@tradeid = .itemid[select( .@menu$ ) -1]; next; mes "[Custom Headgear Trader]"; mes "Please confirm that you want to use 3 Cash Points for trading your ^FF0000" +getitemname(.@pickid) + "^000000 for a ^FF0000" + getitemname(.@tradeid)+ "^000000:"; next; if (select("Confirm:Cancel") - 1) close; if (countitem(.@pickid) == 0 || #CASHPOINTS < 3) { mes "[Custom Headgear Trader]"; mes "It appears that you don't meet the requirements. In order to use my service, you need to have a Custom Headgear and 3 Cash Points."; close; } getinventorylist; for(set .@i,0; .@i < @inventorylist_count; set .@i,.@i+1){ if( @inventorylist_id[.@i] == .@pickid ) { set .@refine_rate, @inventorylist_refine[.@i]; } } delitem .@pickid, 1; if ( !.@refine_rate ) getitem .@tradeid, 1; else getitem2 .@tradeid,1,1,.@refine_rate,0,@card1,@card2,@card3,@card4; //getitem .@tradeid, 1; set #CASHPOINTS,#CASHPOINTS - 3; mes "[Custom Headgear Trader]"; mes "==================================="; mes "Official Receipt"; mes "==================================="; mes "From : " +getitemname(.@pickid); mes "To : " +getitemname(.@tradeid); mes "==================================="; dispbottom "3 Cash Points have been deducted. Current Balance = "+#CASHPOINTS+" Cash Points."; next; mes "[Custom Headgear Trader]"; mes "Thank you for using my Custom Headgear trading system, " +strcharinfo(0)+ ". Have a nice day!"; close; OnInit: setarray .itemid,8005,8006,8015,8016,8017,8018,8019,8020,8021,8022,8023,8024,8025,8026,8027,8028,8029,8030,8031,8032,8033,8034,8035,8036,8037,8038,8039,8040,8041,8042,8043,8044,8045,8046,8047,8052,8053,8054,8055,8056,8057,8058,8059,8060,8062,8063,8064,8065,8066,8067,8068,8069,8070,8071,8072,8073,8074,8075,8076,8077,8078,8079,8080,8081,8082,8083,8084,8085,8086,8087,8094,8095,8098,8100,8102,8103,8104,8105,8106,8107,8108,8109,8110,8111,8112,8113,8114,8115,8116,8112,8117,8118,8119,8120,8121,8122,8123,8124,8125,8126,8127,8128,8130,8131,8132,8133,20051,20052,20053,20054,20055,20056,20057,20058,20059,20060,20061,20062,20063,20064,20065,20066,20067,20068,20069,20070,20071,20072,20073,20074,20075,20076,20077; // Put all Headgear's here set .itemidsize, getarraysize( .itemid ); set .itemidcompare$, ":"+ .itemid[0]; for ( .@i = 1; .@i < .itemidsize; .@i++ ) .itemidcompare$ = .itemidcompare$ +":"+ .itemid[.@i] +":"; end; } } Anyone? I'm willing to pay for it.
  3. Thanks Patskie, but I've already done that, I even put it to the allowed limit of 254 but no difference. u_u Is there another way, or is 128 really as far as it goes?
  4. Hello everyone, I am having a problem with skill points. This is the case; A max. leveled knight character reset his skill point, generally the case is that he needs to add 40 (or 50, depending at what job level he changed) skill points in the first job tab. But for some reason in my server, it's only required to add 30 skill points in his first tab and he is already allowed to add skill points into his second job tab. How can I change this? I just want it to be normal (40 or 50) Thank you.
  5. Hello all, I have a question, I'm using a script that I got from patskie requested here: http://rathena.org/board/topic/86832-help-with-this-exchanger-script-please/ Somewhere in the script, it asks me to add ID's (setarray .itemid, 1618, 1604; // Put all id here) Which of course I did. But it seems like it can only take up to... like 100 items? It only recognized that much, the rest of the items just don't appear at all. What I want is that I could put more than 100, like 200 or 300. Does anyone know how to do that? Hope someone can help me. ^^ Thank you!
  6. Hello everyone, I was wondering if someone could help me with this script. What I want:If you're a trans sprite and double-click it, you'll turn into a third job sprite. if you're a third job sprite and click it, you'll turn into a trans again. Problem: If I double click it, it changes fine. But after like 1 second, it changes back to the other class again... Help is appreciated! 2393,Trans_Job_Suit,Trans Job Suit,0,0,,0,,0,,1,0xFFFFFFFE,2,2,16,,0,0,0,{ if(roclass(eaclass()|EAJL_THIRD)) changebase roclass(eaclass()|EAJL_UPPER); if(roclass(eaclass()|EAJL_UPPER)) changebase roclass(eaclass()|EAJL_THIRD); },{},{}
  7. Wow my bad! How did I mess that up... I'm sorry! Works perfect, thanks Patskie!
  8. I have an additional request for this script, could you help me, Skorm? How do I make it so the item doesn't lose it's refine rates? Right now, if you trade a +10 item, you get a unrefined item in return. I'd like it if the item you receive for it to be also +10. If you (or anyone) could help me here, I'd be very very happy!
  9. I'll try that, thank you. Works like a charm!
  10. Hello everyone! I was curious is someone could help me with this script. This is how it works, the items in "setarray .@exc_1" can be traded/exchanged for the items in "setarray .@exc_2". Problem: The script works fine if a item of "setarray .@exc_1" is present in the characters inventory, but if it isn't and someone uses the NPC, the script will bug out at the menu. As in, no "close" button will appear. (The "Cancel" doesn't actually cancel, it sends you to the next menu regardless if a item in the list is present) I've tried several ways to fix it, but it is more difficult than I thought. quiz_test,95,84,4 script Item Trader 797,{ setarray .@exc_1,8005,8006,8015,8016; // <- Checks in inventory for these items. setarray .@exc_2,8005,8006,8015,8016; // <- Available items for exchange. Pretty much a copy/paste of the IDs above^ set .@n$,"[Item Trader]"; mes .@n$; mes "Hello! I can exchange headgears, that means if you're bored of your current headgear, I can easily give you another!"; next; mes .@n$; mes "This is not a free service though. I require the following:"; mes "1x Headgear"; mes "3x Cash Point"; next; mes .@n$; mes "If you want me to do the exchange process for you, please select the Headgear you wish to exchange:"; while (.@e!=2) { set .@e,(!.@e)?"1":"2"; if (.@e==2) { next; mes .@n$; mes "Please pick your new desired Headgear:"; mes " "; mes "^FF0000(To see a list of existing sprites please check our servers database, accessable through the forums!)"; } for (set .@i,0; .@i<getarraysize(getd(".@exc_"+.@e)); set .@i,.@i+1) setd ".@m"+.@e+"$",getd(".@m"+.@e+"$")+""+(((.@e==2||(.@e==1&&countitem(.@exc_1[.@i]))))?getitemname(getd(".@exc_"+.@e+"["+.@i+"]")):"")+":"; setd ".@m"+.@e,select(getd(".@m"+.@e+"$")+":Cancel")-1; if (getd(".@m"+.@e)==getarraysize(getd(".@exc_"+.@e))) close; } next; mes .@n$; mes "Are you sure you want to exchange this item?"; menu "Yes, proceed.",-; mes "Granted, have fun!"; delitem .@exc_1[.@m1],1; getitem .@exc_2[.@m2],1; set #CASHPOINTS,#CASHPOINTS - 3; dispbottom "3 Cash Points have been deducted. Current Balance = "+#CASHPOINTS+" Cash Points."; close; } }
  11. Hello dear rAthena community. I was having a question about payments/donations done through flux. There is a player on my server that has been eager to donate, but he is unable to use paypal for this - I don't know the exact reasons. I just want to ask if there's a way to integrate Western Union or something of the kind into FluxCP. Not replace paypal, just make a second option available. If this is possible, would someone be so kind to instruct me how to do this? Thank you!
  12. Thanks for trying to help guys. Mootie; I've already changed all the pvpladder into pvp_rank, and other stuff too, like kills into kill. It still doesn't function unfortunately. I suppose I'll contact WePrioritize. If someone comes up with a solution anyway, I'll still appreciate it.
  13. Hello everyone, I have a request. I'm using a website design of WePrioritize. Along with the website came a "Best player" ranking. Which, I think, was based on Annie's Dota PVP script. That script however doesn't work on Hercules so I went with Ghosts PVP script. But apparently Ghosts ladder doesn't work with the ranking.php I got from WePrioritize... Can someone please take a look at it? Here is the table the pvp script is using (pvp_rank table in my SQL) Thank you, I appreciate it greatly! And here is the ranking.php from WePriortize: Removed
  14. Hello rAthena. Would anyone be so kind to help me with this timer script? Emistry gave this and it seemed to work at first. If I had a party of 3 on the mentioned map everything went fine and no one got warped out. However, if I partied up and warped with NPC (to another map) before 30 seconds have passed, the timer continued and (even the party of => 3) are being warped back to their savepoint, while they're at the map they're suppose to be at. I've tested this script with a party of 3. Does anyone know what the cause can be of my problem? Perhaps I should add a enablenpc trigger on the warper after 30 seconds so they can't warp before then? I'm not really sure what other options there are for this. This is the script; //- script Sample -1,{ OnInit: set .map$,"job3_arch01"; set .min_party,3; set .delay_second,30; setmapflag .map$,mf_loadevent; end; OnPCLoadMapEvent: if( strcharinfo(3) == "job3_arch01" ){ dispbottom "Please create and prepare a party in the coming 30 seconds."; if( getcharid( 1 ) ){ getpartymember getcharid(1); if( $@partymembercount >= 3 ){ end; } sleep2 50000; warp "SavePoint",0,0; dispbottom "You have been warped out."; end; } end; } } job3_arch01 mapflag loadevent
  15. I'm kinda confused about the code... do they need to count the players in guild_vs3 or Izlude? Your guild_vs3 option is referring to a part that contains Izlude... Try this: menu "Guild_Vs3 ["+getmapusers("guild_vs3")+"]",R_Izlude,"Cancel",R_Cancel;
  16. Put this behind the option in the menu; "+getmapusers("guild_vs3")+"
  17. What I want I think is simple, but I've no idea how to script it... When a player enters this map (job3_arch01), I want them to only be able to be there for 30 seconds unless he parties up with the others. I want him to be kicked out if he isn't willing to co-operate/join. It's kinda a violation thing so a specific player won't hold up the other players by just standing there and keeping them from playing the event... Does anyone know how I can make this work? - script mapwarp1 -1,{ OnPCLoadMapEvent: getmapxy @map$,@x,@y,0; if (@map$ == "job3_arch01"){ sleep2 10; dispbottom "Please prepare your party in the coming 30 seconds. Those who don't join will automatically be warped out."; sleep 30000; getpartymember getcharid(1); if($@partymembercount < 4) { warp "SavePoint",0,0; end; } } } job3_arch01 mapflag loadevent
  18. Yep, got it. Found out what's wrong. Thanks for the help.
  19. your latest registered account id is 3000000 ??? No, it is not, but neither is 2000000. I just thought I'd try to put a high number to see if it makes a difference. I can't update the NPC every few minutes to change that number, right?
  20. Yes, I have, I've set it to 3000000 but that only made it worse. It gave the testers a "It doesn't look like you're new" message, even if they were.
  21. Good day, rAthena. I've been having a problem with this referral script, and was hoping someone could help me find out what to change in order to fix it. The problem is that (when a player says he was referred to the server) the NPC says the name he wrote down is already registered in the database, even if he wrote it correct. The referred friend also won't be getting any message like he should be (dispbottom). I've had one of my GMs test it with his friend, so I'm sure they're being honest about it. Everything on the installation went successful, the tables are query'd properly. Everything else works properly, and so there is no error on the map server at all. Help would be extremely appreciated. Thank you in advance. ---
×
×
  • Create New...