• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Xikini's Free Scripting Service. [0.3.7 & (0.3.6/0.4)]

Status
Not open for further replies.

Xikini

I whore myself out for likes
Senator
Joined
Nov 17, 2010
Messages
6,825
Solutions
586
Reaction score
5,404
Doing quick (30 min or less) scripts for [0.3.7 & (0.3.6/0.4)]
I am not here to fix your broken scripts, although I will give advice if requested.
I am here for script requests of scripts not already available on the forum.
If you require support for your scripting issues please make a thread in the support section.

For clarity's sake,
I will script actionscripts, creaturescripts, globalevents, talkactions, movements, npcs for you.
I will not script spells, weapons, raids or monster scripts.
Additionally, source editing, websites and database queries are a no go as well.

Code:
How to make shorter links to posts.
https://otland.net/threads/234306/page-14#post-2330703
 
Last edited:
Xikini, How are you doing? Do you have an idea? :)
I was looking into the script that Codex started, and found some interesting things, that didn't seem to be working into how I'd script it.
Been having some time constraints due to real life issues. Here's a snippet of a PM to Codex, of how I'd be scripting it.
You can maybe try to work on it solo using it as a guide? Otherwise maybe I can find some time this weekend.
I'm sorry I haven't had time to work on it. :(
Code:
Shouldn't the lever simply be doing..

check for players in area.. if none continue
. . check for monsters/dead bodies in area.. removing any it finds..
. . . . reset storage
. . . . teleport player.. wait 5 second.. spawn monsters.
. . . . end
. . end
else
. . player already inside
end

Then have a creature script that checks if monster dying is inside area..
. . if inside area. add to storage..
. . . . if storage == 1,2,3,4,5 et cetera..
. . . . . . spawn creatures.. or create teleport/find player(s) in area. and teleport them.
. . . . end
. . end
end
 
I was looking into the script that Codex started, and found some interesting things, that didn't seem to be working into how I'd script it.
Been having some time constraints due to real life issues. Here's a snippet of a PM to Codex, of how I'd be scripting it.
You can maybe try to work on it solo using it as a guide? Otherwise maybe I can find some time this weekend.
I'm sorry I haven't had time to work on it. :(
Code:
Shouldn't the lever simply be doing..

check for players in area.. if none continue
. . check for monsters/dead bodies in area.. removing any it finds..
. . . . reset storage
. . . . teleport player.. wait 5 second.. spawn monsters.
. . . . end
. . end
else
. . player already inside
end

Then have a creature script that checks if monster dying is inside area..
. . if inside area. add to storage..
. . . . if storage == 1,2,3,4,5 et cetera..
. . . . . . spawn creatures.. or create teleport/find player(s) in area. and teleport them.
. . . . end
. . end
end
Okay np, Can happen ofc. ;) Well I looked at the script many times and tried to finish it myself but I'm srsly so noob at scripting that I'm not able to do that. Thanks for the information tho :D
 
Me & @Xikini should build a server.. I can write all the code and Xikini can correct it :p
I think it's more experience, on my part, with games in general.
My goal is/was to become a QA (quality assurance) representative.
Finding bugs, exploiting weaknesses, hindering and/or accelerating development using my insight as a professional gamer is what really set's me apart, in gaming and mindset.
I tend to have a different perspective on problems, and usually find the easier way to do things, although not necessarily the better way to do/handle them.
 
You should read the very first post in this thread.
7Lo6SYq.png
 
@Xikini i tried to sent you a pvt im using otx 7.72 i need a gryzly adams or npc monster task for this distro
wich is based on tfs i got alot of these npcs i can send the files can helpme?
regards
 
@Xikini i tried to sent you a pvt im using otx 7.72 i need a gryzly adams or npc monster task for this distro
wich is based on tfs i got alot of these npcs i can send the files can helpme?
regards
I didn't receive any messages in my inbox.
You need to be more descriptive in your request, and otx 7.72 is nothing I'm familiar with.
Did a quick google search and found this.
Maybe it will help you.

@Xikini if you could get me party shared by talkactions system for 0.3.6 i would appreciate :)
Same as above, You need to be more descriptive in your request.
Party shared by talkactions system, when I see this I assume you want to start party share mode, using talkactions?
I have no idea what you are really wanting.
Google search provides nothing on the topic.


@Everyone
If I don't know what you want, I can't help you.
Tell me clearly and concisely what you want, or I'll tell you to explain your request again, and again, and again, and again, Until I know what you want from me. :(
 
@Xikini

Guard NPC

if the guard sees you in a certain distance lets say 5x5 he says
Hey you! Stop right there! you have no business here!

then he tp you to pos: x 1306 y 2430 z 7

and u lose 30 Hp with effect

its not just once but everytime he sees you he does this


TFS 0.3.7 THX :D
 
Rofl.
@Xikini if you could get me party shared by talkactions system for 0.3.6 i would appreciate :)
I've looked and researched, I cannot find any command that allows you to enable or disable Party Share.
I could possibly make a script that gives everyone in the killers party experience.. but then they would be able to have shared experience as well as the script's experience.. so it doesn't seem beneficial really.
Also, since there's no command to getCreatureExperience.. only getPlayerExperience You'd have to add in all the values of the creatures experience manually for your server (all into a table).. which would not scale with config.lua or bonus experience from any other means. (Experience tokens/1.5 happy hours/experience scroll/double exp for being premium) et cetera..
All in all, I don't think this is what you are looking for, and I don't see many people using it.. or taking the time too use it.
(Not to mention it would take forever to script in the first place.. =[ )
Anyways, if you can think of another script / way for me to script this to fit your original / new idea then please tell me.

@Xikini

Guard NPC

if the guard sees you in a certain distance lets say 5x5 he says
Hey you! Stop right there! you have no business here!

then he tp you to pos: x 1306 y 2430 z 7

and u lose 30 Hp with effect

its not just once but everytime he sees you he does this


TFS 0.3.7 THX :D
Works for Crying_Damson 0.3.7. Cannot verify if it works for other versions.
Also a quirk.. for some reason the npc will always face south. -shrugs-
The guard checks the area once per second (servers default check-time.. that can be modified to be more then 1 second but not less.)..
So if a player can run past the 'detection zone' in less then 1 second.. they can technically by-pass the npc.
Just a heads up.

Change file names to whatever you like.

data/npc/Guard_Check_for_Player.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Guard Check for Player" script="data/npc/scripts/guard_check_for_player.lua" walkinterval="0" floorchange="0">
   <health now="100" max="100"/>
   <look type="139" head="116" body="116" legs="116" feet="97" addons="3"/>
</npc>
data/npc/scripts/guard_check_for_player.lua
Code:
--[[
__.....__.._______...__....__.._______...___.....__..._______..
\.\..././.|__...__|.|..|.././.|__...__|.|...\...|..|.|__...__|.
.\.\././.....|.|....|..|././.....|.|....|....\..|..|....|.|....
..\.../......|.|....|..|/./......|.|....|..|\.\.|..|....|.|....
../...\......|.|....|.....\......|.|....|..|.\.\|..|....|.|....
././.\.\...__|.|....|..|\..\...__|.|....|..|..\....|..__|.|....
/_/...\_\.|_______|.|__| \__\.|_______|.|__|...\___|.|_______|.

https://otland.net/threads/xikinis-free-scripting-service-0-3-7-0-3-6-0-4.234306/page-8#post-2290674

]]--

local c = {
   radiusx = 2, -- how far the guard checks left/right
   radiusy = 2, -- how far the guard checks up/down
   tpPos = {x = 1398, y = 1416, z = 7}, -- where you teleport to
   guardPos = {x = 1404, y = 1416, z = 7}, -- Where guard is located (for throw animation)
   effect = 8, -- what effect you want to use. (can use any throw animation. example: 8, OR, CONST_ANI_THROWINGKNIFE )
   guardSay = 'Hey you! Stop right there! You have no business here!', -- What guard says when you get near.
   damage = 50 -- don't add a comma.. How much npc hits player (will bring hp down to 1 at max.)
}
------------------end of config------------------

-- Check for players
function getCreaturesfromArea(pos, radiusx, radiusy, stack)
   local creatures = { }
   local starting = {x = (pos.x - c.radiusx), y = (pos.y - c.radiusy), z = pos.z, stackpos = stack}
   local ending = {x = (pos.x + c.radiusx), y = (pos.y + c.radiusy), z = pos.z, stackpos = stack}
   local checking = {x = starting.x, y = starting.y, z = starting.z, stackpos = starting.stackpos}
   repeat
     creature = getThingfromPos(checking)
     if isPlayer(creature.uid) == TRUE then
       table.insert(creatures, creature.uid)
     end
     if checking.x == pos.x - 1 and checking.y == pos.y then
       checking.x = checking.x + 2
     else
       checking.x = checking.x + 1
     end
     if checking.x > ending.x then
       checking.x = starting.x
       checking.y = checking.y + 1
     end
   until checking.y > ending.y
   return creatures
end
-- Start check for players, and initiate teleport
function onThink()
   creature_table = getCreaturesfromArea(getCreaturePosition(getNpcCid(  )), radiusx, radiusy, 253)
   if #creature_table >= 1 then
     selfSay(''.. c.guardSay ..'')
     for i = 1, #creature_table do
       doTeleportThing(creature_table[i], c.tpPos, true)
       doSendDistanceShoot(c.guardPos, c.tpPos, c.effect)
       if getCreatureHealth(creature_table[i]) <= (c.damage) then
         health = getCreatureHealth(creature_table[i]) - 1
         doCreatureAddHealth(creature_table[i], - health)
       else
         doCreatureAddHealth(creature_table[i], - c.damage)
       end
     end
   end
end
 
Last edited:
Hello!

I'd like to request a spell:

You need to be in front of the target, this spell push you away 2-3sqm and deals damage based on your weapon/skill :D

Is that possible? :D
 
Hello!

I'd like to request a spell:

You need to be in front of the target, this spell push you away 2-3sqm and deals damage based on your weapon/skill :D

Is that possible? :D
You need to tell Xikini the distro
 
Status
Not open for further replies.
Back
Top