Jump to content

Loowiz

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Loowiz

  1. 6 hours ago, Loowiz said:

    The thing is, I already loaded it in the game. If I just use the
     

    payon,163,96,4    script    Warp Man    617,{
     }

     

    it actually loads an empty NPC. The issue comes when I add the rest of the script... then the NPC disappears.

    Thanks for the video, though, it made my folders a little bit more organized.

    I managed to fix it by myself. To anyone wondering, here's the final and working version of the script.

     

    payon,163,96,4    script    Warp Man#pay    617,{
        mes "[Warp Man]";
        mes "Greetings. I can teleport you to the main cities of Midgard";
        mes "Where would you like to go?";
        switch(select("- Payon:- Prontera:- Morocc:- Geffen:- Al De Baran:- Exit")) {
        case 1:
            warp "payon",163,88;
            end;
        case 2:
            warp "prontera",116,72;
            end;
        case 3:
            warp "morocc",158,94;
            end;
        case 4:
            warp "geffen",120,39;
            end;
        case 5:
            warp "aldebaran",140,115;
            end;
        case 6:
            close;
        }
    }

     

    Basically I was missing a " after 'aldebaran', and the cases column had to be the same as the switch menu's.

    Thread closed.

  2. 5 hours ago, mR L said:
      Reveal hidden contents
    payon,163,96,4	script	Warp Man	617,{
    	mes "[ Warp Man ]";
    	mes "Greetings. I can teleport you to the main cities of Midgard";
    	mes "Where would you like to go?";
    	switch(select("- Payon:- Prontera:- Morocc:- Geffen:- Al De Baran:- Exit")) {
    		case 1:
    			warp "payon",163,88;
    			end;
    		case 2:
    			warp "prontera",116,72;
    			end;
    		case 3:
    			warp "morocc",158,94;
    			end;
    		case 4:
    			warp "geffen",120,39;
    			end;
    		case 5:
    			warp "aldebaran,140,115;
    			end;
    		case 6:
    			close;
    	}
    	end;
    }

     

    Follow this Step

    The thing is, I already loaded it in the game. If I just use the
     

    payon,163,96,4    script    Warp Man    617,{
     }

     

    it actually loads an empty NPC. The issue comes when I add the rest of the script... then the NPC disappears.

    Thanks for the video, though, it made my folders a little bit more organized.

  3. 1 minute ago, Hyroshima said:

    are you loading the code correctly in the emulator?

    Honestly, I have no idea. Just created the script on an already existing .txt, in the NPC folder.

    I did create a "Reset Stats" NPC in the same .txt, and it worked flawlessly.

    Maybe it has to go in a different folder, but I really can't tell.

  4. Hello! I'm pretty new to scripting, and have shamelessly trying to create my own warper NPC by reading other scripts and trying to understand how to do it.

    However, for some reason, the script doesn't work, and the NPC never appears. Can anyone show me where have I made a mistake?

    Thanks. Here's the script:

     

    payon,163,96,4    script    Warp Man    617,{

        mes "[Warp Man]";
        mes "Greetings. I can teleport you to the main cities of Midgard";
        mes "Where would you like to go?";

        switch(select("- Payon:- Prontera:- Morocc:- Geffen:- Al De Baran:- Exit"))
        {
            case 1:
                warp "payon",163,88;
                end;
            case 2:
                warp "prontera",116,72;
                end;
            case 3:
                warp "morocc",158,94;
                end;
            case 4:
                warp "geffen",120,39;
                end;
            case 5:
                warp "aldebaran,140,115;
                end;
            case 6:
                close;
        }
    }

×
×
  • Create New...