Jump to content

  •  

Photo

Is there a way i can force this?


This topic has been archived. This means that you cannot reply to this topic.
11 replies to this topic

#1 Critica

Critica

    Marin

  • Members
  • PipPipPipPipPip
  • 200 posts

Posted 20 June 2012 - 10:06 AM

Hey guys just wonderin,

is there a way i can force the cards to be slotted on the 2nd slot?

i wana make the armor enchant orbs, to be slotted on the 2nd slot not on first...

is there a way wihout NPC...?

#2 _Dynosawr_

_Dynosawr_

    Santa Poring

  • Members
  • PipPipPip
  • 72 posts

Posted 20 June 2012 - 10:56 AM

The only way I know of is through a script :\

#3 Critica

Critica

    Marin

  • Members
  • PipPipPipPipPip
  • 200 posts

Posted 20 June 2012 - 11:13 AM

well yea i have a script that will force it to be slotted on 2nd slot,,

but when i used the decard npc, it takes it out and then after that you can slot it anywhere...

...

uhm on your script does it slot it on the 2nd, everytime i use it or do i need to talk to an npc to use it?

Edited by critica, 20 June 2012 - 11:13 AM.


#4 _Dynosawr_

_Dynosawr_

    Santa Poring

  • Members
  • PipPipPip
  • 72 posts

Posted 20 June 2012 - 02:26 PM

I don't have a script for it. The only possible way to do that is to edit the item in the database as well. Which will affect every single one in the server, not just that player's.

#5 plankt

plankt

    Poporing

  • Members
  • PipPipPipPip
  • 130 posts

Posted 20 June 2012 - 02:36 PM

You could do something like this
check item id
remove the cards
if(user has an orb){
  remove the item
  remove the orb
  give the item with the orb attached
}


#6 _Dynosawr_

_Dynosawr_

    Santa Poring

  • Members
  • PipPipPip
  • 72 posts

Posted 20 June 2012 - 02:51 PM

He wants to be able to insert the orb like a card into the second slot of the armor (Which isn't usable) after decarding the armor once.

#7 Genuine

Genuine

    Drops

  • Members
  • PipPip
  • 34 posts

Posted 20 June 2012 - 03:34 PM

You could do something like this

check item id
remove the cards
if(user has an orb){
  remove the item
  remove the orb
  give the item with the orb attached
}

Use getitem2 to attached the orb in the second slot.
http://rathena.org/wiki/Getitem2

#8 Rikimaru

Rikimaru

    Rikimaru ~

  • Community Contributors
  • 534 posts

Posted 21 June 2012 - 01:27 PM

Genuine is right !

getitem2 is like @item2 , where you can choose which Card Slot you want to use.

#9 Critica

Critica

    Marin

  • Members
  • PipPipPipPipPip
  • 200 posts

Posted 22 June 2012 - 03:16 AM

uhm.. can you guys help me script this?

and can it work using callfunc?

#10 Rikimaru

Rikimaru

    Rikimaru ~

  • Community Contributors
  • 534 posts

Posted 22 June 2012 - 01:40 PM

You'll just have to use the getitem2 command :

Just read the info about getitem2 on the wiki

#11 Critica

Critica

    Marin

  • Members
  • PipPipPipPipPip
  • 200 posts

Posted 24 June 2012 - 02:05 AM

well yea i know about that,,

but what i need is a script, that will automatically slot the "Armor Enchant Orbs" into the 2nd slot when used...

#12 plankt

plankt

    Poporing

  • Members
  • PipPipPipPip
  • 130 posts

Posted 24 June 2012 - 07:12 AM

I'm guessing you want the Orb to be usable?

One interesting idea:
  • Set the Orb as usable (type 11 if you don't want it to disappear directly).
  • On use you bring up a menu with equipment that are slotable
  • When an item is selected, you remove that item (and the orb if type is 11) and *getitem2 it with the orb in slot 2
Not sure if usable items can be slotted and have OnEquip bonuses. If not, just make 2 items. One for using and one for the slot.




determination Hosted by SourceForge.net