Sign in to follow this  
Syreldar

[FUNCTIONS]Syreldar's quest functions

9 posts in this topic

24/08/2017:

  1. Polished up other functions.
  2. Added party_get_member_count,
  3. Added party_get_member_pids,
  4. Added clear_dungeon,
  5. Added table_get_keyword_index,
  6. Added table_is_any_subarray_containing_keyword,
  7. Added table_get_subarray_keyword_index

26/08/2017:

  1. Added table_shuffle.

12/12/2017:

  1. Added open_shop (Opens a shop without needing to use 2 lines of code);

30/04/2018:

  1. Reworked table_shuffle, since it was not working properly.
  2. Added InDungeon() [bool].
  3. Added ToDungeonIndex(map_index) [int].

01/06/2018:

  1. Added factorial (factorial(5) returns 120);

14/11/2019:

  1. (Did you miss me?) Updated the whole list, better code and even more functions!
  • Like 6

Share this post


Link to post
Share on other sites
Guest

player_killed_by_me 
when you kill a player.

 

 ( when kill begin
if npc.is_pc() 

don't work )

 

Share this post


Link to post
Share on other sites

I suggest not to help this guy, he would probably write a shit code using your functions and ofc after that he would probably post it on a romanian forum with "copy rights". Let him write the function himself. P.S: Because i'm a good guy i suggest you to write a function that returns a boolean if the npc is pc and then you may use the function as check on the kill statement :)

  • Haha 1

Share this post


Link to post
Share on other sites
On ‎6‎/‎16‎/‎2018 at 8:02 PM, AndyOpris said:

player_killed_by_me 
when you kill a player.

 

 ( when kill begin
if npc.is_pc() 

don't work )

when kill with npc.is_pc() begin
	syschat'1 player killed'
end

 

Share this post


Link to post
Share on other sites
On 6/16/2018 at 9:02 PM, AndyOpris said:

player_killed_by_me 
when you kill a player.

 

 ( when kill begin
if npc.is_pc() 

don't work )

?

  • Haha 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.