Jump to content

zodiacro

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by zodiacro

  1. I have a script for Houly rewards which gave my player Kafra Points. and now I need NPC for my player to exchange item by using the Kafra Points. Please forgive me if i dupplicate the post.

    Quote

    -    script    hourlypoints3    -1,{
       
    OnPointGet:
        //Check for idle.
        while(checkvending() >= 1 || checkchatting() == 1 || checkidle() >= .idle) {
            if( .@mes$ == "" ) {
                dispbottom set( .@mes$, "The hourly points event stopped because you were vending, chatting, or idle!" );
                set @hourly_points_timer, 0;
            }
            sleep2 .delay;
        }
        
        @consecutive_timer++;
        .@time_string$ = Time2Str( @consecutive_timer * ( .timer / 1000 ) );
        dispbottom "You received "+.points+" Free Point(s) by staying ingame for 1 hour.";
        #KAFRAPOINTS = #KAFRAPOINTS + .points;
        dispbottom "Current Balance = "+#KAFRAPOINTS+" Free Point(s)";
        @consecutive_bonus++;

        //Check for consecutive timer.
        if(@consecutive_bonus == .cdelay) {
            @consecutive_bonus = 0;
            #KAFRAPOINTS = #KAFRAPOINTS + .cpoints;
            dispbottom "You receive a bonus "+.cpoints+" Free Point(s) by playing for minimum 3 hours consecutively!!!";
            dispbottom "Current Balance = "+#KAFRAPOINTS+" Free Point(s)";
        }
        
    OnPCLoginEvent:
        addtimer .timer,"hourlypoints3::OnPointGet";
        @hourly_points_timer = gettimetick(2) + ( .timer / 1000 );
        end;
        
    OnCheck:
        message strcharinfo(0),@hourly_points_timer ? Time2Str( @hourly_points_timer )+" Remaining.":"Something went wrong relog!";
        end;

    OnInit:
        bindatcmd "check","hourlypoints3::OnCheck"; //@check to view time till next point.
        .timer   = 1000*60*60; //Timer in milliseconds. ( Default: 1000*60*60 [ = 1 Hour ] )
        .cdelay  = 3;          //Delay before receiving the consecutive bonus. ( Default: 3 [ { ~ 3 Hours } *Using default timer ] )
        .cpoints = 10;         //Points gained for consecutive time online. ( Default: 10 )
        .points  = 1;          //Normal points gained. ( Default: 1 )
        .delay   = 1000;       //Delay for idle re-check check. ( Default: 1000 [ = 1 Second ] )
        .idle    = 60*5;       //Player is idle after not moving for this many seconds. ( Default: 60*5 [ = 5 Minutes ] )
    }

    This is my script. Kindly assist.. Thanks

  2. On 5/9/2013 at 1:25 AM, icabit said:

    try my attachment

    i got this script way back in eathena days xD

    works like a charm for me

    it automatically gives the player the item

    I tried it but it shown error

     

    [Error]: quest_add: quest 61000 not found in DB.
    [Debug]: Source (NPC): Hourly at prontera (159,187)
    [Debug]: Function: setquest (1 parameter):
    [Debug]: Data: number value=61000
    [Error]: quest_add: quest 61000 not found in DB.
    [Debug]: Source (NPC): Hourly at prontera (159,187)
    [Debug]: Function: setquest (1 parameter):
    [Debug]: Data: number value=61000
    [Error]: quest_add: quest 61000 not found in DB.
    [Debug]: Source (NPC): Hourly at prontera (159,187)
    [Debug]: Function: setquest (1 parameter):
    [Debug]: Data: number value=61000
    [Error]: quest_add: quest 61000 not found in DB.
    [Debug]: Source (NPC): Hourly at prontera (159,187)
    [Debug]: Function: setquest (1 parameter):
    [Debug]: Data: number value=61000
     

  3. Mungkin benar akan tetapi tidak semua. Ianya semua bergantung kepada mereka (RO Hosting Provider) sendiri sama ada ingin menjalankan perniagaan yang jujur atau tidak. Saya cadangkan anda terlebih dahulu mengkaji setiap latar belakang RO Hosting Provider sendiri dan cuba dapatkan pandangan orang lain. Saya tidak berapa pasti untuk Singapura. Jika di Malaysia. Nickyzai.com masih boleh dipercayai dan Encik OnNplay sendiri menyediakan RO Hosting (Malaysia juga). Semuanya bergantung kepada anda.

    Semoga berjaya.

    Ops... Oleh kerana nama saya ada disebutkan, maka ingin saya membuka beberapa pandangan peribadi sahaja.

    1. Pembekal perkhidmatan hosting di Malaysia untuk pelayan RO ini menggunakan LINUX Operating System. Jauh lebih selamat dari pertahanan Windows. Hal sabotaj ini amat tipis dilakukan oleh pihak luar jika tetapan keselamatan tidak diabaikan.

    2. Ketika talian ke unit dedikasi milik pembekal perkhidmatan hosting telah mencapai maksima, kejadian menyegarkan talian akan automatik berlaku. In yang sering kita ingat sebagai serangan DDOS kerana semua client telah terputus sambungan serentak. Majoriti dedicated di Malaysia ini berkelajuan internet 1Mbps sahaja sedangkan talian internet pengguna di rumah lebih tinggi, ada yang 1.2Mbps, 2Mbps, 4Mbps, 5Mbps hingga ada pengguna broadband mobile 48Mbps.

    3. Kesilapan anda berkongsi ID pengurusan hosting. Ini adalah punca utama untuk tergugatnya keselamatan pelayan RO milik anda walau di mana ia berada sekalipun.

     

    Nickyzai service baik..  /no1

  4. ID,DBName,ScreenName,Type,Price,Sell,Weight,ATK,DEF,Range,Slot,Job,Upper,Gender,Loc,wLV,eLV,
    Refineable,View,{Script},{OnEquip_Script},{OnUnequip_Script}

     

    ID - itu boleh apa apa nombor kE?

    Loc- nak set tangan kanan camne? i perlu letak (2^1) ataw 2 di dlm script?

     

     

    tlg assist thx

×
×
  • Create New...