Jump to content

jawbreaker

Members
  • Posts

    68
  • Joined

  • Last visited

Posts posted by jawbreaker

  1. prontera,125,93,5	script	test_girl	1_F_MARIA,{
    	mes "[List Card]";
    	mes "Please select from "+getarraysize(.cards)+" cards";
    	.@s = select(.menu$) -1;
    	mes "You selected: "+getitemname(.cards[.@s]);
    	close;
    OnInit:
    	setarray .cards, 4244,4253,4252,4245,4032,4062,4248,4249,4043,4013,4018,4234,4344,4160,4243,4138,4242,4094,4240,4114,4075,4347,4246,4247,4233,4129,4119,4356,4074,4215,4327,4320,4214,4212,4213,4229,4063,4288,4290,4289,4284,4285,4009,4202,4299,4041,4015,4293,4235,4061,4153,4296,4040,4298,4297,4272,4170,4171,4133,4279,4173,4023,4082,4125,4122,4182,4181,4098,4178,4069,4180,4004,4177,4176,4056,4070,4251,4052,4360,4349,4262,4141,4267,4002,4316,4020,4080,4158,4319,4088,4312,4151,4152,4149,4323,4280,4110,4271,4270,4278,4087,4165,4150,4157,4060,4155,4072,4161,4283,4355,4162,4164,4325,4362,4331,4322,4345,4081,4045,4019,4103,4115,4035,4328,4321,4231,4269,4268,4239,4116,4109,4139,4065,4287,4286,4366,4351,4136,4301,4307,4140,4292,4091,4291,4295,4027,4184,4195,4188,4265,4217,4191,4193,4006,4364,4076,4201,4030,4079,4105,4112,4196,4055,4084,4113,4095,4046,4097,4124,4200,4067,4199,4341,4057,4205,4339,4204,4126,4208,4317,4343,4036,4106,4090,4108,4206,4167,4127,4166,4159,4334,4093,4338,4256,4255,4085,4066,4071,4237,4310,4309,4099,4031,4007,4314,4311,4315,4120,4118,4077,4329,4011,4008,4073,4335,4024,4048,4175,4033,4337,4005,4001,4313,4003,4294,4083,4186,4350,4187,4353,4104,4154,4185,4021,4014,4192,4194,4219,4101,4216,4017,4078,4068,4326,4358,4368,4273,4230,4117,4222,4092,4025,4221,4228,4044,4037,4100,4059,4086,4220,4022,4227,4039,4223,4156,4042,4224,4226,4225,4111,4218,4089,4304,4028,4340,4282,4058,4172,4016,4012,4026,4050,4308,4336,4049,4333,4107,4209,4053,4211,4210,4332,4348,4303,4102,4258,4232,4257,4010,4264,4029,4259,4261,4260,4034,4190,4189,4346,4051,4096,4064,4277,4281,4038,4274,4275;
    	for (.@i = 0; .@i < getarraysize(.cards); ++.@i)
    		.menu$ += "^FF0000[ "+( .@i+1 )+". ]^0000FF "+getitemname(.cards[.@i]) +":";
    	end;
    }

    Is it possible to make pagination on these menu? as you can see I have more than 300 entries and wanted to add those to menu.

  2. /* Add to your function collection */
    function	script	F_GetCash	{
    	#CASHPOINTS += getarg(0);
    	dispbottom "You received "+getarg(0)+" Cash Points";
    	end;
    }
    
    /* Item Script */
      - Id: 501
        AegisName: Red_Potion
        Name: Red Potion
        Type: Healing
        Buy: 50
        Weight: 70
        Script: |
          callfunc "F_GetCash",1000;  
    
    

     

  3. 	getinventorylist;
    	.@i = 0;
    	while ( .@i < @inventorylist_count ) {
    	
    		/* Filter only items that is not bound */
    		if (!@inventorylist_bound[.@i]){
    			.@itemname$ = callfunc( "getitemname2", @inventorylist_id[.@i], @inventorylist_identify[.@i], @inventorylist_refine[.@i], @inventorylist_attribute[.@i], @inventorylist_card1[.@i], @inventorylist_card2[.@i], @inventorylist_card3[.@i], @inventorylist_card4[.@i], @inventorylist_bound[.@i]);
    			.@menu$ = .@menu$ + @itemname2_info$ + .@itemname$ +":";
    		}
    		.@i++;
    	}
    	.@s = select(.@menu$) -1;
    	
    	/* Now display ItemID of selected inventory */
    	mes "You have selected "+@inventorylist_id[.@s];  // this did not return correct info because it reads [.@s] index from getinventorylist but not the filtered menu.
    	

    im trying to make menu of items in my inventory excluding the bound items.  When select the menu, how to point it to my inventorylist?

     

  4. 
    

    Hermode Cap [1] [Upper Head] Item ID# 5481 (Hermose_Cap)

    5481,Hermose_Cap,Hermode Cap,4,20,,1000,,1,,1,0xFFFFFFFF,7,2,256,,1,1,478,{ bonus bAspdRate,10; bonus bBaseAtk,-20; bonus bMatkRate,-10; },{},{}

    I notice that when having negative value on bBaseAtk, it did not reduce atk, but if positive, it adds to atk at status window. I think it should reduce.  

     

    You can try adding bonus bBaseAtk,-20; to any items you have if you don't have 5481 in your client data for testing purposes.

  5. this one 

    pc.c: In function ‘pc_useitem’:
    pc.c:4920:23: error: ‘NPCE_ITEMUSE’ undeclared (first use in this function)
      npc_script_event(sd, NPCE_ITEMUSE);
                           ^
    pc.c:4920:23: note: each undeclared identifier is reported only once for each function it appears in
    make[1]: *** [obj/pc.o] Error 1
     
     
    can you share also OnPCUseItemEvent?
  6. Does anybody know how to handle this? Change the default paypal donation from input box USD$ _____ / rate = Credit into pull down menu with pre-defined amount and credit.  When payment completed it will still follow that IPN and give that credit automatically to donators.

     

    Scenario example:

    5USD = 1000 credit

    10USD = 2500 credit

    15 USD = 4000 credit

     

    you just cant do this using default FluxCp because it has a fixed rate. this is very useful like giving bonus to donator when they donate higher amount. 

     

    :D

     

     

     

     

  7. A. Intel Xeon E3-1245V2 3.4Ghz​ (2 core)

    B. Intel Xeon E3-1245V2 3.4Ghz​ (4 core)​

     

    given, they have same 4GB Memory, SSD HD, same data center location, same network, same operating system.

     

    I Chose "B" will it really affect game server performance for 500k players compared to A?

  8. Im happy to know that it worked on you.  Here is my setup, can u point out where did i get wrong here?

     

    A. Server 1 (Login-Server Only)

    IP Address: 128.199.191.14

    i run ./login-server only in this machine

     

    ################

    # login_conf.txt

    ################

    nothing changed

    ################

    # char_conf.txt

    ################

    userid: s1
    passwd: p1
    server_name: HappyServer
    wisp_server_name: Server
    //login_ip: 127.0.0.1
    //bind_ip: 127.0.0.1
    login_port: 6900
    char_ip: 128.199.191.14
    char_port: 6121

    ################

    # char_conf.txt

    ################

    userid: s1
    passwd: p1
    //char_ip: 127.0.0.1
    //bind_ip: 127.0.0.1
    char_port: 6121
    map_ip: 128.199.191.14
    map_port: 5121

     

    B. Server 2 (Char & Map Server)

     

    IP Address: 128.199.172.144

    i run ./map-server and ./char-server in this machine

     

    ################

    # login_conf.txt

    ################

    nothing has changed here

     

     

    ################

    # char_conf.txt

    ################

    userid: s2
    passwd: p2
    server_name: HappyServer
    wisp_server_name: Server
    login_ip: 128.199.191.14
    //bind_ip: 127.0.0.1
    login_port: 6900
    char_ip: 128.199.172.144
    char_port: 6122
     

    ################

    # map_conf.txt

    ################

    userid: s2
    passwd: p2
    //char_ip: 127.0.0.1
    //bind_ip: 127.0.0.1
    char_port: 6122
    map_ip: 128.199.172.144
    map_port: 5122

     




     

  9. this feature i think is not possible if im not mistaken. I tried

     

    2 VPS

     

    VPS1 -  Login (holds only login data) - 128.1.1.1

    VPS2 - Char+Map (holds all other data) 128.1.10.6

     

     

    yeah i searched everywhere to make this work. but no avail.  During the run, all server are interconnected but when you try to login, it will stuck on Character Selection part.  Login Server did not forward the connection to Char Server.

     

    I also tried:

     

    VPS1  Login+Char (holds ALL data) - 128.1.1.1

    VPS2  Map (holds map only) 128.1.10.6

     

    same thing, I was success full up to character select, but will not forward to map server.

     

    If somebody here can give LIGHT to this it would be a GREAT HELP!!!

  10. Okay, i searched the forum and found no hit about this.  Will latest SVN able to run older clients like 2006 - 2008?  I tried with no luck, it has problem when selecting character with this message "This character will be blocked to use until"

     

     

  11. I have problem setting up 2 active WoE at same day and time due to below checking.

     

    Is Eurphy's Woe Controller can handle simultaneous woe schedule? Like every TUESDAY 5-6pm (prtg_cas01 and prtg_cas02)?

     

     

            for(set .@i,0; .@i<.Size; set .@i,.@i+4)
                    if (.@Day == $WOE_CONTROL[.@i] &&
                     ((.@start >= $WOE_CONTROL[.@i+1] && .@start < $WOE_CONTROL[.@i+2]) ||
                     (.@End > $WOE_CONTROL[.@i+1] && .@End <= $WOE_CONTROL[.@i+2]) ||
                     (.@start <= $WOE_CONTROL[.@i+1] && .@End >= $WOE_CONTROL[.@i+2]))) {
                        mes "[New Session]";
                        mes "The chosen times overlap with an existing session.";
                        next;
                        set .@d,1;
                        break;
                    }

  12. This is currently being discussed over at Hercules, so will see how it turns out. Feel free to participate the poll.

    Edit:

    Updated to 1.9.1, removed /embed functionality, as the API functions used for that are flagged as "uncommon", "potentially dangerous" and "hacktool" by the anti-virus heuristics causing false-positives. You can still embed config with ResourceHacker.

     

    hi Ai4rei, thank you for the update, i did tried 1.9.1 and use ResourceHacker to embed confi and bmp's.  But AVAST still detect the file as malicious.  Can you check on that sir?  

×
×
  • Create New...