Help Summoning Scroll edit

03/07/2023 07:00 Brille102#1
Hello,

I want to create a summoning scroll from the snowmann for taming them.

Can somone tell me how i can make this?

Server files 9.5.2
03/07/2023 07:28 khshe#2
Quote:
Originally Posted by Brille102 View Post
Hello,

I want to create a summoning scroll from the snowmann for taming them.

Can somone tell me how i can make this?

Server files 9.5.2

function panthera() -- add for script in item
local current_x = gv("x")
local current_y = gv("y")
add_npc(current_x,current_y,710,1) -- 710 id mob
end


скрипт луа , это ну прям совсем простой вариант. еще можно через скилресурс сделать
03/17/2023 21:17 Brille102#3
Thanks for the help
03/18/2023 22:20 thefear511#4
Quote:
Originally Posted by khshe View Post
function panthera() -- add for script in item
local current_x = gv("x")
local current_y = gv("y")
add_npc(current_x,current_y,710,1) -- 710 id mob
end


скрипт луа , это ну прям совсем простой вариант. еще можно через скилресурс сделать
HTML Code:
function panthera()
add_npc(gv("x"),gv("y"),710)
end
if that one didn't work use this. must add panthera() to the last column of the item in itemresource.
03/22/2023 08:42 yosiemelo#5
Quote:
Originally Posted by thefear511 View Post
HTML Code:
function panthera()
add_npc(gv("x"),gv("y"),710)
end
if that one didn't work use this. must add panthera() to the last column of the item in itemresource.
I don't recommend doing it via script, but if you really want to do it, I'd beg you... don't write it that way. the name of the function is a joke... i know it's not yours but once you decided to correct this guy you might as well have written it properly.
to create a new summoning scroll just take some other summon scroll as a base and replace the monster's ID.

if you want to do it with a function? I recommend doing it this way:

HTML Code:
function Summoning_Scroll( monster_id )
    add_npc( gv("x"), gv("y"), monster_id )
end
Why?
The function name should always speak for itself what it does.
why did I enter "Monster_ID" as an argument to the function?
because the functions we write should be as flexible and universal as possible.
hence let's assume that our colleague wants to add another scroll, then he doesn't have to create another separate function that does exactly the same thing.
but it just changes the argument to itemresource.

how to use ?
in the table script in ItemResource just enter
Summoning_Scroll(710)
if you want it to be a different monster just replace the number. nothing easier.

Quote:
Originally Posted by khshe View Post
function panthera() -- add for script in item
local current_x = gv("x")
local current_y = gv("y")
add_npc(current_x,current_y,710,1) -- 710 id mob
end


скрипт луа , это ну прям совсем простой вариант. еще можно через скилресурс сделать
And I think I'll have to teach you how to write scripts XD
now i know who wrote them in revo before i joined :D
03/23/2023 08:01 khshe#6
Quote:
Originally Posted by yosiemelo View Post
I don't recommend doing it via script, but if you really want to do it, I'd beg you... don't write it that way. the name of the function is a joke... i know it's not yours but once you decided to correct this guy you might as well have written it properly.
to create a new summoning scroll just take some other summon scroll as a base and replace the monster's ID.

if you want to do it with a function? I recommend doing it this way:

HTML Code:
function Summoning_Scroll( monster_id )
    add_npc( gv("x"), gv("y"), monster_id )
end
Why?
The function name should always speak for itself what it does.
why did I enter "Monster_ID" as an argument to the function?
because the functions we write should be as flexible and universal as possible.
hence let's assume that our colleague wants to add another scroll, then he doesn't have to create another separate function that does exactly the same thing.
but it just changes the argument to itemresource.

how to use ?
in the table script in ItemResource just enter
Summoning_Scroll(710)
if you want it to be a different monster just replace the number. nothing easier.



And I think I'll have to teach you how to write scripts XD
now i know who wrote them in revo before i joined :D


are you serious? I took this from the elitepvpers forum and just gave it to him. I didn't write scripts for the revolution. please don't act super smart, this doesn't suit you

Quote:
Originally Posted by yosiemelo View Post
HTML Code:
function Summoning_Scroll( monster_id )
    add_npc( gv("x"), gv("y"), monster_id )
end
Do you think he will understand how to do it? I gave him the simplest option that I found on the forum, then he must learn how to do it right, that's all.
I don’t need to be taught, I can do a lot without you

and if you think that there are such developers in the revolution team, then how has the revolution not closed yet? Or do you think that Ali is so stupid to recruit such developers?


and since you have decided to teach me, then please do not advise me to use the script to summon monsters at all. you can just use the skillresource table and add the skill id to the item but for some reason you decided to describe a script variant.
03/23/2023 20:55 thefear511#7
Quote:
Originally Posted by khshe View Post
are you serious? I took this from the elitepvpers forum and just gave it to him. I didn't write scripts for the revolution. please don't act super smart, this doesn't suit you



Do you think he will understand how to do it? I gave him the simplest option that I found on the forum, then he must learn how to do it right, that's all.
I don’t need to be taught, I can do a lot without you

and if you think that there are such developers in the revolution team, then how has the revolution not closed yet? Or do you think that Ali is so stupid to recruit such developers?


and since you have decided to teach me, then please do not advise me to use the script to summon monsters at all. you can just use the skillresource table and add the skill id to the item but for some reason you decided to describe a script variant.
@[Only registered and activated users can see links. Click Here To Register...] likes to brag to other devs, he won't reply here if no one replied.. instead of trying to flex you could've replied first, or helping isn't what u want .. rather just trying to look like the smart one? lol
03/24/2023 03:06 yosiemelo#8
Quote:
Originally Posted by thefear511 View Post
@[Only registered and activated users can see links. Click Here To Register...] likes to brag to other devs, he won't reply here if no one replied.. instead of trying to flex you could've replied first, or helping isn't what u want .. rather just trying to look like the smart one? lol

dude, I help so many people who write to me regularly on DM discord that your argument makes absolutely no sense.
but when I noticed that you both wrote help to him (respect. still trying to help and im not negating it!)
but when i saw the bad practices in this code. I decided to respond constructively with the errors described, not to "flex" but in the hope that the three of you will learn some lessons from this.

No greetings, YoSiem
03/24/2023 05:24 khshe#9
Quote:
Originally Posted by thefear511 View Post
@[Only registered and activated users can see links. Click Here To Register...] likes to brag to other devs, he won't reply here if no one replied.. instead of trying to flex you could've replied first, or helping isn't what u want .. rather just trying to look like the smart one? lol
In fact. I also thought that he didn't want to help. but just wanted to show how smart he was. an upstart more.

this proves once again that because of such "smart" guys like Yoseim, it's better not to help once again. Yoseim look like troll
03/24/2023 14:36 yosiemelo#10
function YoSiem_troll()

for i = 1, 1000 do
notice("YoSiem Still better")
Notice("And Im fucking loser")
end

end



try this script guys
03/24/2023 17:27 ThunderNikk#11
How about we just help people and stop calling each other names.

Since this topic already has some great answers in it for the OP I am closing it because we are just involved in a fight now.