How to make a scroll can't be use outzone like guild member summon scroll ?

01/11/2019 16:44 devdash#1
How to make a scroll can't be use outzone like guild member summon scroll ?
or maybe like the job suits,
i want that scroll can be use at only towns, can't be use out the towns


thanks in advance!
01/11/2019 18:23 Royalblade*#2
You are asking many many questions ^^.

The following way would be my personal favorite for these kinda things since you can do many many more things this way.


First: Make everyone a GM by default.
Inside your packet filter, send "invisible" command as soon as you get spawned automatically.

Disallow all 0x7010 packets (GM Packets).

NOW you can create scrolls or whatever. When the scroll/skill etc is used you can code a "RecallUser" command into the filter and let the user recall all guildmembers one after another. You can obviously also send the packet for the "Guildmember summon acceptance" and then peeps get recalled.


You'll be able to set any kind of custom zone shit this way or do whatever the fuck you wanna do.

Just be sure to get the invisible toggle command right. Cause its a toggle(!), not an activation and deactivation.
01/11/2019 18:26 devdash#3
Quote:
Originally Posted by Royalblade* View Post
You are asking many many questions ^^.

The following way would be my personal favorite for these kinda things since you can do many many more things this way.


First: Make everyone a GM by default.
Inside your packet filter, send "invisible" command as soon as you get spawned automatically.

Disallow all 0x7010 packets (GM Packets).

NOW you can create scrolls or whatever. When the scroll/skill etc is used you can code a "RecallUser" command into the filter and let the user recall all guildmembers one after another. You can obviously also send the packet for the "Guildmember summon acceptance" and then peeps get recalled.


You'll be able to set any kind of custom zone shit this way or do whatever the fuck you wanna do.

Just be sure to get the invisible toggle command right. Cause its a toggle(!), not an activation and deactivation.
as more i ask as more i learn, i really appreciate ur answers, but i think u dont understand my questions correctly, i have made a new scroll that it will do alot of bugs if it done outside the zone, so i want them when they try to do it out the town they tell em " can't be use out of the town" just like when u try to use Guild Member summon scroll it tells the same error

so what should i do to any scroll to make it can't be use out of the towns

thanks in advance
01/11/2019 18:33 Royalblade*#4
Ah okay, well that must be done via a packet filter then.
if you got the scroll ready you need to allow it in safezones only.

You can get the safezones from the DB.... OOOR you use these. Not sure if its everything.

Quote:
private static int[] asdRegions = new int[95] { 27499, 27500, 27243, 27244, 26520, 26521, 26264, 26265, 26777, 25000, 25001, 24745, 25255, 25256, 25257, 24999, 24199, 24200, 23943, 23944, 23686, 23687, 23688, 23430, 23431, 23432, 26266, 26522, 26009, 25753, 26008, 26519, 26263, 26519, 26518, 26262, 26263, 23689, 23433, 23690, 23434, 23945, 24201, 24457, 24456, 24712, 24200, 24711, 24455, 24454, 24453, 24197, 23941, 23685, 23429, 23430, 23686, 23942, 23432, 26266, 26522, 26009, 25753, 26008, 26519, 26263, 26519, 26518, 26262, 26263, 26988, 26987, 26986, 27242, 27243, 27498, 27499, 27755, 27756, 27501, 27245, 27244, 24744, 24743, 24742, 24998, 25254, 25510, 25511, 25512, 25513, 25514, 25258, 25002, 24746 };
01/11/2019 20:52 #HB#5
Quote:
Originally Posted by Royalblade* View Post
You are asking many many questions ^^.

The following way would be my personal favorite for these kinda things since you can do many many more things this way.


First: Make everyone a GM by default.
Inside your packet filter, send "invisible" command as soon as you get spawned automatically.

Disallow all 0x7010 packets (GM Packets).

NOW you can create scrolls or whatever. When the scroll/skill etc is used you can code a "RecallUser" command into the filter and let the user recall all guildmembers one after another. You can obviously also send the packet for the "Guildmember summon acceptance" and then peeps get recalled.


You'll be able to set any kind of custom zone shit this way or do whatever the fuck you wanna do.

Just be sure to get the invisible toggle command right. Cause its a toggle(!), not an activation and deactivation.
Holy sexy way, who would fucking think of that... :D

But they will still be able to show/hide the console, and that would be annoying. So you gotta find a way to fix this with some codecave and that won't be that hard.

This idea would be so useful tho.
01/11/2019 21:02 devdash#6
so there's no way without using a filter to make a scroll that have to be use in towns ?
01/17/2019 09:00 HECKT0R#7
Here you go


[Only registered and activated users can see links. Click Here To Register...]
01/17/2019 12:56 devdash#8
Quote:
Originally Posted by HECKT0R View Post
Here you go


[Only registered and activated users can see links. Click Here To Register...]
going to try it just right now, hope it works :)
i will write back the result

i put this

use SRO_VT_SHARD
go
create proc _Scroll_Name
@ Charid int
as
begin

Declare @ charname varchar(20), @ isbattle int

set @ isbattle = (select IsBattleField from SRO_VT_SHARD.dbo._RefRegion where wRegionID =
(Select LatestRegion from SRO_VT_SHARD.dbo._Char where CharID =@ Charid ))

-- Check if char ouside town dont tp him for non job cheating and other stuff ... !
if( @ isbattle ='1')
begin
Insert into Notice (Service,Type,Target,Message,Date) values
(1,'Private',@ CharName,'sorry but you are not in town :) ',Getdate())
END
-- End of anti-cheating
else
begin
print 'ITEM_MALL_CHAR_NAME_SCROLL'
end
end


but its not working error excute pop up "Msg 102, Level 15, State 1, Procedure _Scroll_Name, Line 4
Incorrect syntax near 'int'.
Msg 102, Level 15, State 1, Procedure _Scroll_Name, Line 8
Incorrect syntax near 'varchar'.
Msg 137, Level 15, State 2, Procedure _Scroll_Name, Line 11
Must declare the scalar variable "@".
Msg 137, Level 15, State 2, Procedure _Scroll_Name, Line 14
Must declare the scalar variable "@".
Msg 137, Level 15, State 2, Procedure _Scroll_Name, Line 17
Must declare the scalar variable "@"."
01/17/2019 23:16 HECKT0R#9
@[Only registered and activated users can see links. Click Here To Register...]
Remove the space after each @
if you still can't get your thing works send me tv .
01/18/2019 12:28 devdash#10
Quote:
Originally Posted by HECKT0R View Post
@[Only registered and activated users can see links. Click Here To Register...]
Remove the space after each @
if you still can't get your thing works send me tv .
it works now, after removed these spaces, but i can still active the scrolls at anywhere i want, and it works perfectly

did i made any mistaks ?
use SRO_VT_SHARD
go
create proc _Scroll_Name
@[Only registered and activated users can see links. Click Here To Register...]d int
as
begin
Declare @[Only registered and activated users can see links. Click Here To Register...] varchar(20), @[Only registered and activated users can see links. Click Here To Register...]ttle int
set @[Only registered and activated users can see links. Click Here To Register...]ttle = (select IsBattleField from SRO_VT_SHARD.dbo._RefRegion where wRegionID =
(Select LatestRegion from SRO_VT_SHARD.dbo._Char where CharID @[Only registered and activated users can see links. Click Here To Register...]d ))
-- Check if char ouside town dont tp him for non job cheating and other stuff ... !
if( @[Only registered and activated users can see links. Click Here To Register...]ttle ='1')
begin
Insert into Notice (Service,Type,Target,Message,Date) values
(1,'Private' @[Only registered and activated users can see links. Click Here To Register...],'sorry but you are not in town ',Getdate())
END
-- End of anti-cheating
else
begin
print 'ITEM_MALL_CHAR_NAME_SCROLL'
end
end

i even tried to go out the safe zone then i restarted the character to refresh the region in the _Char table, but the scroll still working perfectly, it should be disabled cuz iam outsize
:(
01/18/2019 13:27 HECKT0R#11
told you send me tv :)
i got it already working and tested .

you will use this proc for which scroll ?
also send me the final procedure so i can review it .
01/18/2019 16:37 devdash#12
Quote:
Originally Posted by HECKT0R View Post
told you send me tv :)
i got it already working and tested .

you will use this proc for which scroll ?
also send me the final procedure so i can review it .
this proc will be use for alot of scrolls, all the recall once, like recall skills scroll, Recall Stats Scroll, Recall Guild Penalty Scroll, and so on...

i guess tv means teamviwer so iam setuping it... and i will give it to u just right now on the discord

Solved throw
[Only registered and activated users can see links. Click Here To Register...]

topic close please