Jump to content

Oxxy

Members
  • Posts

    106
  • Joined

  • Last visited

Posts posted by Oxxy

  1. Use this command. He will call npc event OnWantToSell from SELL_NPC.

     

    ACMD_FUNC(sell)
    {
        nullpo_retr(-1,sd);
        
        if( sd->npc_id || sd->vender_id || sd->buyer_id || sd->state.trading || sd->state.storage_flag )
            return -1;
            
        npc_event(sd,"SELL_NPC::OnWantToSell",0);
        return 0;
        
    }

     

    NPC script:

    -<tab>script<tab>SELL_NPC<tab>-1,{
    OnWantToSell:
    callshop "SellShop",2;
    end;
     
    -    shop    SellShop    139,2117:-1,7521:-1,7522:-1,7523:-1,7524:-1,13250:-1,13251:-1,13252:-1,13253:-1,13254:-1
    }
    


     

  2. find in pc.c function pc_gainexp and after

        if(!battle_config.pvp_exp && map[sd->bl.m].flag.pvp)  // [MouseJstr]
            return 0; // no exp on pvp maps

     

    Type in

    if(sd->status.base_level >= 150)
           return 0;
    

     

    Recompile and you're done. You can't receive exp if your level is equal or more than 150.

  3. 1) Use jobchange command. Syntax is

     

    jobchange <job number>;
     

     

    2) To add skillpoints u should use this command:

     

    set SkillPoint, SkillPoint + x;
     

     

    Where x - how many points to add.

    3) for base level use:

    set BaseLevel, BaseLevel + x;

    to add +x levels or

     

    set BaseLevel, x;
     

     

    to set Base level to X.

    for job level use:

     

    set JobLevel, JobLevel + x;
    

    to add +x levels or

    set JobLevel, x;

    to set Job Level to X

  4. Download latest server from SVN.

    Then download Vertrigo.

     

    Go to server/conf folder and find inter_athena.conf. Configure connect to the server.

     

    Go to server/src/common and find mmo.h file. Open it and find #define PACKETVER (numbers.here) and change this numbers to 20111116.

    Recompile.

     

    Take data.grf and rdata.grf. Download Renewal Data folder. You can find it through google or search here. (Google: Renewal data folder v2 rathena.org).

     

    Take 2011-11-16 exe and diff it with WeeDiffGen.

     

    Configure admin account ID in clientinfo.xml

    Configure ip(and port if u changed) in clientinfo.xml

     

    Go to phpMyAdmin and create new database.

    Import from server/sql-files/ 2 files: main.sql and logs.sql

    Now u can start server and play.

     

    If u need any help just search through google or rathena.org. All of your question 99% were answered.

     

    That's all! :)

     

    p.s: sorry for bad english, I'm Russian.

  5. Try mine script:

    -	script	announceporing	-1,{
    
    OnMinute30:
    
    announce "Event 'Poring Catcher' is starting!",0;
    sleep 1000;
    enablenpc "Poring";
    announce "Go to Prontera to play this event",0;
    sleep 1000;
    announce "Event will start in 3 minutes",0;
    sleep 60000;
    announce "Event will start in 2 minutes",0;
    sleep 60000;
    announce "Even will start in 1 minute, hurry!",0;
    sleep 60000;
    announce "Event 'Poring Catcher' has started!",0;
    donpcevent "monstri::OnStart";
    disablenpc "Poring";
    initnpctimer;
    
    OnTimer5000:
    if ( getmapusers("poring_w01") == 0 )
    {
    	killmonsterall "poring_w01";
    	announce "Event 'Poring Catcher' didn't start because there's no players.",0;
    	stopnpctimer;
    	end;
    }
    }
    
    prontera,150,150,6 script Poring 1002,2,2,{
    OnTouch:
    warp "poring_w01",0,0;
    end;
    }
    
    -	script	pobeditel	-1,{
    
    OnTruePoring:
    	warp "SavePoint",0,0;
    	killmonsterall "poring_w01";
    	dispbottom "You've killed the right poring!";
    	getitem 7227,1;
    	getitem 671, 10;
    	announce ""+strcharinfo(0)+" won in  'Poring catcher'. Congratulations! ",0;
    }
    
    -	script	monstri	-1,{
    
    OnStart:
    	monster "poring_w01",0,0,"Poring",1002,1,"pobeditel::OnTruePoring";
    	monster "poring_w01",0,0,"PorinG",1002,25,"proigral::OnFalsePoring";
    	monster "poring_w01",0,0,"P0ri",1002,25,"proigral::OnFalsePoring";
    	monster "poring_w01",0,0,"P0r1ng",1002,25,"proigral::OnFalsePoring";
    	monster "poring_w01",0,0,"Porning",1002,24,"proigral::OnFalsePoring";
    }
    
    
    -	script	proigral	-1,{
    
    OnFalsePoring:
    	dispbottom "You loose!";
    	percentheal -100,0;
    	warp "SavePoint",0,0;
    }
    
    poring_w01	mapflag	nowarp
    poring_w01	mapflag	noskill

  6. Как правильно установить альянс для рас, если нужно более 1 альянса?

    Например:

    1,Человек...

    2,Гном...

    3,Эльф...

    И мне надо поставить, чтобы у человека был альянс с гномом и эльфом

    @kangfredy

    try to check added lines in your src. You don't have script command Setfaction.

    Did you recompile server?

×
×
  • Create New...