Jump to content

Hijirikawa

Members
  • Posts

    193
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Hijirikawa

  1. 2 hours ago, cder said:

    @Hijirikawa 

    
    I've seen this ks system, which you mean by do-able, is it something free that someone can give me? or would they charge me? How much would something like that cost?

     

    Better look for a source coder first, they'll know how much they'll charge. Usually it depends on complexity, and since this was already done via the KS Protection thingy, it shouldn't cost that much.

    • MVP 1
  2. Use OnPCLoadMapEvent and addtimer

    -	script	asdfjkl	-1,{
    end;
    
    OnTick:
    	getitem itm,itm_qty;
    	dispbottom .sec+" second(s) has passed.";
    	addtimer .time,"asdfjkl::OnTick";
    end;
    
    OnPCLoadMapEvent:
    	dispbottom "You have entered a special zone.";
    	addtimer .time,"asdfjkl::OnTick";
    end;	
    OnInit:
    	.time = 3000;
    	.sec = .time/1000;
    	.itm = 501;
    	.itm_qty = 1;
    end;
    }
    
    prontera	mapflag	loadevent

    Untested.

    • Upvote 1
  3. On 7/21/2019 at 7:00 AM, Brahms said:

    Hi guys,, what i want is something similar with these options when you click the Pvp Warper NPC.


    1591673838_67332126_649723145507420_1260843321106890752_n(1).jpg.57b4c87dedb8cf12fa131f34522f6804.jpg

    -	script	asdfjkl	-1,{
    	if(pvp_announce)
    		.@menu$ = "Warp:[^00ff00Enabled^000000]Announce:Close";
    	else
    		.@menu$ = "Warp:[^ff0000Disabled^000000]Announce:Close";
    	mes "[ PVP Warper ]";
    	mes "Warp?";
    	switch(select(.@menu$)){
    		case 1:
    			close2;
    			warp "prontera",0,0;
    			.@enter$ = strcharinfo(0);
    			addrid(0);
    			if(pvp_announce){
    				announce "[ PvP Announcement ]: "+.@enter$+" has entered the PvP Room",bc_blue|bc_self;
    			}
    			end;
    		case 2:
    			if(pvp_announce){
    				pvp_announce = 0;
    				mes "Announce disabled";
    				close;
    			}
    			else{
    				pvp_announce = 1;
    				mes "Announce enabled";
    				close;
    			}
    		case 3:
    			break;
    	}
    end;
    OnInit:
    	.announce = 1; // 0 = off
    end;
    }

    Untested.

    • Upvote 2
  4. This is do-able via script. However you need to create two Berzebub cards, one that is bound, and one that is not bound in the database.

    You can do this by adding item restrictions via db/pre-(re)/item_trade.txt

    -	script	asdfasdf	-1,{
    	mes "[ Trade ]";
    	mes "Need "+getitemname(.req_itm)+" x"+.req_amt;
    	menu "Yes",-;
    	if(countitem(.req_itm) < .req_amt || countitem(.bnd_itm) < 1){
    		mes "No pods";
    		mes "No card";
    		close;
    	}
    	mes "Got pods";
    	delitem .req_itm,.req_amt;
    	getitem .get_itm,1;
    	close;
    OnInit:
    	.bnd_itm = 503;
    	.req_itm = 501;
    	.req_amt = 1000;
    	.get_itm = 502;
    end;
    }

     

  5. -	script	asdfjkl	-1,{
    	mes "[ PVP Warper ]";
    	mes "Warp?";
    	menu "Yeshhhh",-;
    	close2;
    	if(.announce){
    		announce strcharinf(0)+" has entered the PvP Room",0;
    	}
    	warp "prontera",0,0;
    	end;
    OnInit:
    	.announce = 1; // 0 = off
    end;
    }

    If you want players to be able to control it, that would be chaotic since they can just turn it off when someone turns it on, so I'm not gonna even go there since that just sounds silly.

  6. if(BaseLevel < .@MaxBLevel &&  JobLevel < .@MaxJLevel ) {
    	mes "You don't have the required level yet.";
    	mes "Come back when you reached it - Base Level "+.@MaxBLevel+" - Job Level "+.@MaxJLevel+"!";
    	close;
    }

    to

    if(BaseLevel < .@MaxBLevel ||  JobLevel < .@MaxJLevel ) {
    	mes "You don't have the required level yet.";
    	mes "Come back when you reached it - Base Level "+.@MaxBLevel+" - Job Level "+.@MaxJLevel+"!";
    	close;
    }

     

  7. I need a shop that adds items depending on the player's level.

    For instance I'm a level 1 Novice, so I can only buy Red potions, when I get to level 5, I can now buy Blue and Orange Potions. Items add into the shop automatically when I have enough levels available. If possible usage of arrays for easier shop manipulation.

  8. 8 hours ago, melv0 said:

    npc/custom/item_signer.txt

    I need something to check if the item's name is the same as the item holder. For instance Poring's Apple.

    Poring is carrying Poring's Apple -> NPC "Yeah, you have your apple"
    Poporing is carrying Poring's Apple -> NPC "Nope, not your apple"


    I've checked everywhere else, seems like it's not possible at this point.

  9. 11 hours ago, YJ1994 said:

    im not sure but you can check on script_commands with 

     

    Thanks, but no it doesn't really get it done. I was wondering if there's any way to identify the item. Named items to be exact. For instance "Hijirikawa's Knife" when you create something from the produce command. 

  10. Is there a way to check a named item's name? If the holder has the same name as the item?

    For instance I picked up X's Axe, and I went to the NPC it would say "You are not holding your Axe" or something.

  11. prontera,150,180,4	script	GC Exchanger	100,{
    
    mes .n$;
    mes "I can exchange your "+getitemname(.exc_id)+"s for other items.";
    mes "Please select from the list what you want.";
    mes "( ) = Price per Exchange";
    next;
    for ( set .@m,0; .@m < getarraysize(.item); set .@m,.@m + 1)
    	set .@g_menu$,.@g_menu$ + "- "+getitemname(.item[.@m])+" ("+.cost[.@m]+")" + ( (.item[.@m+1] != 0)?":":"");
    set .@g,select(.@g_menu$) - 1;
    mes .n$;
    mes "You have chosen "+getitemname(.item[.@g])+" for the price of "+.cost[.@m]+" "+getitemname(.exc_id)+"s.";
    mes "Is that correct?";
    if(select("- Yes:- No") - 1) close;
    next;
    mes .n$;
    if(countitem(.exc_id) < .cost[.@g]) {
    	mes "I'm sorry, but you don't have enough "+getitemname(.exc_id)+", please come back when you have enough.";
    	close;
    }
    getitem .item[.@g],1;
    delitem .exc_id,.cost[.@g];
    mes "Exchange complete.";
    close;
    
    OnInit:
    set .n$,"["+strnpcinfo(0)+"]";
    //= Items: Old Blue Box, Oridecon Box (10pcs), Elunium Box (10pcs), Old Purple Box, Old Card Album
    setarray .item[0],603,13890,13889,618,616;
    setarray .cost[0],250,500,500,750,2500;
    set .exc_id,7517; // Gold Coin
    end;
    }

     

    • MVP 1
×
×
  • Create New...