Trowing star NPC

Results 1 to 11 of 11
  1. #1
    Proficient Member gogodr is offline
    MemberRank
    Apr 2008 Join Date
    161Posts

    Trowing star NPC

    void NPCsScripts::npc_1051001(NPC* npc){
    int state = npc->getState();
    if(state == 0){
    npc->addText("Hello due to issues on Gogo's Maple Story I'm giving free 600 Ilbi stars");
    npc->addText("Do you want them?");
    npc->sendYesNo();
    }
    else if(state == 1){
    if(npc->getSelected() == YES){
    npc->addText("Here you have, enjoy.");
    npc->giveItem(2070006, 600);
    npc->sendOK();
    }
    else{
    npc->addText("Ok then, have a good day.");
    npc->sendOK();
    }

    }
    npc->end();
    }
    }


    I made this and its working fine with me , its the storage keeper of kerning
    he says "Hello due to issues on Gogo's Maple Story I'm giving free 600 Ilbi stars"
    and if you click yes he gives them to you


  2. #2
    Valued Member xakiru is offline
    MemberRank
    Jan 2007 Join Date
    117Posts

    Re: Trowing star NPC

    Stars are unlimited, so you don't need 600. So you just need one.

  3. #3
    Proficient Member gogodr is offline
    MemberRank
    Apr 2008 Join Date
    161Posts

    Re: Trowing star NPC

    but its better to have lots so you feel cool
    XD!!

  4. #4
    Enthusiast xxTOPHY is offline
    MemberRank
    Dec 2004 Join Date
    usa,wisconsinLocation
    27Posts

    Re: Trowing star NPC

    lol so true

  5. #5
    Kaotic Owner resinate is offline
    MemberRank
    Oct 2005 Join Date
    no mans landLocation
    2,376Posts

    Re: Trowing star NPC

    actully u need 5 cuz certain skills reqs more then 1 star.

  6. #6
    Novice Fr0stBYTE is offline
    MemberRank
    Apr 2008 Join Date
    4Posts

    Re: Trowing star NPC

    resinate...your siggy rox O.O

    nd thx for the code :D

  7. #7
    Apprentice Nali is offline
    MemberRank
    Apr 2008 Join Date
    8Posts

    Re: Trowing star NPC

    Isn't working for me for some reason, trying to recompile and I get :

    .\Kerning.cpp(21) : fatal error C1075: end of file found before the left brace '{' at '.\Kerning.cpp(17)' was matched
    Anything I seem to do to the code to try to fix that just causes the number of errors to increase =/

  8. #8
    Member Chez is offline
    MemberRank
    Apr 2007 Join Date
    53Posts

    Re: Trowing star NPC

    I'm guessing you put it in NPCs.C++ right?

  9. #9
    Proficient Member gogodr is offline
    MemberRank
    Apr 2008 Join Date
    161Posts

    Re: Trowing star NPC

    PLOP! NOONE told me that it wasnt working! >.<. !

    here is the fix
    Code:
    void NPCsScripts::npc_1052017(NPC* npc){
    	int state = npc->getState();
    	if(state == 0){
    	npc->addText("Hello due to issues on Gogo's Maple Story I'm giving free Ilbi stars");
    	npc->addText("Do you want them?");
    	state = 1;
    	npc->sendYesNo();
    	}
    	else if(state == 1){
    		if(npc->getSelected() == YES){
    			npc->giveItem(2070006, 100);
    			npc->addText("Here you have, enjoy.");
    			npc->sendOK();
    			npc->end();}
    		
    	else if (npc->getSelected() == NO){
    			npc->addText("Ok then, have a good day.");
    			npc->sendOK();
    			npc->end();
    		}
    		}
    
    	
    	}

  10. #10
    Member xxfallenangel is offline
    MemberRank
    Aug 2008 Join Date
    84Posts

    Re: [Release]Trowing star NPC

    woah i needed this ty

  11. #11
    Proficient Member 0aix2 is offline
    MemberRank
    Jul 2008 Join Date
    195Posts

    Re: [Release]Trowing star NPC

    uhhuh.. really?



Advertisement