Jump to content

Restricción de uso a script de ítem


KhrizPlayCL

Recommended Posts


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  01/31/20
  • Last Seen:  

Buenas tardes, les escribo por aquí para ver si me pueden ayudar con el script de un item, en mi servidor tengo un ítem de premio que otorga 100 de cash point al ser consumido, pero mi problema es que al consumirlo y tener el cashshop abierto, este se consume y no entrega los cash mandando un error, ¿qué restricción le puedo poner al script para evitar esta situación? 
 

  - Id: 671
    AegisName: Gold_Coin
    Name: Moneda Extraa ROH
    Type: Usable
    Buy: 0
    Weight: 0
    Trade:
      NoDrop: true
      NoTrade: false
      NoSell: true
      NoCart: true
      NoStorage: false
      NoGuildStorage: true
      NoMail: true
      NoAuction: true
    Script: |
      specialeffect2 100;
      atcommand "@cash 100";
      dispbottom "Has recibido [ 100 Puntos de Creditos ].!";

al consumirla sin tener abierto el cashshop

image.png.5ca7149abaf6efa3c912eed8741176fb.png

al consumirla teniendo el cashshop abierto

image.png.e9ecf0879f21cef1c75d5ff0146c99ad.png

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  834
  • Reputation:   319
  • Joined:  02/11/19
  • Last Seen:  

1 hour ago, KhrizPlayCL said:

Buenas tardes, les escribo por aquí para ver si me pueden ayudar con el script de un item, en mi servidor tengo un ítem de premio que otorga 100 de cash point al ser consumido, pero mi problema es que al consumirlo y tener el cashshop abierto, este se consume y no entrega los cash mandando un error, ¿qué restricción le puedo poner al script para evitar esta situación? 
 

  - Id: 671
    AegisName: Gold_Coin
    Name: Moneda Extraa ROH
    Type: Usable
    Buy: 0
    Weight: 0
    Trade:
      NoDrop: true
      NoTrade: false
      NoSell: true
      NoCart: true
      NoStorage: false
      NoGuildStorage: true
      NoMail: true
      NoAuction: true
    Script: |
      specialeffect2 100;
      atcommand "@cash 100";
      dispbottom "Has recibido [ 100 Puntos de Creditos ].!";

al consumirla sin tener abierto el cashshop

image.png.5ca7149abaf6efa3c912eed8741176fb.png

al consumirla teniendo el cashshop abierto

image.png.e9ecf0879f21cef1c75d5ff0146c99ad.png

De esta forma:

set #CASHPOINTS,#CASHPOINTS+100;
dispbottom "Has recibido [ 100 Puntos de Creditos ].!";

 

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  01/31/20
  • Last Seen:  

muchas gracias funciona perfecto

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...