Jump to content

Patskie

Forum Moderator
  • Posts

    1,702
  • Joined

  • Last visited

  • Days Won

    14

Community Answers

  1. Patskie's post in announce color was marked as the answer   
    I believe i have answered your request many times with this content. Want this color, Want that and so on. Please refer to Announce. The color part there is in format ( 0xRRGGBB ). You can choose colors here. Choose a color and disregard the # in the first part and replace it by 0x. Easy as that
    - announce strcharinfo(0)+ " has entered PVP ARENA",0; + announce strcharinfo(0)+ " has entered PVP ARENA",0,0xFF3399;
  2. Patskie's post in Character missing and SQL error was marked as the answer   
    Try to execute this on your database :
    ALTER TABLE `char` ADD COLUMN `unban_time` INT(11) unsigned NOT NULL default '0',
  3. Patskie's post in Helm me with this is my Description please give me the correct script was marked as the answer   
    item_id,item_name,.....{ bonus bAllStats,3; bonus2 bSubRace,RC_DemiHuman,10; bonus2 bAddRace RC_DemiHuman,10; skill "TK_SEVENWIND",6; },{},{ sc_end "TK_SEVENWIND"; }
  4. Patskie's post in User and pass. was marked as the answer   
    Try this : http://pastebin.com/raw.php?i=0agc3s7Q
  5. Patskie's post in Announcement color help was marked as the answer   
    - announce .messages$[[email protected]],bc_all;
    + announce .messages$[[email protected]],bc_all,0x0033CC;
  6. Patskie's post in GM Monster Restriction was marked as the answer   
    http://pastebin.com/raw.php?i=2x9GivXJ
  7. Patskie's post in bindatcommand help was marked as the answer   
    You can use :
    atcommand "@recall " [email protected]_parameters$[0]; And for your curiosity. Yes, bindatcmd override the existing commands available on rAthena
  8. Patskie's post in null requirements was marked as the answer   
    You use :
    .item_list[[email protected]] = rand( 901,968 ); Which means randomly choose an item from item id 901 -> 968. Unfortunately we don't have item 927 and 933 and that will result to null values
    926,Scale_Of_Snakes,Snake Scale,3,82,,10,,,,,,,,,,,,,{},{},{} 928,Insect_Feeler,Insect Feeler,3,114,,10,,,,,,,,,,,,,{},{},{} 929,Immortal_Heart,Immortal Heart,3,374,,10,,,,,,,,,,,,,{},{},{} 930,Rotten_Bandage,Rotten Bandage,3,350,,10,,,,,,,,,,,,,{},{},{} 931,Orcish_Voucher,Orcish Voucher,3,142,,10,,,,,,,,,,,,,{},{},{} 932,Skel_Bone,Skel-Bone,3,232,,10,,,,,,,,,,,,,{},{},{} 934,Mementos,Memento,3,600,,10,,,,,,,,,,,,,{},{},{} Reference : db/pre-re/item_db.txt | db/re/item_db.txt
  9. Patskie's post in Need simple daily quest with prize was marked as the answer   
    Credits to @Emistry : http://pastebin.com/raw.php?i=L5HFEggR
  10. Patskie's post in pvp points was marked as the answer   
    Try : http://pastebin.com/raw.php?i=4f8XCuPB 
  11. Patskie's post in I need a script for a Town Requirement before he/she enter was marked as the answer   
    http://pastebin.com/raw.php?i=W1X2p7u8
  12. Patskie's post in When i loadnpc it wont appear help me here was marked as the answer   
    Try http://pastebin.com/raw.php?i=kysJwDVT
  13. Patskie's post in How to make a customized box? was marked as the answer   
    1. Load this function : http://pastebin.com/raw.php?i=582nv34e ( change 7227 to your desired item id number )
    2. Do something like this on your box :
    12256,PRO_Gift_Box,PRO Gift Box,2,0,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc "GetItem"; },{},{}
  14. Patskie's post in Castle Manager/reward npc was marked as the answer   
    This :
    - "Fadhgridh",L_prtg_cas03, + "Fadhgridh",L_prtg_cas03;
  15. Patskie's post in I need Bank NPC script ready to use was marked as the answer   
    http://rathena.org/board/topic/83214-utility-advanced-bank-with-nearly-unlimited-maximum-balance/
  16. Patskie's post in drop item script was marked as the answer   
    Item shower every hour : http://pastebin.com/raw.php?i=aCAbAM1E
     
  17. Patskie's post in Shop use MVP points and some items was marked as the answer   
    This : http://rathena.org/board/files/file/2504-multi-currency-shop/
     
    Configuration :
    switch( getarg(0) ){         Case 1:             // Currency [ Item ID / Variable Name ]             set @Currency$,"7179";             // Item ID Lists             setarray @ItemLists[0],6153,7227;             // Item Price             setarray @ItemCost[0],100,1;             break;         Case 2:             // Currency [ Item ID / Variable Name ]             set @Currency$,"7227";             // Item ID Lists             setarray @ItemLists[0],2306,2302,2303,2304,2305,2301;             // Item Price             setarray @ItemCost[0],2,2,3,4,5,6;             break;         Case 3:             // Currency [ Item ID / Variable Name ]             set @Currency$,"#CASHPOINTS";             // Item ID Lists             setarray @ItemLists[0],2306,2302,2303,2304,2305,2301;             // Item Price             setarray @ItemCost[0],20,22,34,445,52,641;             break;         // Case 4,5,6.....etc...         default:             ErrorNotice( "Invalid Menu Selection for Menu "[email protected]+"." );             close;     }
  18. Patskie's post in Edit job changer. was marked as the answer   
    Refer :
    *resetlvl <action type>; This is a character reset command, meant mostly for rebirth script supporting Advanced jobs, which will reset the invoking character's stats and level depending on the action type given. Valid action types are:  1 - Base level 1, Job level 1, 0 skill points, 0 base exp, 0 job exp, wipes the      status effects (only the ones settable by 'setoption'), sets all stats to 1.      If the new job is 'Novice High', give 100 status points, give First Aid and      Play Dead skills.  2 - Base level 1, Job level 1, 0 skill points, 0 base exp, 0 job exp.      Skills and attribute values are not altered.  3 - Base level 1, base exp 0. Nothing else is changed.  4 - Job level 1, job exp 0. Nothing else is changed.
  19. Patskie's post in Select Menu in array... HELP was marked as the answer   
  20. Patskie's post in Guild Package[90% Working] need to fix and enhance was marked as the answer   
    Try this :
    - query_sql "INSERT INTO `guild_package` (NULL,`account_id` , `last_ip`) VALUES (NULL,'"[email protected][[email protected]]+"','"[email protected]+"')"; + query_sql "INSERT INTO `guild_package` (`account_id` , `last_ip`) VALUES ('"[email protected][[email protected]]+"','"[email protected]+"')"; 
  21. Patskie's post in Commands Via Script was marked as the answer   
    This?
    -    script    Sample    -1,{     OnInit:         bindatcmd "home",strnpcinfo(3)+"::OnWarp";         end;     OnWarp:         warp "prontera",150,150;         end; }
  22. Patskie's post in Conusmable item for specific MVP summon was marked as the answer   
    This?
    501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ atcommand "@monster 1871"; },{},{}
  23. Patskie's post in Requesting Event Dice roll was marked as the answer   
    Try : 
    prontera,150,150,0    script    Sample    100,{     // Item ID,Amount     setarray .prize,7227,5;     if ( countitem(.prize[0]) < .prize[1] ) {         mes "You need to have " + .prize[1] + " " +getitemname(.prize[0]);         close;     }     mes "Input your number";     next;     input [email protected],1,6;     mes "Roll roll roll ~";     next;     .random_number = rand(1,6);          if ( [email protected] == .random_number ) {         getitem .prize[0], (2 * .prize[1]);         mes "You got it! (" [email protected]+ ")";     } else {         delitem .prize[0], .prize[1];         mes "Better luck next time!";         mes "NPC number : " +.random_number;         mes "Your number : " [email protected];     }     close; }
  24. Patskie's post in Broadcast Script HELP was marked as the answer   
    Change :
    Announce ""+strcharinfo(0)+": "[email protected]$+"",bc_all; to :  Announce ""+strcharinfo(0)+": "[email protected]$+"",bc_all,0x0000CC;
  25. Patskie's post in Guild NPC was marked as the answer   
    Try this one, bear with my laziness xD i didn't include many dialogues. 
    -    script    Sample::test    -1,{ if ( !getcharid(2) ) end;     if ( [email protected]_owner && getcharid(2) ) {         if ( getguildmaster( getcharid(2) ) != strcharinfo(0) ) end;         mes .npc$;         mes "Buy me for " +.prize_of_npc+ " zeny.";         next;         mes .npc$;         if ( Zeny < .prize_of_npc )             mes "You don't have enough zeny";         else              Zeny -= .prize_of_npc;         [email protected]_owner = getcharid(2);         announce "[" +getguildname([email protected]_owner)+ "] guild bought me for " +.prize_of_npc+ " zeny!",0;         close;     }          if ( getcharid(2) != [email protected]_owner ) {         mes .npc$;         mes "This npc is not dedicated on your guild";         close;     }          mes .npc$;     mes "What you want me to do master?";     next;     switch(select("Heal Me:No thanks:" +(getguildmaster([email protected]_owner)==strcharinfo(0)?"Sell me":""))) {         case 1: percentheal 100,100; break;         case 2:    break;         case 3: mes .npc$;                 mes "Done!";                 Zeny += .prize_of_npc;                 announce getguildmaster([email protected]_owner)+ " sell me. Someone buy me!",0;                 [email protected]_owner = 0;                 break;         default: debugmes "Error on NPC " +.npc$; break;     }          OnInit:         .prize_of_npc = 20;         .npc$ = strnpcinfo(1);         end; } prontera,150,150,0    duplicate(test)    Sample    100 prontera,153,153,0    duplicate(test)    Sample    100 Configuration :
    .prize_of_npc = 20; // price of npc .npc$ = strnpcinfo(1); // npc name When guild bought the npc, You can add more benefit here. On my example i only have heal benefit, i add also the "sell me" choice when talking to the npc :
    switch(select("Heal Me:No thanks:" +(getguildmaster([email protected]_owner)==strcharinfo(0)?"Sell me":"")))
×
×
  • Create New...

Important Information

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