Jump to content

Subzero

Members
  • Posts

    60
  • Joined

  • Last visited

Posts posted by Subzero

  1. On 8/2/2021 at 12:50 AM, Ronald said:

    Ohh, sorry. Though the logic is just the same.

    
    	case 2:
    		if ( mobcount( "this", strnpcinfo(3)+"::OnMobDead" ) ) {
    			mes "[MVP Summoner]";
    			mes "I cannot summon another MVP when there are monsters around.";
    			close;
    		} else if ( .mvpcost ) {
    			mes "[MVP Summoner]";
    			mes "The cost to summon an MVP is "+ callfunc( "F_InsertComma", .mvpcost ) +" Mithril Coin.";
    			next;
    			set .@menu, select(.mvpid_menu$) -1;
    			mes "[MVP Summoner]";
    			if (countitem(675)  < .mvpcost ) {
    				mes "You don't have enough Mithrils to summon an MVP.";
    				close;
    			}
    		} else {
    			set .@menu, select(.mvpid_menu$) -1;
    			mes "[MVP Summoner]";
    		}
    		mes "Please get ready.";
    		close2;
    		if (countitem(675)  > .mvpcost ) end;
    		delitem 675,1*.mvpcost;
    		monster "this", 0, 0, "--ja--", .mvpid[.@menu], 1, strnpcinfo(3)+"::OnMobDead";
    		end;
    	case 3:
    		if ( mobcount( "this", strnpcinfo(3)+"::OnMobDead" ) ) {
    			mes "[MVP Summoner]";
    			mes "I cannot summon another mini-boss when there are monsters around.";
    			close;
    		} else if ( .bosscost ) {
    			mes "[MVP Summoner]";
    			mes "The cost to summon a mini-boss is "+ callfunc( "F_InsertComma", .bosscost ) +" Mithril Coins.";
    			next;
    			set .@menu, select(.bossid_menu$) -1;
    			mes "[MVP Summoner]";
    			if (countitem(675)  < .bosscost ) {
    				mes "You doesn't have enough Mithrils to summon a mini-boss.";
    				close;
    			}
    		} else {
    			set .@menu, select(.bossid_menu$) -1;
    			mes "[MVP Summoner]";
    		}
    		mes "Please get ready.";
    		close2;
    		if (countitem(675)  > .bosscost ) end;
    		delitem 675,1*.bosscost;
    		monster "this", 0, 0, "--ja--", .bossid[.@menu], 1, strnpcinfo(3)+"::OnMobDead";
    		end;
    
    _____
    	set .mvpcost, 10;	// Zeny cost to summon an MVP (0 = free)
    	set .bosscost, 10;	// Zeny cost to summon a boss monster (0 = free)

    Haven't tried it though. Optimized it if there are any errors since I haven't tested it yet. But it will definitely give you a huge idea on how it should work.

    dont have error issue but when i spawn

    coin not gone mvp not spawned

     

  2. 1 hour ago, Ronald said:

    Yes, it's possible. Just change its condition.

    For example:

    
    if (countitem(674) > 10){
    {
    		if ( .inuseid[.@room] == getcharid( .type[.@room] ) ) {
    			warp "06guild_0"+ .@room, 0,0;
    			delitem 674,10;
    			close;
    }
    
    else if (countitem(674) < 10)
    {
    mes "You don't have enough zeny to rent a room.";
    }

    Haven't tried it yet though. I may have deleted some of the parameters but its for you to check out what shouldn't be deleted. I just gave you a brief and example. You just have to change condition of zeny to an item using item count.

     

    Good luck!

    for spawn sir not renting room

  3.   - Id: 30000
        AegisName: Shadow Gear
        Name: Shadow Gear
        Type: Shadowgear
        Locations:
          Shadow_Left_Accessory: true
        EquipLevelMin: 1
        Refineable: false
        Script: |
          changebase 4060; },{},{ changebase Class;

           bonus2 bSubEle,Ele_All,5;

           skill "PR_KYRIE",7;

           bonus bStr,5;

     

    i got error with this script

  4. On 6/3/2021 at 5:39 PM, Chaos92 said:

    Like this ?

    
    bonus bStr,getrefine()/2;
    bonus bAtk,20*(getrefine()/2);
    	
    if (getrefine()>9) {
    bonus bDex,5;
    bonus bStr,5;
    }

     

    thanks sir  solved

     

  5. 1 hour ago, cook1e said:

    Maybe a NPC?

     

    
    rontera,237,81,5	script	Performer	479,3,3,{
    	end;
    	
    OnTouch:
    	if( .sbragi < gettimetick(2) ){			// triggered within area 7x7, start bragi if not on delay
    		unitskilluseid getnpcid(0),321,10;	// bragi(321) level 10
    		set .sbragi,gettimetick(2) + 180;	// delay 3 minute for npc to cast song
    	}
    	end;
    	
    OnInit:
    	setunitdata getnpcid(0),UNPC_INT,150;	// set npc INT 150
    	setunitdata getnpcid(0),UNPC_DEX,150;	// set NPC DEX 150
    	end;
    }

     

     

    its posibble make non npc?

    like buff area btw im trying dont have effect but no error show up on putty

    Quote

    prontera,237,81,5    script    Performer    479,3,3,{
        end;
        
    OnTouch:
        if( .sbragi < gettimetick(2) ){            // triggered within area 7x7, start bragi if not on delay
            unitskilluseid getnpcid(0),320,10;    // bragi(321) level 10
            unitskilluseid getnpcid(0),321,10;    // bragi(321) level 10
            unitskilluseid getnpcid(0),330,10;    // bragi(321) level 10
            unitskilluseid getnpcid(0),322,10;    // bragi(321) level 10
            set .sbragi,gettimetick(2) + 0;    // delay 3 minute for npc to cast song
        }
        end;
        
    OnInit:
        setunitdata getnpcid(0),UNPC_INT,150;    // set npc INT 150
        setunitdata getnpcid(0),UNPC_DEX,150;    // set NPC DEX 150
        end;
    }

     

  6. 13 hours ago, Z3R0 said:

    https://pastebin.com/sCJ905qt

     

    this should resolve it, see the first example, where I use strings, and combine multiple prizes with | and also specify multiple rewards with prizes... It's not "perfect" but it should get the job done (untested)

    sir its possible add other list like set no.1,set no.2,set no.3

    like player can choose which 1 want to make it

  7. On 3/19/2019 at 9:49 AM, Anta said:

    Hello guys, i'm newbie in the community, so i don't know if my post is in the correct section.

    Yesterday i implemented multi-hit critical damage, then i started to check some skills, in fact everything Works fine, but i think that maybe there's a bug with Sharp Shooting.

    It's supposed that Sharp Shooting Will deal a critical damage if you have a high critical rate, but the skill doesn't do something like that.

    I tested in my server, and also i tried in a local server with the last emulator update, because i believed that maybe the bug appears when i applied the multi-hit critical patch, but it doesn't.

    First this's on my server:

    And this's on the local server with the last emulator update:

     

    Like you can see, Sharp Shooting can't do a critical damage, and because of that anything that increases critical damage like the paper card, temporal boots LUK, or anything else doesn't boost the damage. 

    Excuse me for my bad english.

    Forget it. i already solved it.

    can u share which part need change?

    please need it

  8. 4 hours ago, Poring King said:

    Try this i made it thru phone if this won't work then at least i give you idea how to do it

     

    
    prontera,x,y,3	script	testHideDuringWoe	99,{
    
    
        if ( agitstart() || agitstart2() || agitstart3()){
    		if ( gettime (DT_DAYOFWEEK) == Day1 || Day2 || day 3 || etc ){ // Do this if the first condition true then do another condition inside condition
    				// If the condition do the code here
    		}
    		end; if the condition of day is false then end the script    
        }
        end;// End the script if the condition is false
    
    OnInit:
    		hideonnpc "NPCNAME";
    		end;
    }

     

    izlude,160,89,3    script    testHideDuringWoe    99,{


        if ( agitstart() || agitstart2() || agitstart3()){
            if ( gettime (DT_DAYOFWEEK) == Day1 || Day2 || day 3 || etc ){ // Do this if the first condition true then do another condition inside condition
                    // If the condition do the code here
            }
            end; if the condition of day is false then end the script    
        }
        end;// End the script if the condition is false

    OnInit:
            hideonnpc "Rental Donation";
            end;
    }
     

    not working sir

     

  9. 6 hours ago, Scylla said:

    Not tested & not sure but try:

    
    izlude,128,112,3	script	Rental Donation	122,{
    
    disablenpc strnpcinfo(1);
     
    	mes "[RentalNPC]";
    	mes "Welcome to Beginning Ragnarok!!";
        	mes "What Service May I Offer You ?";	
    	next;
    	mes "Please select your class specific Rentalthat you want to get:";
    		switch(select("Rental Donation Increase:Rental Donation Magic:Rental Donation Reduce")) {
    			case 1:
    				mes "[RentalNPC]";
    				mes "Here's your Rental for Increase Donation Set";
    				rentitem 5013,300;
    				goto Message1;
    				end;
    			case 2:
    				mes "[RentalNPC]";
    				mes "Here's your Rental for Magic Donation Set";
    				rentitem 13945,300;
    				goto Message1;
    				end;	
    			case 3:
    				mes "[RentalNPC]";
    				mes "Here's your Rental for Reduce Donation Set";
    				rentitem 13945,300;
    				goto Message1;
    				end;
    				}
     
    	Message1:
    	mes "[RentalNPC]";
    	mes "Enjoy ur WOE.";
    	mes "If you need help. Please use @request / search for Game Staffs. Thank You.";
    	mes "Before Expired Please Remove The Card.GM Wont Responsible if any card Lost.";
     
    	close;
    
    OnSat2100:
    OnSun2100:
    	enablenpc strnpcinfo(1);
    	end;
    
    OnSat2200:
    OnSun2200:
    	disablenpc strnpcinfo(1);
    	end;
     
    	}

     

    thanks sir its work but need click the npc first to made it hide

  10. hello may i req a script work like this player can choose 1,2 or 3 types quest example

    set A 

    -kaho,sungglasses,flu mask

    item need 100 jelopy 100 feather and kill 5 ifrit

    Set B

    -solar,sungglasses,flu mask

    item need 100 jelopy 100 feather and kill 5 turtle

    Set C

    -valkyrie helm,sungglasses,flu mask

    item need 100 jelopy 100 feather and kill 5 eddga

     

×
×
  • Create New...