Jump to content

Yhaj

Members
  • Posts

    41
  • Joined

  • Last visited

Posts posted by Yhaj

  1. On 11/15/2019 at 9:13 AM, Ukiram said:

    Thanks bro. ❤️ Love ya

     

    On 11/15/2019 at 8:18 AM, Bringer said:
    	if(sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_STAR) {
    		sd->right_weapon.addclass[CLASS_BOSS] += 100;
    		sd->left_weapon.addclass[CLASS_BOSS] += 100;
    		sd->right_weapon.addele[ELE_HOLY] += 100;
    		sd->left_weapon.addele[ELE_HOLY] += 100;
    	}

     

    Hi, where will I put this?

  2. On 5/9/2020 at 8:59 PM, Start_ said:

    Check D:\rathena\db\re\skill_nocast_db.txt is there are any Devotion on this files?

    None sir

    When the two players is not on the GVG maps (WoE, KoE etc. etc.) It can cast Devotion and it works throughly, but if the two players is in GVG, same players are 99 they cannot cast devotion

    ... Edited ...

    Update, Only on Castles and guild_vs1 ~ guild_vs5

  3. 21 hours ago, Kreustoo said:

    Hello,

    Work on account and only on reconnection :

    -	script	RewardForCo	-1,{
    
    	OnPCLogoutEvent:
    		if(@timingConnected > 0){
    			@timeConnected = gettimetick(2)[email protected];
    			#sumConnected = #sumConnected + @timeConnected; // in seconds
    		}
    	end;
    	
    	OnPcLoginEvent:
    		if(!#rewardConnection){
    			if(#sumConnected >= 1296000) //15 days in seconds
    			//if(#sumConnected >= 60) //1 minute, if you want to test
    			{
    				getinventorylist;
    				if(checkweight(500,1) && @inventorylist_count <= (100-1)){
    					#rewardConnection = 1;
    					getitem 501,1; //REWARD -- edit the test if you add multiple items
    					dispbottom "Great !";
    				}else {
    					dispbottom "Too heavy to get the reward !";
    				}
    			}else {
    				@timingConnected = gettimetick(2);
    			}
    		}
    	end;
    }

    Not heavily tested

    Ohhhh, Thanks I'll gonna test it ^_^

  4.  

    On 3/23/2020 at 10:22 PM, Patskie said:

    You can try below script and let me know if it works 😛

    -	shop	PVPSHOP	-1,501:20000
    
    prontera,150,150,0	script	PVP Points Shop	100,{
        callshop "PVPSHOP", 1;
        npcshopattach "PVPSHOP";
        end;
       
        OnBuyItem:
            for ([email protected] = 0; [email protected] < getarraysize(.items); [email protected] += 2) {
                for ([email protected] = 0; [email protected] < getarraysize(@bought_nameid); [email protected]++) {
                    if (@bought_nameid[[email protected]] == .items[[email protected]]) {
                        if (checkweight(@bought_nameid[[email protected]],@bought_quantity[[email protected]])) {
                            if (#PVPPOINTS < .items[[email protected]+1] || #PVPPOINTS < (.items[[email protected]+1] * @bought_quantity[[email protected]]))
                                dispbottom "You don't have enough PVP points";
                            else {
    							#PVPPOINTS -= .items[[email protected]+1] * @bought_quantity[[email protected]];
                                getitem @bought_nameid[[email protected]], @bought_quantity[[email protected]];
                            }
                        } else dispbottom "You cannot carry out more items with you";
                    }
                }
            }
    		// clean up before ending
            deletearray @bought_quantity, getarraysize(@bought_quantity);
            deletearray @bought_nameid, getarraysize(@bought_nameid);
            end;
     
        OnInit:
            setarray .items, 1000,1,1001,2; // Usage : <item id>,<price>{,<item id>,<price>}
            npcshopitem "PVPSHOP",0,0;
            for ([email protected] = 0; [email protected] < getarraysize(.items); [email protected] += 2)
                npcshopadditem "PVPSHOP", .items[[email protected]], .items[[email protected]+1];
            end;
    }
    
    -	script	Func_PVP	-1,{
    	OnPCKillEvent:
    		if (getcharid(3) == killedrid || strcharinfo(3) != "prontera") end;
    		#PVPPOINTS += .p[0];
    		dispbottom "You won " + .p[0] + " pvp points. New pvp points is " + #PVPPOINTS;
    		end;
    		
    	OnPCDieEvent:
    		if (getcharid(3) == killerrid  || strcharinfo(3) != "prontera") end;
    		if (#PVPPOINTS > .p[1]) {#PVPPOINTS -= .p[1];}
    		else {#PVPPOINTS = 0;}
    		dispbottom "You lost " + .p[1] + " pvp points. New pvp points is " + #PVPPOINTS;
    		end;
    
    	OnCheckPoint:
    		dispbottom "You currently have " + #PVPPOINTS + " pvp points.";
    		end;
    	OnInit:
    		setarray .p[0], 2, 1; // points per kill, points per death
    		bindatcmd "checkpoints", strnpcinfo(0) + "::OnCheckPoint";
    		end;
    }

     

    I would like to ask regarding this one, how to add maps? || strcharinfo(3) != "prontera" to? || strcharinfo(3) != "pvp_y_5-2" || strcharinfo(3) != "pvp_y_5-3")???

  5. image.png.3a847b53e9ee5771091b3773dd936bb5.png

     

    #ifdef VIP_ENABLE
    	#define MIN_STORAGE 500 // Default number of storage slots.
    	#define MIN_CHARS 9 // Default number of characters per account.
    	#define MAX_CHAR_VIP 3 // This must be less than MAX_CHARS
    	#define MAX_CHAR_BILLING 3 // This must be less than MAX_CHARS
    #endif

    this is the code, when i change MIN_CHARS to 12 the error occurs, I am using Packetversion of 20180620 so it should be maximum of 15 characters

     

    Thanks in advance. for the help

  6. Just now, Start_ said:

    Did you made custom item right?

    Just use 'warp' function to specific location I think it's will not check any mapflag.

    Hmmm I don't understand ... 

    My Item description is 35000,Unli Fly Wing,Unli Fly Wing,11...........{ warp "strcharinfo(3)",0,0; },{},{}

    then I want this item to put it on Noteleport mapflag

  7. 2 hours ago, Akkarin said:

    It means that your `cp_itemshop` table already has the column `use_existing` in it, possibly because this isn't a first-time install and you've already had FluxCP tables in your RO DB, or something went wrong before the final part of the installation process and it's trying again.

    A cheap and nasty hack around this is to delete the file data/schemas/charmapdb/cp_itemshop.20081109093448.sql and then hit refresh on the page. This will skip over that part of the installation process.

     

    I've also updated your topic title as "FluxCP Critical Error" is not an informative topic title.

    I don't understand

×
×
  • Create New...

Important Information

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