Jump to content

Asheraf

Core Developers
  • Content Count

    252
  • Joined

  • Last visited

  • Days Won

    33

Posts posted by Asheraf


  1. I think questprogress is part of rAthena and not in Hercules? From what I can tell is you're not missing a "(" but that questprogress isn't an actual script command function in your emulator.

     

    Also please codebox next time. ^^

    nope questprogress is a Herc script command :P

    for the script as Aeromesi said 

    if (questprogress(11350) == 1)
    

  2. I would suggest using the channel system for this npc instead of looping for every player, however here you go

    -	script	broadcast	FAKE_NPC,{
    OnCommand: 
    	if (!getstrlen(.@atcmd_parameters$)) {
    		message strcharinfo(PC_NAME), "Please, enter a message (usage: @bst).";
    		end;
    	}
    	if (agitcheck()) {
    		message strcharinfo(PC_NAME), "Unable to use this command,";
    		message strcharinfo(PC_NAME), "War of Emperium is ongoing!";
    		close;
    	}
    	$@input$ = implode(.@atcmd_parameters$, " ");
    	$@name$ = strcharinfo(PC_NAME);
    	.@symbol$ = substr(.@atcmd_parameters$, 0, 1);
    	if (.@symbol$ != "B>" && .@symbol$ != "S>" && .@symbol$ != "T>") {
    		message strcharinfo(PC_NAME), "Market Symbol is Needed when using this command ( B> S> T>)";
    		end;
    	}
    	if (bst_delay + 60 > gettimetick(2)) {
    		message strcharinfo(PC_NAME), "There is a 60 seconds delay of using this command again";
    		end;
    	}
    	if (Zeny < 1000000) {
    		message strcharinfo(PC_NAME), "You need to pay a 1m fee before sending your message.";
    		end;
    	}
    	Zeny -= 1000000;
    	query_sql ("SELECT `char`.`account_id` FROM `char` JOIN `login` ON `char`.`account_id` = `login`.`account_id` WHERE `char`.`online` = 1", .@account_id);
    	bst_delay = gettimetick(2); // delay
    	while (.@i < getarraysize(.@account_id)) {
    		if (attachrid( .@account_id[.@i]))
    		dispbottom "[ Market ] " + $@name$ + " : " + $@input$,0xFFD700; // display to every character on the server.
    		detachrid;
    		++.@i;
    	}
    	end;
    
    OnInit:
    	bindatcmd "bst", strnpcinfo(NPC_NAME) + "::OnCommand", 0, 1; // bind @bst command.
    	end;
    }
    

     


  3.  

     

    You could use npcskill instead

    *npcskill(<skill id>, <skill lvl>, <stat point>, <NPC level>)
    
    

    But where is target position for skill?

    "This command causes the attached NPC object to cast a skill on the 

    attached player." it has no position settings.


  4. 
    

    prontera,159,183,4 script Quest Room Warper 2_F_SIGN1,{

    mes "[ Quest Room Warper ]";

    mes "Hi!.. Would you like to enter the Quest Room?";

    switch(select("Yes", "Cancel")) {

    case 1:

    warp "jupe_ele_r",49,92;

    close;

    case 2:

    mes "[ Quest Room Warper ]";

    mes "Owh....";

    mes "Nevermind..since it is your decision.";

    mes "It is all up to you.";

    mes "Come back to me if you changed your mind.";

    close;

    }

    end;

    }


  5. My client crash when use @bodystyle 1

    ---------------------------
    Error
    ---------------------------
    Cannot find File : sprite\Àΰ£Á·\¸öÅë\³²\costume_1\½´¶ó_³²_1.act
    ---------------------------
    Acept   
    ---------------------------
    

    And when use @send a02

     

    opendressroom(0); Hercules dont support.

     

    Client version: 2015-11-04aRagexe

    you need to make sure that you added the sprites into your grf also if you're trying to change your body style with unsupported job it would crash since there is no sprite for it.

×
×
  • Create New...

Important Information

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