rust-ro icon indicating copy to clipboard operation
rust-ro copied to clipboard

feat: getcharid and getguildinfo base command

Open danielhe4rt opened this issue 2 years ago • 5 comments

Description

Implementing missing features for Kafra NPC.

To-do

  • [x] cutin
  • [ ] percentheal
  • [ ] viewpoint
  • [x] implode
  • [ ] countitem
  • [ ] delitem
  • [x] basicskillcheck
  • [ ] getskilllv
  • [x] getcharid
  • [x] getguildinfo
  • [x] savepoint
  • [ ] emotion
  • [ ] logmes

danielhe4rt avatar Dec 17 '23 14:12 danielhe4rt

@nmeylan There's any easier way to test these commands on compile time?

danielhe4rt avatar Dec 17 '23 14:12 danielhe4rt

image And how about commands that isn't implemented at rAthena codebase?

image

danielhe4rt avatar Dec 17 '23 14:12 danielhe4rt

Nevermind, it belongs to Hercules and not rAthena.

danielhe4rt avatar Dec 17 '23 14:12 danielhe4rt

@nmeylan There's any easier way to test these commands on compile time?

You mean at build time with test? Unfortunatly i have not setup unit test for this native function handler method, but it would be nice to have. I am afraid that we add more and more feature to this function without tests, it will be harder to catch up

The vm was designed to make testing of scripts easy https://github.com/nmeylan/rathena-script-lang-interpreter/tree/master/tests https://github.com/nmeylan/rathena-script-lang-interpreter/blob/master/tests/native_test.rs#L21

nmeylan avatar Dec 18 '23 08:12 nmeylan

Are you sure that the function "logmes" is placed in any Kafra's script? I took a look into rAthena and Hercules src's and didn't found anything related there.

Maybe it will have a specific usage that you're planning?

danielhe4rt avatar Jan 02 '24 00:01 danielhe4rt