[Help]How to code a portal?

Results 1 to 4 of 4
  1. #1
    jk. Burblish is offline
    MemberRank
    Jul 2011 Join Date
    805Posts

    [Help]How to code a portal?

    So, I was going around in my server looking for bugs. (Which is really annoying and boring.)

    Then, I decided to go look for portal bugs.

    As, many as there are I started with the Mihile map.

    913070000.

    It is basically Mr.Limbert's general store WITH NeinHeart in it on the left.

    But, when I warp to that map. Nothing appears. Just a .bat error.

    (Unhandled script : map_913070000, type : onUserEnter - MAPID 913070000) What does that mean?

    My notes: Almost all in this order.
    Code:
    Start off: 
    
    at the top. 
    
    UI disable
    Month 3, day 4
    Mr.limbert's General store
    
    NPC: Young Neinheart
    
    "You little hoodlum!" Text Bubble Near mihile
    
    facial expression : f6 (o.o)
    
    After a few texts....
    
    UI Enable
    ________________________________________________________________________________

    On the other handdd.
    Map 913070003's portal doesn't work. And I tried fixing it already...
    (Unhandled portal script mihailPortal003 on map 913070003)

    mihailPortal003:
    Code:
    function enter(pi) {
    	pi.warpMap(913070030);
    }


    Help with this portal thingys :/


  2. #2
    Account Upgraded | Title Enabled! Dichotome is offline
    MemberRank
    Apr 2008 Join Date
    385Posts

    Re: [Help]How to code a portal?

    The first is just informing you that the script for the map is missing. As you enter some maps, they run a scipt (This can simply display the map name like in towns). On early servers there were 2 folders, onUserEnter and onFirstUserEnter for the scripts. On later sources, these are hard coded and need to be written into the program.

    As regards the second, I would carefully check the spelling of the script name. Not saying Nexon does typos, but they did spell archer archter in one of their portal script names.
    Last edited by Dichotome; 12-11-12 at 02:33 AM.

  3. #3
    jk. Burblish is offline
    MemberRank
    Jul 2011 Join Date
    805Posts

    Re: [Help]How to code a portal?

    Quote Originally Posted by Dichotome View Post
    The first is just informing you that the script for the map is missing. As you enter some maps, they run a scipt (This can simply display the map name like in towns).
    Erm, is this source-sided?

    As regards the second, I would carefully check the spelling of the script name. Not saying Nexon does typos, but they did spell archer archter in one of their portal script names.
    You want me to re-name it to Mihile then?

  4. #4
    Account Upgraded | Title Enabled! Dichotome is offline
    MemberRank
    Apr 2008 Join Date
    385Posts

    Re: [Help]How to code a portal?

    The name you stated is the correct spelling according to the wz file.

    Yes - source coded for onUserEnter

    Just as an afterthought try changing the portal script to:


    function enter(pi) {
    pi.warp(913070030,0);
    }

    as sometimes leaving the portal number out causes the script to fail.



Advertisement