Jump to content

Rocky Road

Members
  • Posts

    72
  • Joined

  • Last visited

Posts posted by Rocky Road

  1. The best thing you can do is read the wiki page about scripting. Once you've done that, look at existing quests (ones you've played in-game and see how they work by reading the script. After that, play around with some stuff until you feel comfortable. For this NPC, 'testque' is your quest variable. It is the variable that will link all subsequent NPCs in that quest chain. Next NPC would do the following or an equivalent statement.

    if (testque > 0) {
    

    Not tested. 

    prontera,163,195,3	script	TestNPC	50,1,1,{//NPC info including location, sprite, and name.
    if (testque < 1) {//quest variable
    	mes "[Test]";
    	mes "How long have you been there?";
    	mes "Were do you want from me?";
    	next;
    	switch(select("I want to hear the story.:Let me help:Nothing")){ //options
    		case 1://story
    			mes "[Test]";
    			mes "Insert story here.";
    			next;
    			mes "[Test]";
    			mes "More story...";
    			next;
    			mes "[Test]";
    			mes "Help with quest?";
    			if (select("No.:Yes.") == 1) {
    				next;
    				mes "[Test]";
    				mes "Come back when you are ready.";
    				end;
    			}
    			set testque,1;
    			next;
    			mes "[Test]";
    			mes "Good luck.";
    			end;
    		case 2://start quest
    			mes "[Test]";
    			mes "Begin the quest.";
    			next;
    			mes "[Test]";
    			mes "Talk more.";
    			set testque,1;//start of quest, sets variable to 1
                            getitem 512,1;//quest item (I used an apple here)
    			end;
    		case 3://do nothing
    			end;
    	}
    }
    if (testque > 0) {//if quest has been started
    	mes "[Test]";
    	mes "How is the quest going?";
    	next;
    	mes "[Test]";
    	mes "Talk more.";
    	end;
    }
    else {//anything else; since quest can only be started or not started, this will never trigger.
    	mes "[Test]";
    	mes "Sample.";
    	end;
    }
    }
    

    Hope this helps,

    ~Azura Skyy

    cool thanks it works

  2. Hi guys!!

     

    i just wanna ask if someone have an quest npc or any npc that have 3 choosable answer??

     

    like

     

    NPC: what do you want to do?

     

    answer is

     

    >i want to hear the story of etc etc etc

    >i want to do the quest!!

    >nothing

     

    then the player will choose if i want to hear the story the npc will tell the story of something etc

     

    if i want to do the quest the npc will ask the player to bring the letter to bring to another npc? (this letter will given by the npc to a player)

     

    if nothing then the npc will end convo with the player like THEN GET LOST!

     

    i wish someone have this T=T this is like a chain quest after the player send the letter to the next npc the npc will ask the player to hunt some items to to make him some keys to enter to some dungeons?

     

    please help T_T

  3.  

    1. Increase STR based on Refine of the (item like armor or weapon) compounded to:

    bonus bStr, getrefine() * x;	// Where x is the number of STR points per refine 
    

    2. Increase MaxHP by 100 per base Vit:

    bonus bMaxHP, bVit * 100;	// Change the 100 if you want a different multiplier
    

    3. Increase 10% of your Attack in Poison Damage:

    bonus bAtkEle,Ele_Poison;	// Turning into Poison Element
    bonus bAtkRate,10;  		// Adding 10% on Damage 
    

    4. Increase MAtk by 2 times of your Job Level and reduces your after cast delay or Skill Delay by Job Level/50:

    bonus bMatk, 2 * JobLevel;			// Increasing MAtk
    bonus bDelayrate, -1 * (JobLevel/50); 		// Reducing Aftercast Delay
    

    5. Reduce Damage from Reflected Melee Attacks:

    I could not find a code for this one.

     

     

    Thanksfor the fast reply!! yeah as i thought no script for that one

  4. hi guys can please anyone help me on this item bonus script for my items??

     

    1) Increase str based on the refine of the (item like armor or weapon) compounded to.

     

    2) Increase max HP by 100 per base vit.

     

    3) increase 10% of your attack in poison damage

     

    4) increase matk by 2 times of your job level. and reduces your after cast delay or skill delay by job level/50

     

    5) reduce damage from reflected melee attacks (i dont know if this exist)

     

    please guys help me ty

  5. Hi guys just wanna ask some scripts

    First NPC:

    ~An NPC that will ask you to defeat (MVP or etc).

    ~He will ask you if you want to do the quest or no, If Yes, He will give you a Key to the Second NPC to kill the MVP.

    ~Once you finish the quest and get the item on the second NpC, He will give you a prize..

    Second NPC;

    ~An Npc That will ask you if you brought the Key from the first NPC

    ~If Yes, he will summon the MVP on that Map..

    ~After killing the MVP he will give you an item to give it back on First NPC.

    Please give me some of this script :(

    Even a simple script will do :(

  6. are you looking for an NPC that will give you points for selling items? like.. jellopy = 1points, red potion = 5 points, and so on?

    not quite sure with your question..

    I want an NPC that will trade 4 kinds of items(Choosable) For your Points..

  7. Hi guys i just wanna request some scripts

    ~>An npc that will ask for a certain items to warp you in the event map.

    ~>It will have a 3 Stage's to choose

    ~>In every stage/Floor it does have a different Mvp that will summon once you've enter in that map

    ~>After killing the MVP inside the Room, Treasure Box will appear, The treasure will be distributed randomly on all party members. But there was one item that can only the party leader can get..

    ~> Btw you need to be have a party before entering the map..

    ~>Before entering on the second stage the party leader need to bring the special item he gets on the lower stage (ex. every time they finish the lower stage PL will recieve 1 Apple and he need to earn 4 apple to enter on next stage)

    i think its a long script but there was a different script for it that does exist already.. please can someone help me?

  8. Guys sorry if there was any same request as mine but cant find some.

    I need a point shop that can be use on Sir Euphy's Card Trading NPC http://pastebin.com/raw.php?i=AC0CquTai need a shop for it.. Or a NPC that will trade items for the points you have example 150 points for Kiel card. if have can someone share me some of that script?

    Better if An NPC that will trade his items for your points (Choosable Items max of 4 items to choose)

  9. OnPCLoginEvent:
    .@max_level = 99;
    .@job_level = 60;
    .@skill_point = 9 + 59 + 69;
    if ( BaseLevel < .@max_level ) {
        BaseLevel = .@max_level;
        JobLevel = .@job_level;
        SkillPoints = .@skill_point;
    }
    
    something like this ?

    Yes but i need an npc that will ask what job you want to be too

    OnPCLoginEvent:
    .@max_level = 99;
    .@job_level = 60;
    .@skill_point = 9 + 59 + 69;
    if ( BaseLevel < .@max_level ) {
        BaseLevel = .@max_level;
        JobLevel = .@job_level;
        SkillPoints = .@skill_point;
    }
    
    something like this ?

    Yes but i need an npc that will ask what job you want to be too

  10. open ra/db/item_db2.txt

    make a new item -

    25500,Custom_Box,Custom Box,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem groupranditem(IG_whatever),1; },{},{}
    
    next step is

    open ra/db/const.txt

    Find IG_Advanced_Weapons_Box 61

    below add this

    IG_whatever 63 //IG_whatever must be same in the item_db2.txt script command

    next step

    open ra/db/item_group_db.txt

    import: db/item_whatever.txt - put this

    next step

    make a new script named

    item_whatever.txt - place this in ra/db/

    next step

    open item_whatever.txt - in ra/db/item_whatever.txt

    //Explanation 63 - is the number you input in const.txt
    // - 1111 - this is the itemID
    // - 9 - this is the rate
    
    63,1111,9
    63,<Item ID>,<Rate>
    
    next step

    open ra/src/map/itemdb.h

    find this part

    #define MAX_ITEMGROUP #62

    the number is 62 where in const.txt the max group number is 62 - but you add another item group..

    - just add + 1 in 62 so make it

    #define MAX_ITEMGROUP #63

    Let me try it sir thanks :) i will update you if i didnt go well thanks :)

  11. Guys can anyone give a a guide on how to make my max normal attack was 32,000 aswell for the skill maximum of 32,000 damage?? i know there was other thread of this but i cant understant how because no guide? please teach me please thanks

    Anyone can help me?? :(

  12. you can set the time ex: sc_start SC_INCSTR,60000,255; (60000=1minute)

    Yes i know this one but im asking if its possible to be an permanent stats? when u used that item you will be granted by maximum all stats(permanent no time)?? Coz i saw some server that have kind of this item without timelimit..

  13. edit the equip effect at item_db

    then edit the restriction at item_noequip.txt located at db/re/item_noequip or (pre renewal) db/pre-re/item_noequip

    What i mean is for example a player used apple then he will be granted of maxing his all stats by 255...what is the script for it?

    Like This?
    501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ sc_start SC_INCSTR,60000,255; sc_start SC_INCAGI,60000,255; sc_start SC_INCVIT,60000,255; sc_start SC_INCINT,60000,255; sc_start SC_INCDEX,60000,255; sc_start SC_INCLUK,60000,255; },{},{}
    

    Is this a permanent stats?

  14. ...The original script does not remove an item and functions 100% on rAthena. There is no possible way that the script I posted is removing any item when using the warper.

    I dunno why i have some difficulty on that script :( let me try the last you gave me

    ...The original script does not remove an item and functions 100% on rAthena. There is no possible way that the script I posted is removing any item when using the warper.

    You can feel free to try out the other two scripts that were posted here, but I would be more worried about figuring out why you're getting unexpected results from NPCs.

    It still removing the item :(

  15. edit the equip effect at item_db

    then edit the restriction at item_noequip.txt located at db/re/item_noequip or (pre renewal) db/pre-re/item_noequip

    What i mean is for example a player used apple then he will be granted of maxing his all stats by 255...what is the script for it?

×
×
  • Create New...