Jump to content
Sign in to follow this  
Dreter

Arrest Warrent For Prision PROBLEM

Recommended Posts

Hi guys i have a problem with the arrest warrent when i use it dosen't teleport the player to the prision island

5720 Lv4 Arrest Warrant n2116 10130005 0 0 0 0 0 0 71 0 0 0 0 0 0 1 0 1 99 0 4000 -1,-2,-2,-2 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0 0,0 0,0 0 0 0 0 0 0 0 0 0 0471 3 0 0 0,0 0 0 Its owners can arrest any player below level 150. 0

This is the skillefect function that is in my server

---------------------------Arrest Warrant-----------
function SkillCooldown_Daibuzheng4( sklv )
local Cooldown = 5000
return Cooldown
end

function Skill_Daibuzheng4_End ( ATKER , DEFER , sklv )
local atker_name = GetChaDefaultName ( ATKER )
local defer_name = GetChaDefaultName ( DEFER )
local NocLock = KitbagLock( ATKER, 0 )
local re_type = IsPlayer ( DEFER )
local State_baitan = GetChaStateLv ( DEFER, STATE_BAT )
local State_jiaoyi = GetChaStateLv ( DEFER, STATE_JY )
if re_type == 0 then
SystemNotice ( ATKER, "Can Not Arrest Monters")
return
end
--[[if State_baitan >= 1 then
SystemNotice ( ATKER, "Can Not Arrest Players While he is Stalling")
return
end
if State_jiaoyi >= 1 then
SystemNotice ( ATKER, "Can Not Arrest While he is Trading")
return
end--]]
if atker_name == defer_name then -------------------kokora080328
SystemNotice ( ATKER, "Can Not Arrest Self") 
return
end
if NocLock == LUA_FALSE then
SystemNotice( ATKER , "Inventory is Locked")
return 0
end
local item_count = CheckBagItem ( ATKER , 5720 ) --´þ²¶Ö¤
if item_count <= 0 then 
return
SystemNotice ( ATKER , "Does not possess required item to use skill" ) 
end
local statelv_bkdb = GetChaStateLv ( DEFER , STATE_BKDB ) --È¡²»¿É´þ²¶×´Ì¬µÈ¼¶
if statelv_bkdb >=1 then
return
SystemNotice ( ATKER, "Unable to send to Prison")
end
--[[local Lv_defer = Lv ( DEFER )
if Lv_defer > 150 then
return
SystemNotice ( ATKER, "Can Not Arrest Player is Too Strong")
end --]]
local a = DelBagItem ( ATKER , 5720 , 1 ) --ɾ³ý´þ²¶Ö¤
local Num_Haorenzheng = CheckBagItem( DEFER , 5721 ) --ºÃÈËÖ¤
local Num_Liangminzheng = CheckBagItem( DEFER , 5722 ) --Á¼ÃñÖ¤
if Num_Haorenzheng >= 1 then
DelBagItem ( DEFER, 5721, 1) --ɾ³ýºÃÈËÖ¤
SystemNotice( DEFER, " player "..atker_name.." for you to use a warrant card protects you by the good guys, an arrest warrant is invalid!")
Notice ( defer_name.." By the good cards protects been able to escape the prison is really gratifying!")
else
if Num_Liangminzheng >= 1 then
DelBagItem ( DEFER, 5722, 1) --ɾ³ýÁ¼ÃñÖ¤
SystemNotice( ATKER, "You're trying to frame-up good guy ".. defer_name ..", found guilty and sentenced to imprisonment for 3 Moths!")
Notice ( atker_name.." Is trying to frame-up " .. defer_name .. " a good man, and found guilty and sentenced to imprisonment for 3 Months!")
SetSpawnPos ( ATKER , "Prison Island" ) --prison
MoveCity( ATKER , "Prison Island") --Prison check
else
local Notice_all = ""..defer_name.." was arrested by " .. atker_name .. " and brought to justice! Sentenced to imprisonment!"
RLOG('PrisonSent',''..defer_name..' was arrested by '.. atker_name ..' and brought to justice! Sentenced to imprisonment!')
SetSpawnPos ( DEFER , "Prison Island" ) --Prison
SetChaAttr(DEFER, ATTR_LV,1 )
SetChaAttr(DEFER, ATTR_CEXP,1 )
Notice ( Notice_all )
MoveCity( DEFER , "Prison Island") --Prison 
end
end
end

Hope some one can help

 

Thank's in advance

Share this post


Link to post
Share on other sites

if you are arresting lv150 then not work try this edit this 

 

if Lv_defer > 150 then to if Lv_defer > 151 then

 

why because if player >(lower) than 150 means only to 149 can be arrested.

 

 

Share this post


Link to post
Share on other sites
5 hours ago, Lucky said:

if you are arresting lv150 then not work try this edit this 

 

if Lv_defer > 150 then to if Lv_defer > 151 then

 

why because if player >(lower) than 150 means only to 149 can be arrested.

 

 

In my server the max level is 120 that's why i put 150, but i put 151 and still dosent work :/

Share this post


Link to post
Share on other sites
1 hour ago, Lucky said:

skilleff you added?

yea this is the funciont in my skileff

---------------------------Arrest Warrant-----------
function SkillCooldown_Daibuzheng4( sklv )
local Cooldown = 5000
return Cooldown
end

function Skill_Daibuzheng4_End ( ATKER , DEFER , sklv )
local atker_name = GetChaDefaultName ( ATKER )
local defer_name = GetChaDefaultName ( DEFER )
local NocLock = KitbagLock( ATKER, 0 )
local re_type = IsPlayer ( DEFER )
local State_baitan = GetChaStateLv ( DEFER, STATE_BAT )
local State_jiaoyi = GetChaStateLv ( DEFER, STATE_JY )
if re_type == 0 then
SystemNotice ( ATKER, "Can Not Arrest Monters")
return
end
--[[if State_baitan >= 1 then
SystemNotice ( ATKER, "Can Not Arrest Players While he is Stalling")
return
end
if State_jiaoyi >= 1 then
SystemNotice ( ATKER, "Can Not Arrest While he is Trading")
return
end--]]
if atker_name == defer_name then -------------------kokora080328
SystemNotice ( ATKER, "Can Not Arrest Self") 
return
end
if NocLock == LUA_FALSE then
SystemNotice( ATKER , "Inventory is Locked")
return 0
end
local item_count = CheckBagItem ( ATKER , 5720 ) --´þ²¶Ö¤
if item_count <= 0 then 
return
SystemNotice ( ATKER , "Does not possess required item to use skill" ) 
end
local statelv_bkdb = GetChaStateLv ( DEFER , STATE_BKDB ) --È¡²»¿É´þ²¶×´Ì¬µÈ¼¶
if statelv_bkdb >=1 then
return
SystemNotice ( ATKER, "Unable to send to Prison")
end
--[[local Lv_defer = Lv ( DEFER )
if Lv_defer > 150 then
return
SystemNotice ( ATKER, "Can Not Arrest Player is Too Strong")
end --]]
local a = DelBagItem ( ATKER , 5720 , 1 ) --ɾ³ý´þ²¶Ö¤
local Num_Haorenzheng = CheckBagItem( DEFER , 5721 ) --ºÃÈËÖ¤
local Num_Liangminzheng = CheckBagItem( DEFER , 5722 ) --Á¼ÃñÖ¤
if Num_Haorenzheng >= 1 then
DelBagItem ( DEFER, 5721, 1) --ɾ³ýºÃÈËÖ¤
SystemNotice( DEFER, " player "..atker_name.." for you to use a warrant card protects you by the good guys, an arrest warrant is invalid!")
Notice ( defer_name.." By the good cards protects been able to escape the prison is really gratifying!")
else
if Num_Liangminzheng >= 1 then
DelBagItem ( DEFER, 5722, 1) --ɾ³ýÁ¼ÃñÖ¤
SystemNotice( ATKER, "You're trying to frame-up good guy ".. defer_name ..", found guilty and sentenced to imprisonment for 3 Moths!")
Notice ( atker_name.." Is trying to frame-up " .. defer_name .. " a good man, and found guilty and sentenced to imprisonment for 3 Months!")
SetSpawnPos ( ATKER , "Prison Island" ) --prison
MoveCity( ATKER , "Prison Island") --Prison check
else
local Notice_all = ""..defer_name.." was arrested by " .. atker_name .. " and brought to justice! Sentenced to imprisonment!"
RLOG('PrisonSent',''..defer_name..' was arrested by '.. atker_name ..' and brought to justice! Sentenced to imprisonment!')
SetSpawnPos ( DEFER , "Prison Island" ) --Prison
SetChaAttr(DEFER, ATTR_LV,1 )
SetChaAttr(DEFER, ATTR_CEXP,1 )
Notice ( Notice_all )
MoveCity( DEFER , "Prison Island") --Prison 
end
end
end

i don't know if i need to put something in functions.lua or in another folder

Share this post


Link to post
Share on other sites

skillinfo.txt

0468    Lv1 Arrest warrant  1   -1,10   1,-1    1,-1    1,-1    -1  0   1   1   -1  -1  1   1   1   1000    5   1   0   0   0   0   0   0   0   0   0   0   Skill_Daibuzheng1_End   0   0   0   0   0   0   0   0   0   0   0   0   0   0   SkillCooldown_Daibuzheng1   1   1   -1  -1  0   -1  0   0   0   0,0 0,0 0   5   -1  0   0   -1  -1  -1  0   0   0   0   0   0   5717    0   0   0
0469    Lv2 Arrest warrant  1   -1,10   1,-1    1,-1    1,-1    -1  0   1   1   -1  -1  1   1   1   1000    5   1   0   0   0   0   0   0   0   0   0   0   Skill_Daibuzheng2_End   0   0   0   0   0   0   0   0   0   0   0   0   0   0   SkillCooldown_Daibuzheng2   1   1   -1  -1  0   -1  0   0   0   0,0 0,0 0   5   -1  0   0   -1  -1  -1  0   0   0   0   0   0   5718    0   0   0
0470    Lv3 Arrest warrant  1   -1,10   1,-1    1,-1    1,-1    -1  0   1   1   -1  -1  1   1   1   1000    5   1   0   0   0   0   0   0   0   0   0   0   Skill_Daibuzheng3_End   0   0   0   0   0   0   0   0   0   0   0   0   0   0   SkillCooldown_Daibuzheng3   1   1   -1  -1  0   -1  0   0   0   0,0 0,0 0   5   -1  0   0   -1  -1  -1  0   0   0   0   0   0   5719    0   0   0
0471    Lv4 Arrest warrant  1   -1,10   1,-1    1,-1    1,-1    -1  0   1   1   -1  -1  1   1   1   1000    5   1   0   0   0   0   0   0   0   0   0   0   Skill_Daibuzheng4_End   0   0   0   0   0   0   0   0   0   0   0   0   0   0   SkillCooldown_Daibuzheng4   1   1   -1  -1  0   -1  0   0   0   0,0 0,0 0   5   -1  0   0   -1  -1  -1  0   0   0   0   0   0   5720    0   0   0

 


Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...