Jump to content

error en script npc:asistente ayuda pls


ewerer

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  12/03/17
  • Last Seen:  

Buenas tengas todos, venia a pedir ayuda sobre este script de asistente movil mandandole mensaje privado a "npc:asistente" no se que error tenga, no me lo carga el emulador, si me podrian ayudar porfavor, muchisimas gracias!

Quote

-    script    VipAsi    -1,{
    OnInit:
        bindatcmd("asistente",strnpcinfo(0)+"::Onasistente",0,99);
        end;
    Onasistente:
    if( isPremium() == 1 )
        donpcevent "vipservice::OnStartNPC";
    else
        donpcevent "noVip::OnStartNPC";
end;

-    shop    Tienda    -1,712,678:100000,602:400,533:1900,7136:55000,7135:55000,657:3500,645:300,1065:100,611:40,601:70,713:6,502:500,504:1000,506:40,656:3000

-    script    vipservice    -1,{
    OnStartNPC:
    mes "Hola "+strcharinfo(0)+".";
    mes "¿En que puedo ayudarte?";
    next;
menu "Curarme",Cura_123,"Tienda",Tienda;
    
    Cura_123:
    percentheal 100,100;
    specialeffect2 403;
    skilleffect 34,0; sc_start SC_BLESSING,360000,10;
    skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10;
    sc_start 29,  300000, 10;  // Angelus
    sc_start 35,  60000, 5; // Impositio Manus
    sc_start 40,  90000, 5; // Magnificat
    sc_start 41,  360000,  5; // Gloria 
    sc_start 72,  360000,  5; // CP_WEAPON 
    sc_start 73,  360000,  5; // CP_SHIELD  
    sc_start 74,  360000,  5; // CP_HEAD  
    sc_start 75,  360000,  5; // CP_ARMOR
       sc_start 187,  1800000,  5; // halo halo
    sc_start SC_ASPDPOTION2,360000,0;
    sc_start SC_STRFood,1800000,10;
    sc_start SC_AGIFood,1800000,10;
    sc_start SC_VITFood,1800000,10;
    sc_start SC_INTFood,1800000,10;
    sc_start SC_DEXFood,1800000,10;
    sc_start SC_LUKFood,1800000,10;
    skilleffect 29,0; // Increase Agi
    skilleffect 34,0; // Blessing
    atcommand "@repairall "+strcharinfo(0);
    getinventorylist;
    set @identify, 0;
    for(set @i, 0; @i < @inventorylist_count; set @i, @i + 1) {
        if (@inventorylist_identify[@i] == 0) set @identify, @identify + 1;
    }
    if (@identify == 0) end;    
    getinventorylist;
    set @identified, 0;
    for(set @i, 0; @i < @inventorylist_count; set @i, @i + 1) {
        if (@inventorylist_identify[@i] == 0) {
            set Zeny, Zeny - 0;        
            delitem2 @inventorylist_id[@i],1,0,0,0,0,0,0,0;
            getitem @inventorylist_id[@i],1;
            set @identified, @identified + 1;
        }
    }
    close;
    

    mes "Cierra esta ventana para accesar la tienda, Suerte!!";
    close2;
    callshop "Tienda",0;
    end;    

-    script    noVip    -1,{
    OnStartNPC:
    mes "Hola "+strcharinfo(0)+".";
    mes "No eres premium Adios";
    close;    

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...